Community

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

Comments

626 comments
KeOt777
KeOt777

I think it would be interesting if we could get other data in the json, like the information on the wiki (e.g. http://marvel.com/universe/Spider-Man). It would be interesting to be able to add the official powergrid along witht he information on the left panel (occupation, known relatives, group affiliation, powers, abilities, etc). I'm making an app for a college project, it has little requirements, but I wanted to make like a "profile page" of sorts in which you can search from a list of characters and get as much data as possible. It's just an idea, but it would be interesting and cool to get all that info.

chowdmouse
chowdmouse

I'm getting the following error:


{

 "code": "InvalidCredentials",

   "message": "That hash, timestamp and key combination is invalid."

}


I think I've create the hash correctly by running ts+apikey+privatekey through md5 (example: 6<apikey><privatekey>). My understanding was that the ts just has to be a unique string for the call.


Any help is appreciated.

chowdmouse
chowdmouse

@bolia


My understanding is that <timestamp> is not actually a _timestamp_ but just any unique string (relative to the calls one is making.) So "6" is a valid "timestamp" per the call.


Am I misunderstanding?

chowdmouse
chowdmouse

@bolia thanks! what a rookie mistake, but that was exactly my problem.

bolia
bolia

@chowdmouse 

you can use any string representation of an integer. But you have to do a MD5 encoding on the whole thing.

I think your key order is wrong: <timestamp><privatekey><apikey> should be the right order.

sromain
sromain

My keys is stills returning "{

"code": "InvalidCredentials",

  "message": "This user is not allowed to use that service."

}" any idea? how much does it take?

danny_s@hotmail.
danny_s@hotmail. member

I am not a coder, but an Excel power user. I am not happy with Marvel's online ease of use, Event Listings and Read Orders and have created my own in Excel. I was thinking of partnering with someone who knows PHP, MySQL, etc. I was thinking about creating my own App but don't know where to start. Any Ideas?

ToyMakerGR
ToyMakerGR

Your interactive documentation does not work. I always get a "This user is not allowed to use that service." error, despite providing my api key. I also get the same error though my code while providing apikey, ts and hash. Please fix this.

rdzwn
rdzwn



I'm building a HTML5/JS web application and trying to access the client-side API... but am getting the above. What's wrong? Sorry I'm new to this. Appreciate any help 
{"code":"MissingParameter","message":"You must provide a hash."}

ROSHOWnet
ROSHOWnet

If you were having problems getting a key, please try again. We're currently working on the issue!

tomaszekem
tomaszekem

cannot get the developer key, because of 500 error

aletheia1982
aletheia1982

Trying to get a new key, but a lot of 5xx errors are preventing me in doing this

sag604
sag604

anyone know how to get a new api key?  I think mine is messed up from all the 500 errors. 

carlos_souza
carlos_souza

Hi people.

I am doing a application getting information from Marvel API.

I would want to know when the information is up to date? Daily? Weekly? Monthly?

Freddar
Freddar

I registered my account yesterday, and I have no number "Your rate limit:" in my account info.


When I try to use the API, I also get the "This user is not allowed to use that service."

Freddar
Freddar

@krishna9473 @Freddar Still no solution. I wonder with all the 500 errors of the site if when I registered, it just didn't do the whole process correctly. Is there any E-Mail we can contact them?

bkruijssen
bkruijssen

@Freddar Same problem here, keeps returning "invalid credentials". Anyone got any information on this?

chrux
chrux

My keys is stills returning "{

  "code": "InvalidCredentials",

  "message": "This user is not allowed to use that service."

}" any idea? how much does it take?

chrux
chrux

Any help with this guys?

snowflakegirl
snowflakegirl

Is there an API which covers data from the MCU rather than just the comics?  I'm on a web developer course at the moment, about to start my final project and I'd really like to build a forum site for people to see upcoming snippets of an episode of SHIELD and be able to chat about it, or a trailer, or what have you.  

painbank
painbank

3000 calls per day is pretty low.  any plans to increase this?

Ozzlack
Ozzlack

Please do not kill Captain America. In the film The First Avenger civil war!!!!

Ozzlack
Ozzlack

Hi. Please following the film series "The First Avenger" do that Hydra has created a time machine and wants to change the outcome of the war, but the Avengers are trying to stop them. With this machine, Captain America will take with them into the future, Peggy Carter. Please.

teatreeman
teatreeman

I thought I would share some PHP (server code with you). I always find that API documentation lists the object obtainable but has less info on how to process the object on the request end of things. After much deliberation I created this following class and set of functions to display character images, names, descriptions , attributions etc. I hope it saves someone the many hours of programming I spent on getting this to work. All you need to do is enter your API key details and names of heroes/villains to be retrieved. It can also be used to obtain the url necessary for individual comic requests. 




<?php

class comic {

public $attribution;

public $name;

public $url;

public $description;

public $image;

public function marvel_character($character){

$public = 'xxx';

$human = 'xxx';

$time = time();

$hash = $time . $human . $public;

$hash = md5($hash);

$url = 'http://gateway.marvel.com/v1/comics?';

$string = 'ts=' . $time . '&apikey=' . $public . '&hash=' . $hash;

$url = 'http://gateway.marvel.com:80/v1/public/characters?name=' . $character .'&' . $string;

$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, $url);

curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);

curl_setopt($ch, CURLOPT_HEADER, false);

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);

$body = curl_exec($ch);

curl_close($ch);


$response = json_decode($body,1);

//print_r($response);


$number = 0;

//print $response['code'];

//print $response['status'];

//print utf8_decode($response['copyright']);

//print utf8_decode($response['attributionTEXT']);

$this->attribution = utf8_decode($response['attributionHTML']);

foreach($response as $item) {

//Attribution

 foreach($item as $array){

 //Character Information

      if($number > 3){

       $this->name = $array[0]['name'];

     $this->description = $array[0]['description'];

     $this->image = "<img src='" . $array[0]['thumbnail']['path'] . '/standard_xlarge.' . $array[0]['thumbnail']['extension'] . "' style='width:100%;'/>";

#Url

foreach($array[0]['urls'] as $comics){

if($comics['type'] == 'detail'){

$this->url = $comics['url'];

}

}

  }

$number = $number + 1;

}

}

}}

####Name of Marvel Characters

$heroes = array('Captain%20America','Thor','Iron%20Man','Hulk');

####Processing

foreach($heroes as $marvel){

$located = new comic();

$located->marvel_character($marvel);


print "<div style='clear:both;>'><div style='float:left;margin:10px;width:15%;'>" . $located->image ."</div>";

print "<p style='padding-top:10px;'>";

print "<a href='" . $located->url . "' style='display:block;margin-bottom:10px;'>" . $located->name . '</a><br>';

print $located->description;


print '</p></div>';

}

print "<div style='clear:both;'>" . $located->attribution . "</div>";

?>

danny_s@hotmail.
danny_s@hotmail. member

@teatreeman I am not a coder, but an Excel power user. I am not happy with Marvel's online ease of use, Event Listings and Read Orders and have created my own in Excel. I was thinking of partnering with someone who knows PHP, MySQL, etc. I was thinking about creating my own App but don't know where to start. Any Ideas?

teatreeman
teatreeman

@danny_s@hotmail. @teatreeman It depends on what you want to do. If you want to be able to read data from your Excel spreadsheet, then you could do so with PHP and MySQL. It is very straightforward


danny_s@hotmail.
danny_s@hotmail. member

@teatreeman @danny_s@hotmail. Thanks for the response. Sorry I'm just now replying myself, I'm more into reading comics than coding. 


What I want to do is grab data from Marvel, like digital issue numbers, sync it up with my own data so the user can select which books to read online. For example, I have a category for Hulk. The user can read, in order, from 1961 to present including all off-shoots like Giant-Size to SheHulk to Red Hulk etc. Or they can filter on an event like Realm of Kings and read all associated books in order. Eventually I would like the user to be able to filter on anything like a creator or character, say Black Panther, and all books from FF to Avengers to Black Panther back to FF would populate with links to the digital issues. The app or program will remember that they read that issue. And the user will be able to add to my data so others can access it, like create their own events and or categories. 


Then there is the problem of adding new content to my data. I know we're not supposed to download and cache the data from Marvel, but what if I just grab the codes for new issues every week? A few years ago Marvel used to let you download a CSV with all the info. Now I just open each new book and then copy the data into Excel. Took a couple of hours each week.


I have everything in my head, I just don't know how to go about hosting the site to doing the code. I downloaded WAMP, but I just didn't have time to learn how to use it. I'm really good at plagiarizing, so I just need to get started and I will run with it.


Thanks again for any help you (or others reading this) can give me.

ashunagar
ashunagar

Hi,

I am new to the marvel api. I need few suggestions from this forum may be my questions are be bit silly. Please help me out for the below queries:

How can I display price for comic returned from the marvel api?

Do we have any marvel api for allowing the user to purchase the comic and once purchase which api can be used for displaying the content?

Which api we can use for displaying the content of freely available comics?

Please help me here as I got stuck with it.

Thanks in Advance.

NTALEX
NTALEX

Does anyone know how often this database is updated?  I ran a query for comics that wolverine (id='1009718') appears in from 2015-01-01, 2015-11-01.  and I get back 0 results. 


Go back to 2014, and 2013, and further back yielded more results. so maybe just 2015 comics are missing?


Love the fact that this API is available, and would want to do more with the dataset.  

jotasprout
jotasprout

I'm so glad this "forum" is getting more active. I've started a subReddit if that would be of help and/or interest to anyone.

Trooglodyte
Trooglodyte

how can we create our heroes I don't find how to --'

dpg5000
dpg5000

any way to randomize the list of comic series that are outputted for a specific character?  



for more popular characters like Wolverine, I only get 20 titles and they're all in the A alphabetical range.  I'd like a more randomized output of series.  Ideally, I'd like a most-recent series sort, but I don't think the series listed for a character have that sorting,

teletechnophiliac
teletechnophiliac

@dpg5000 I don't think you can do that with the API call, but you can get up to 100 results per call by setting the limit in the API call, store the results, and then pull randomly from the stored list. You'd have to do the randomization yourself though.