Get daily usage breakdown

Default range is last 30 days. Max range is 366 days.

GET
/v1/usage/daily

Authorization

AuthorizationRequiredBearer <token>

API key. Manage keys from the dashboard at app.bytekit.com.

In: header

Query Parameters

fromstring

Start date (YYYY-MM-DD). Default 30 days ago.

Format: "date"
tostring

End date (YYYY-MM-DD). Default today.

Format: "date"
api_keystring

Filter by API key (prefixed ID, e.g. ak_xxx). When provided, returns usage rows attributed to that key only. The key must belong to the requesting account; cross-account keys return empty data. Revoked keys still return historical data. When absent, aggregates across all keys.

curl https://api.bytekit.com \
  -H "Authorization: Bearer sk_live_your_api_key_here"

Successful response.

{
  "from": "string",
  "to": "string",
  "data": [
    {
      "date": "2019-08-24",
      "credits_single": 0,
      "credits_bulk": 0,
      "credits_monitor": 0,
      "credits_search": 0,
      "credits_total": 0,
      "bytes_total": 0,
      "bytes_single": 0,
      "bytes_bulk": 0,
      "bytes_scrape": 0,
      "bytes_monitor": 0,
      "bytes_screenshot": 0,
      "bytes_recording": 0,
      "bytes_scrape_md": 0,
      "bytes_fetch": 0,
      "bytes_fetch_md": 0,
      "bytes_crawl": 0,
      "bytes_crawl_links": 0,
      "bytes_sitemap": 0
    }
  ]
}