Get Metadata
Parameters:
- api_username - Required. Your company's API username. Found in your company page.
- api_key - Required. Your company's API key. Found in your company page.
- method - Required. This method name is 'get_metadata'.
- isbn - Required. The 10 or 13 digit ISBN of the product you want information on.
- results - Your results can be formatted in xml or json. AmazonPepr uses json by default.
Sample Call
http://amazonpepr.com/api/?api_username=[sampleUsername]&api_key=[sampleApiKey]&method=get_metadata&isbn=9780023078255&results=json
Sample Results
{
"success":true,
"message":"Item metadata retrieved successfully.",
"query":{
"isbn":"9780023078255",
"timestamp":1421872126
},
"metadata":{
"author":"Immanuel Kant",
"binding":"Paperback",
"edition":"2",
"image_small":"http:\/\/ecx.images-amazon.com\/images\/I\/71BTSBMRSXL._SL75_.gif",
"image_medium":"http:\/\/ecx.images-amazon.com\/images\/I\/71BTSBMRSXL._SL160_.gif",
"image_large":"http:\/\/ecx.images-amazon.com\/images\/I\/71BTSBMRSXL.gif",
"isbn10":"0023078251",
"isbn13":"9780023078255",
"pages":"90",
"published_date":"1989-10-15",
"publisher":"Pearson",
"title":"Foundations of the Metaphysics of Morals"
}
}
Sample Results Decoded
This is what the above data looks like after decoding the json into an associative array:
Array
(
[success] => 1
[message] => Item metadata retrieved successfully.
[query] => Array
(
[isbn] => 9780023078255
[timestamp] => 1421872511
)
[metadata] => Array
(
[author] => Immanuel Kant
[binding] => Paperback
[edition] => 2
[image_small] => http://ecx.images-amazon.com/images/I/71BTSBMRSXL._SL75_.gif
[image_medium] => http://ecx.images-amazon.com/images/I/71BTSBMRSXL._SL160_.gif
[image_large] => http://ecx.images-amazon.com/images/I/71BTSBMRSXL.gif
[isbn10] => 0023078251
[isbn13] => 9780023078255
[pages] => 90
[published_date] => 1989-10-15
[publisher] => Pearson
[title] => Foundations of the Metaphysics of Morals
)
)