Get information about your UPC Database Account
https://api.upcdatabase.org/account
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://api.upcdatabase.org/account',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => array(
'Authorization: Bearer THISISALIVEDEMOAPIKEY19651D54X47'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
var settings = {
"url": "https://api.upcdatabase.org/account",
"method": "GET",
"timeout": 0,
"headers": {
"Authorization": "Bearer THISISALIVEDEMOAPIKEY19651D54X47"
},
};
$.ajax(settings).done(function (response) {
console.log(response);
});
curl --location --request GET 'https://api.upcdatabase.org/account' \ --header 'Authorization: Bearer THISISALIVEDEMOAPIKEY19651D54X47'
{
"success": true,
"email": "[email protected]",
"registered": 1401659200,
"active": 1763078400,
"score": "1181",
"banned": false,
"apikey_count": "7",
"products": {
"added": "9774",
"modified": "814"
},
"api_subscription": {
"active": true,
"name": "Standard",
"cost": 10
},
"api_limits": {
"lookups": 10000,
"searches": 1000,
"currency": 5000
},
"api_remain": {
"lookups": "9774",
"search": "814",
"currency": "4917"
},
"api_requests": "10457",
"timestamp": 1763247003}
{
"success": false,
"error": {
"message": "Your API Key is invalid. Please check the format.",
"endpoint": "account",
"query": "",
"apikey": "833acad74f55fee9655852e1c70e6eef"
},
"timestamp": 1585074998
}