Community

Share your ideas, questions and suggestions with Marvel and other developers here.

Comments

283 comments
egfraz
egfraz

Is there a way to access the Power Grid data for individual characters? I looked through the documentation, but I didn't see a way to fetch it.

capitanpivs
capitanpivs

Is there a way to access data from each character's Marvel Universe page?  For example, can I get the height of every X-Man since their inception?

Mr-rock
Mr-rock member

Hey guys, on the "orderBy" fields under the definition of the Comics filter there is a field called "focDate". Does anybody know what the "foc" is supposed to mean? 

RamsayLanier
RamsayLanier

I made a fun little app using Meteor.js that shows the user 2 covers and lets them pick their favorite - it then tracks the top 10 covers. There is still a lot of functionality I'd like to add, but it's neat and only took a few hours to make.

Check it out - http://marvelcovers.meteor.com/

plouiserre
plouiserre

First thank for that. You do awesome thing. I have a question. The datas are only in english?

Mr-rock
Mr-rock member

Hi guys, I'm not able to view the public documentation on the "Interactive Documentation" section. Is it just me or you all are having the very same issue? 

brilliancemobility
brilliancemobility

Has anyone else been throttled yet? I just received the rate-limit error:


{"code":"RequestThrottled","message":"You have exceeded your rate limit. Please try again later."}


Considering that my app only has a small userbase thus far and it the rate limit before 5PM EDT on a Sunday, 3000, although generous, is probably not enough for most apps.


If you have been throttled, how large is your current userbase?

g00glen00b
g00glen00b

I just forgot my password and I clicked on the "forgot password" link. I was stumbled when I read my mail and noticed that it sent my password in plain text to me. Does it mean my password is actually stored in plain text inside the database or encrypted in such a way that it can be reconstructed to the original value? Doesn't this pose any security issues?

leads
leads

Hi. Hoping to do something purely JS client-side. Should I be able to connect purely via a localhost? eg: http://mymarvelapp/ ?
I get the following error message: "That hash, timestamp and key combination is invalid."
I create a timestamp with - new Date().getTime(); which gives something like 1396101835628
I md5 the private key with CryptoJS.


So just wondering if I'm even allowed to do it this way? Or does the authentication need to be done server-side? Thanks

rloeb
rloeb member

Any update on when the api will include ability of Marvel Unlimited subscribers to manipulate their library/must read lists?  The web site is broken (yet again) such that the "browse my must reads by series" functionality is busted (won't open a series).  Frequency of bugs likes this makes it worth it to me to roll my own if my list were open via the api.

ptrwoga
ptrwoga member

Hi, I am building a comic book database for teaching core data on iOS and want to include images of characters on a table view. The problem is I seem to need to do the MD5 (public key + private key + timestamp) to create unique requests. This is actually quite a pain as MD5 is not natively supported. Am I missing something easier here? I know I can register certain domains but that isn't particularly helpful either.

codingricky
codingricky

Hi, 


Is there a range for the character id? Basically I want to get a random valid character. I don't want to just trial/error using the api.


Thanks! 

pecanpie
pecanpie

I am working on iphone app to pull data via api, as soon as I get entity objects created and pulling data, I will upload to Github and open code to community, happy coding! coding from Dallas, TX

TDonaghe
TDonaghe member

Is the database missing tons of titles? Any time I try to do a search for the titles in DareDevil's most recent volume I get back only the first two titles. There are at least 30 titles total for the series.  Is this possibly a problem on my end? Can anyone else get back information with all of the titles?

brilliancemobility
brilliancemobility

Hello,


Has anyone implemented a solution to handle multiple input locales? For example, Crimson Dynamo is the #1 search term for my app and Captain America is #3. However, Dinamo Escarlate is #9 and Capitão America is #4. The later search terms will not return any results.


Has anyone figured out a strategy to successfully handle differences in a user's input locale?


Thanks!

pete
pete moderator

@egfraz  That information isn't currently part of the dataset returned.  - peter

pete
pete moderator

@capitanpivs  That data isn't currently part of the dataset returned.

pete
pete moderator

@Mr-rock  FOC = Final Order Cutoff. It is the last day a comic book retailer can order a book before its printed.  

pete
pete moderator

@Mr-rock  That issue should be fixed.

brilliancemobility
brilliancemobility

Hello, I am still receiving the throttling message. Does the limit reset each day? I checked this morning at 7:30 EDT.

rloeb
rloeb member

btw. to "fix" this in my browser I am running "$('.accordion_body').removeClass('collapsed')" to expand all the series.  both i.e. and firefox seem to be hit by this problem. I also realized I can make direct ajax calls from the page, e.g. $.ajax({type:"POST", url:"/my_account/my_must_reads",data:{id : "14855"},dataType:"json",}) as  a workaround to add to my list.  

brilliancemobility
brilliancemobility

@codingricky  Which language are you using? Here is how I am getting a random character:


1. Pick a random number between 0 and 1400


Random random = new Random();

int position = random.nextInt(1400);


We are using 1400 because it is the "total" returned by the characters endpoint. 


2. Call the /characters endpoint using the position and setting the page size to 1


/characters?offset=<position>&limit=1


3. Use the 0th character


I am using Java (Android).



pete
pete moderator

@codingricky  There is a range but it's probably not that useful.  There is some degree of sparseness in the range, so there's a reasonable chance of generating an ID that gives you a 404 error.  Additionally characters are added from time to time so the range will change.


Maybe pick a random letter and then a random result from a query to that letter (that would be easier from a caching standpoint anyway).


- peter 

KarlMonaghan
KarlMonaghan

(Apologies for the all caps - on the iphone the message input is UPPERCASING everYthing)

Hi @pecanpie,

I've created a cocoapod of my efforts so far on iOS : https://github.com/kmonaghan/MDAMarvelAPI/

All the currently available endpoints and object are there and there's my work in progress app.

Hopefully you'll find something useful in it.

pete
pete moderator

@TDonaghe  Which series IDs are you seeing that for?  The 2014 series is just starting so it may only have a few issues solicited.

pete
pete moderator

@brilliancemobility  We currently don't have non-English names for the characters.  We can look into the adding them.


- peter

skorz
skorz

@brilliancemobility  Can you give some examples of a query and result set that you're seeing? I am not quite connecting the dots... Thanks!

Mr-rock
Mr-rock member

@pete Thanks for the explanation, Pete. It goes right to the code now... ;)

leads
leads

@pete thanks Pete. Sorted that now by removing the timestamp and hash. 

pete
pete moderator

@rloeb  Re: the bug - is it only IE and Firefox or have you tested any other browsers?  I will make sure that the appropriate teams are aware of it.  Re: list manipulation - we are considering this feature but we don't have a specific timeframe.

codingricky
codingricky

@brilliancemobility Thanks for the suggestion. But if new characters are added, does the number 1400 change? Is there a way to get the total no of characters?

KarlMonaghan
KarlMonaghan

Ha! It shows me all cAps but posts fine.

TDonaghe
TDonaghe member

@pete @TDonaghe  Hey - I was looking at the series that started in 2011 and I think I found the issue - there are two series listed as having started in 2011 id: 14434 and id: 12916. The first one is the one that only shows two issues. The second id is the one I was looking for that has all of that series.


Not sure if there are supposed to be two series like that - if not, then there's a bug for you. :)

brilliancemobility
brilliancemobility

@pete Thanks for the response. It is not an real issue at the moment, I was curious if someone had already implemented a solution or found a way to ameliorate the complexities of handling multiple locales.

rloeb
rloeb member

@pete @rloeb@pete@rloebHey Pete, this is still not working, have tried both my laptop and android tablet (with chrome and firefox). My bookmarklet (see below) lets me work around it on my laptop with firefox, but not on the tablet.  IMO that screen is the best way to add the next few titles in a series to my must reads (and remove the books I read) as I'm reading through a series...there are other ways to do it but they are all tedious.

rloeb
rloeb member

@pete @rloebI have not been able to make Chrome Version 33.0.1750.154 m work with the MU menu, so I've never tried it.  Also I've noticed that the drops down to filter how many rows per page disappeared.  I see them in the raw html but they are not rendering in any browser.  I could hack that with jquery too but it is easier just to edit the querystring parameter directly...   Firebug is not reporting any javascript errors.  


The + side to this is that I quite like the bookmarklet I created: javascript:var%20x=$('.accordion_body').removeClass('collapsed');  which pops open all the series at once (apparently you guys are not using ajax to retrieve the series books as I open the series...they are all downloaded in the page initially) and personally I like that better rather than having only one series open at a time.


It seems to me that adding and removing books from the must read list are just simple post/delete ajax calls.   If you guys are worried about security for MU users, then why not just allow us to upload .html templates that are rendered within your authenticated page context, and in that .html file we can make whatever .ajax calls we want, in conjunction with the api you've already made public?  That way the MU subscriber would never need to provide credentials to anybody but you as per their normal login procedure, but would simply select a different .html file to run within their authenticated context?  Think of it as as themeing or skinning on steroids....

brilliancemobility
brilliancemobility

@codingrickyTake a look at the /characters endpoint via the Interaction Documentation. You can get the total number of items from the data object included in the results. Total is defined as:


total (int, optional): The total number of resources available given the current filter set.

My code looks something like this:
int total = MarvelResponse.data.total;
You can call the endpoint once, during start-up, and use the number throughout the execution or cache it.

pete
pete moderator

@TDonaghe @pete  One of them is a collection which you can filter out using the contains filter in series lookups. I did update the data to reflect that the collection is a collection and that the other one is terminating in 2014.