Get information about your UPC Database Account
https://api.upcdatabase.org/account
curl --location --request GET 'https://api.upcdatabase.org/account' \ --header 'Authorization: Basic TXxx0QXBwOxxkzMTx5xDYzMxxyNjZBNDZGNTY2xxQyRjg1OG'
<?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: Basic TXxx0QXBwOxxkzMTx5xDYzMxxyNjZBNDZGNTY2xxQyRjg1OG" ), )); $response = curl_exec($curl); curl_close($curl); echo $response;
{ "success": true, "email": "admin@mywebsite.com", "registered": "1301659200", "active": "0", "score": "1981", "banned": false, "apikey_count": "5", "products": { "added": "9971", "modified": "1000" }, "api_remain": { "lookups": "9971", "search": "1000", "currency": "5000" }, "api_requests": "58", "timestamp": 1585074998 }
{ "success": false, "error": { "message": "Your API Key is invalid. Please check the format.", "endpoint": "account", "query": "", "apikey": "5fb26a54000d43519b51034e31fb6f20" }, "timestamp": 1585074998 }