marketprice
Unified access to marketprice data.
GET /v1/marketprice/lookup
6 credits
cached 3h
Parameters
| ean | required | e.g. value |
| country | optional | e.g. value |
curl "http://datatrend.nl/v1/marketprice/lookup?ean=value" \ -H "x-api-key: YOUR_KEY"
<?php
$ch = curl_init("http://datatrend.nl/v1/marketprice/lookup?ean=value");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['x-api-key: YOUR_KEY'],
]);
$data = json_decode(curl_exec($ch), true);
print_r($data['data']);
import requests
r = requests.get(
"http://datatrend.nl/v1/marketprice/lookup?ean=value",
headers={"x-api-key": "YOUR_KEY"},
)
print(r.json()["data"])
const r = await fetch(
"http://datatrend.nl/v1/marketprice/lookup?ean=value",
{ headers: { "x-api-key": "YOUR_KEY" } }
);
const { data } = await r.json();
console.log(data);