API Docs

Version:  1.1

GET/v1.1/usage

Return historical quota usage information.


Definition

https://api.sharedcount.com/v1.1/usage


Parameters

NameTypeDescription Required
apikeystringYour API Key.true

Curl
Node.js
Python
Php
curl 'https://api.sharedcount.com/v1.1/usage?apikey=YOUR_API_KEY'
npm i sharedcount-sdk

const SharedCountApi = require('sharedcount-sdk');
let sharedCountApiInstance = new SharedCountApi('YOUR_API_KEY');
 
//Return historical quota usage information.
var usage = sharedCountApiInstance.usage();
pip install sharedcountsdk

from sharedcountsdk import SharedCountApi
sharedCountApiInstance = SharedCountApi('YOUR_API_KEY')

//Return historical quota usage information.
usage = sharedCountApiInstance.usage()
composer require sharedcount/sharedcount-sdk

require __DIR__ . '/vendor/sharedcount/sharedcount-sdk/lib/api.php';
$sharedcountApiInstance = new SharedcountApi('YOUR_API_KEY');

//Return historical quota usage information.
$usage = $sharedcountApiInstance->usage();

Result Format

Success
{"2014-02-13": {"date": "2014-02-13", "queries": 320, "quota": 10000}, "2014-02-14":
{"date": "2014-02-14", "queries": 4403, "quota": 10000}, "2014-02-15":
{"date": "2014-02-15", "queries": 202, "quota": 10000}, "2014-02-16":
{"date": "2014-02-16", "queries": 105, "quota": 10000}}