Community

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

Comments

444 comments
dledford
dledford

So i have a question about first appearances. I have looked through the different calls and didn't find anything that would give the issue that was the first appearance of a character, did i miss it? Assuming i didn't, my idea was to just call all the comics for a characters limit result to 1 and order by onsale date.This doesn't seem to work. If i don't limit the number of comics this will work as long as the number of comics does not exceed the amount that can be returned in one call. below are some examples of spider-man id = 1009610 that i ran and the results i got that never had amazing fantasy 15 in the results. I'm thinking that the results that are returned in that one call are ordered but not all the results that exist are ordered and then returned. Any one have any thoughts on this?


call:

http://gateway.marvel.com:80/v1/public/characters/1009610/comics?orderBy=onsaleDate&limit=1&apikey=XXXXXXXXXXXXX

result snippet:

... "results": [ { "id": 17474, "digitalId": 0, "title": "Spider-Man: Spidey Strikes Back Vol. 1 Digest (Trade Paperback)"...

call:http://gateway.marvel.com:80/v1/public/characters/1009610/comics?orderBy=onsaleDate&apikey=XXXXXXXXXXXXX
result snippet:..."results": [ { "id": 20810, "digitalId": 8585, "title": "Spider-Man Fairy Tales (2007) #1",
...

arthurmde
arthurmde

Sometimes, when I try to import a Character's comic data I get no response at all. I've simulated the following request in Interactive Documentation and I sometimes I got anything: 

http://gateway.marvel.com:80/v1/public/characters/1009187/comics?limit=100&offset=100&apikey=4c4755780967752eecf76c08e8a89533

This usually happens when I try to import comics of a popular character (with more then 100 comics).

I think this must occur due to some internal server error. 

Does someone have the same problem?

Does someone have any idea about how I can fix this?

arthurmde
arthurmde

Now I got the following error:

Code: 500

Status: SQLSTATE[HY000] [2013] Lost connection to MySQL server at 'reading initial communication packet', system error: 104


citti
citti

what language did you guys build the API with? 

soun042564
soun042564

I keep getting


{"code":"InvalidCredentials","message":"That hash, timestamp and key combination is invalid."}
What is a valid timestamp format to use in Java? I think that is my problem. I have 21:01:50 for ts. I used to have the Month and Day as well but that did not work.

dledford
dledford

@soun042564 I'm just using System.currentTimeMillis();

you could probably do something like new Date().getTime() if you wanted to as well

RFJustJon
RFJustJon plus member

Hi, I'm getting the following error:

{"code":"InvalidCredentials","message":"That hash, timestamp and key combination is invalid."}


My code in PHP is:

$ts=time();

$key=$ts.$this->oauth_token_secret.$this->oauth_token;

$md5key=md5($key);


$params['name']=$name;

$params['ts']=$ts;

$params['apikey']=$this->oauth_token;

$params['hash']=md5($ts.$this->oauth_token_secret.$this->oauth_token);


$url= 'http://gateway.marvel.com:80/v1/public/characters';

$url.= '?'.http_build_query($params);


Thanks.

Mr-rock
Mr-rock member

Hey developers at Marvel HQ! What's up with you, guys? We haven't heard any API news or update since May 2014. Are you still maintaining this API? Would be great to hear from you soon!

Rock On!

teletechnophiliac
teletechnophiliac

Hi all, I'm attempting to get at least the first 100 characters using jQuery and keep getting a 409 error of "That hash, timestamp and key combination is invalid." This is what I have for my parameters: 

var params = 

"ts": $.now().toString(), 

"apikey": publicAPIKey,

"hash": hash.toString()

"limit": 100;

};

I'm using the md5 function from php.js to generate my hash passing in the string of $.now.toString()  + privateAPIKey + publicAPIKey and the URL I'm accessing in my GET request is http://gateway.marvel.com/v1/public/characters (I'm also testing this via Safari). Any suggestions? Thanks so much!

pcab
pcab

@teletechnophiliac I think you should asign $.now to a var and then use it to calculate your hash and assign the ts value. From what you have shared seems like you are calling $now() 2 times

turiaso13
turiaso13

Any call to characters endpoint that contain the element at offset 569 return error 500

yongelee
yongelee

In the terms and conditions, it says no press releases or public notification. What about posting on social media and reddit, is that allowed?

ArnaudPiroelle
ArnaudPiroelle

Hi, 


I'm Android Developer.

There is 6 months, i have published first version of my app that use Marvel API.



Yesterday, an application update has been refused because data that i use are not mine.

Google asks verifiable documentation that my application is authorized by Marvel.


Where can i find this type of document?

Have you encounter the same problems for your applications?


Thanks !


yongelee
yongelee

What is the difference between Stories, Comics, Events, and Series for entity types? It seems as if events, stories, series seem pretty similar in definition

Amothor
Amothor

Hey guys, my name is Amos. I am a game designer.


I am researching Marvel API for mobile and web games.
Have games been made using this API?
If so, where can I find these or other API related apps?
Has anyone here been approved by Marvel to monetize his app?

Thanks :)


prolink007
prolink007

@Phoenix1092 I am using the exact url that was given to me in the examples in the interactive documentation. Is the interactive documentation not giving the exact url's we are supposed to use?

prolink007
prolink007

@Phoenix1092 I will look more into that soon. However, it says you would get one of the errors that are listed if this was the issue. I was not getting any of those errors. I was getting a 409 "Conflict" error.

marcrapp
marcrapp

Anyone see any spec sizes for image assets? Something without having to test for the return?

Phoenix1092
Phoenix1092

@marcrapp I'm not sure, but it seems like thumbnail has specified size for every entity. But still - gotta test that by request.

njacobs5074
njacobs5074

I did a quick scan through the REST interface and I was wondering if the entity relationships between characters, comic books, series, and so on have been documented anywhere?  It'd be helpful to know up front what these are.


Thanks!

njacobs5074
njacobs5074

@Phoenix1092 Thanks - I was hoping that Marvel had published a schema or entity relationship document so that we don't have to experiment with the API to figure out the relationships.  I see the basic relationships from looking the API calls, but it'd be helpful if we had an authoritative document.

njacobs5074
njacobs5074

@jczorkmid Of course!  Thanks for pointing that out.  It's even machine readable.  :)

Zastislav
Zastislav

I came up with a new superhero. How do I contact the publisher?

Phoenix1092
Phoenix1092

@Zastislav That's not the place you are looking for, here you can ask about API stuff. Try searching bottom right of the main site.

Phoenix1092
Phoenix1092

Any way I can filter entities containing mentioned words? Like use ?title=-Hulk _not_ to get containing Hulk in them?

jczorkmid
jczorkmid member

Why is the nickname for doing a GET on "/v1/public/characters" called "getCreatorCollection"?

jczorkmid
jczorkmid member

If you look in the swagger spec for the api, all of the operations have a "nicname" field, which is a suggested function name for wRapping that call. Some of them seem to be way off though.

Phoenix1092
Phoenix1092

@jczorkmid Didn't really get the question. Can you give an example of response? I'm getting a JSON with characters from that GET.

prolink007
prolink007

I was looking through the API and i see no way of doing a search for comics that contain a string. For instance, if i wanted to search for a comic that contained the word "Thor" in the title. I would expect the following results. (hypothetical comics, not real)


Thor

The best Thor ever

I love thorium


I would expect all those results.


Also is there a search where i can get specific results. For instance, if i search for "Thor" exactly. I would expect the following results.


Thor

The best Thor ever


I love thorium would not show up because it contained thor but was not "thor".


Is there a way to do this with the provided API or would you consider adding that feature?


Thanks

antonioortegajr
antonioortegajr

@prolink007 I don't think it searches the whole title. If I query for amazing I expect "Amazing Spider-Man" to return. However I got nothing back. Search Spider-Man and I do get results.


And for more specific targeted searching, I think it already does. I search for Hulk I get no She-Hulk results. I have to search for her specifically.

eloijr
eloijr

In some moments I get error 401 - Unauthorized and in another everything work! Anyone can help me?

eloijr
eloijr

Hi guys, I did not understand the way 'offset' parameter of CharacterDataContainer works. Anyone can help me, please?

drhensel
drhensel

@eloijr Traditionally offset works as a pointer for where you want to start your list of results (I'm going off the top of my head here -- I haven't been in the API for a bits).


So one way to look at it:

Offset: 0, Count: 50 --> will give you 1-50 of the result set

Offset: 57, Count: 50 --> will give you 58-108 of the result set


With large sampling of data, the server rarely responds back with all possible results (this is a good thing because a full result set can slow down the performance significantly, just trying to download all the content).  Offset in conjunction with other parameters allows you more control on what data you get back.


Another way to think of it:

Page 1 == Offset: 0, Count: 50

Page 2 == Offset: 50, Count: 50

Page 3 == Offset: 100, Count: 50

Page 4 == Offset: 150, Count: 50

And so on...

jalenthunder
jalenthunder

Is miles morales going to take the place of peter parker please don't make peter parker get more powers please andrew garfield is the best spiderman makechim have newcand improved powers

jalenthunder
jalenthunder

I think that peter parker should later find out that he had morevpowers than he imagined and miles morelas should go back in time and save peter from dying and later team up

unfitgammon
unfitgammon

I am getting A lot of failed to load In my commic this week on the unlimted app is this an issuse with the comics or the app? Is there anY kind of fix?

Joevanna
Joevanna

Hello everyone,


I am starting to use the API, I'd like to know if there is a way to filter the gender of the character... I can't seem to find it anywhere.


Thanks in advance