Getting Started with the Marvel API in PHP

Share
marvel-universe
Marvel recently launched an API that allows developers limited access to its vast database.


The API.

The API is simple to understand and fully documented at: http://developer.marvel.com/docs
You need to create a Marvel account to use the API.


Diving into the API.

To use the API, you need the following things:
1. A public key (API key)
2. A private key
3. A timestamp
4. A md5 message digest

The first two are given to you as soon as you create a developer account at Marvel.
The time-stamp is a unique dynamically generated identifier generated by a requesting system at run time.

The md5 message digest is a combination of time-stamp, private key and public key.

marvel-api-calls

PHP implementation


The PHP implementation is simple. The entire skeletal code is available at  GitHub.
https://github.com/sjmach/marvel-php.git






Written by Sundeep Machado © 2007 - 2018 Sundeep Machado

You can get in touch with him on and Twitter