Docs menu

Request history

Beta GET /v1/account/usage

GET /v1/account/usage

The team's past API requests, newest first: endpoint, status, credits charged and time. Free. The cursor is the page number (at most 100 pages).

  • Cost: Free
  • Status: Beta. Built and tested against recorded responses; the shape may still gain fields.
  • Cache: Not cached.

Parameters#

NameTypeRequiredDescription
endpointstringnoOnly requests whose path contains this text, "/v1/tiktok/profile".
statusintegernoOnly requests that answered this HTTP status. Also accepted as statusCode, status_code.

Every request also accepts:

  • cursor: the cursor from the previous page (Pagination).

Example request#

Set your key in the environment first (see Authentication).

curl
curl "https://api.socialscrape.io/v1/account/usage" \
  -H "x-api-key: $SOCIALSCRAPE_API_KEY"
Python
import os
import requests

res = requests.get(
    "https://api.socialscrape.io/v1/account/usage",
    headers={"x-api-key": os.environ["SOCIALSCRAPE_API_KEY"]},
)
body = res.json()

if body["ok"]:
    print(body["data"])
else:
    print(body["error"]["code"], body["error"]["message"])
TypeScript
const res = await fetch("https://api.socialscrape.io/v1/account/usage", {
  headers: { "x-api-key": process.env.SOCIALSCRAPE_API_KEY! },
});
const body = await res.json();

if (body.ok) {
  console.log(body.data);
} else {
  console.error(body.error.code, body.error.message);
}
n8n
{
  "nodes": [
    {
      "name": "SocialScrape Request history",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        0,
        0
      ],
      "parameters": {
        "method": "GET",
        "url": "https://api.socialscrape.io/v1/account/usage",
        "sendQuery": false,
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "x-api-key",
              "value": "={{ $env.SOCIALSCRAPE_API_KEY }}"
            }
          ]
        }
      }
    }
  ],
  "connections": {}
}

Example response#

This is a sample with illustrative values. Status 200.

{
  "ok": true,
  "credits_charged": 0,
  "credits_remaining": 5000,
  "cached": false,
  "cached_at": null,
  "request_id": "req_f0316b94d18d799b109188e6",
  "data": {
    "object": "list",
    "items": [
      {
        "object": "request_log",
        "request_id": "req_0123456789abcdef01234567",
        "endpoint": "/v1/github/user",
        "endpoint_id": "github.user",
        "status": 200,
        "credits_charged": 1,
        "cached": false,
        "created_at": "2026-10-29T14:03:11Z"
      },
      {
        "object": "request_log",
        "request_id": "req_89abcdef0123456789abcdef",
        "endpoint": "/v1/github/user",
        "endpoint_id": "github.user",
        "status": 200,
        "credits_charged": 0,
        "cached": true,
        "created_at": "2026-10-29T14:02:40Z"
      }
    ],
    "cursor": "2",
    "has_more": true
  },
  "cursor": "2",
  "has_more": true
}

Response#

A list of RequestLogEntry objects in data.items, with data.cursor and data.has_more.

See Data models for every field. The envelope around data is described in Responses.

Errors#

Failures are free: credits_charged is 0. Branch on error.code, never on the message.

CodeHTTPRetryMeaning
invalid_params400noA parameter is missing, unknown or has the wrong type.

Every request can also fail with the account and platform errors listed on the Errors page.

Also served at#

These paths answer the same request, so code written for other APIs keeps working: /v1/account/get-api-usage. See Switching from ScrapeCreators.