Community

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

Comments

436 comments
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

fiorenzodipezza
fiorenzodipezza member

Hello!
I'd love to track the series that I'm reading. 

I mean: I'd like to get a notification if the new issue of my favourite series comes out. :D

What's the use of having a cozy app on a notification-enabled device if every time I have to dig in the "discovery" section or scroll the entire "what's new" just to understand that the new issue is not out yet? :(



Also .. comics were divided in "events". What if the library could have "events" or "comic" categories?
 The possibility to add a whole "event" to the library, instead of a single issue would be absolutely amazing.


A feedback would be amazing. as Marvel unlimited is :D

kford932
kford932 member

Getting many "failed to download issue resource" errors when reading comics on marvel unlimited ipad app. Please advise.

dashund
dashund

I have a grandson who loved to play Captain America.  He is 6.  He did love to pretend to be the super hero until another youngster told him he couldn't be Captain America because Captain America is white.  You see, Isaac is an adoptee from Ethiopia.  He didn't know the color of his skin would keep him from being a super hero.


Please consider creating a super hero character who is an african american so that children of ethnicity can celebrate being a super hero like other children.

agentpowers
agentpowers

@dashund, There are many awesome African American heroes that come from Marvel Universe that both you and your grandson will surely enjoy! There are three that I can think of off the top of my head that teams up with Captain America that your grandson may especially like. I've listed them below.

Falcon - He is Captain America's partner in the new Captain America: Winter Soldier film. He also becomes Captain America in the comic books! He's featured in over 1,400 comic book issues and is a very cool super hero. He is also said to be making appearances in the upcoming movies, Avengers: Age of Ultron and Captain America: Civil War.

Black Panther - He is a member of the  Avengers and King of Wakanda. He is one the smartest men on the planet and has superhuman combat skills and senses. He also has a movie coming out in 2017. There are around 150 Black Panther solo comic books total and he's appeared in over 1800 other comic book issues along side the Avengers, Fantastic Four, and many more.

Isaiah Bradley - Chronologically, he is the First Captain America! He appears in 43 comic book issues including Spider-Man, Young Avengers, and Captain America.

Isaiah Bradley and Falcon were both Captain America, your grandson can be Captain America too! :)

swati11
swati11

How to generate MD5 hash code? Can it be generated online using MD5 hash generator? If so, then what should we pass as an input to the MD5 hash generator?

antonioortegajr
antonioortegajr

@swati11 You can use an online generator. You need the timestamp+private_key+api_key for the hash.