/account

Get information about your UPC Database Account


Definition

https://api.upcdatabase.org/account


Request

<?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'

Response

{
    "success": true,
    "email": "[email protected]",
    "registered": 1401659200,
    "active": 1664841600,
    "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": 1665008913}
{
    "success": false,
    "error": {
        "message": "Your API Key is invalid. Please check the format.",
        "endpoint": "account",
        "query": "",
        "apikey": "abe0d651b8355d2cc862c386830c9e76"
    },
    "timestamp": 1585074998
}