CaptAPICaptAPI Account
GET /v1/account/request-history

Request History API

Recent API requests for your key — requestId, status, credits, cacheHit (0 credits).

0 credits per request
TL;DR
Recent API requests for your key — requestId, status, credits, cacheHit (0 credits). The Request History API (CaptAPI Account) is a single authenticated GET request to /v1/account/request-history that responds with clean JSON and costs 0 credits. Account endpoints are always live (never cached). Start with 100 free credits — no credit card.

What is the Request History API?

Live (never cached) request log for your Captapi key — free. Each row includes requestId (same UUID as the response envelope / x-captapi-request-id for support matching), endpoint, platform, resource (public URL or internal cache key such as instagram_user:handle — resourceUrl is a deprecated alias), creditsUsed, cacheHit, statusCode, responseTimeMs, errorMessage, createdAt. Filter with endpoint, statusCode, since, and until. limit only caps rows returned — it does not bill.

What you get

  • requestId per row for support / envelope matching
  • creditsUsed + cacheHit + responseTimeMs (see cache savings in one sample)
  • Filters: endpoint, statusCode, since, until
  • Free — never cached, never billed

Try it

Open in Playground

Fill in the parameters below and copy a ready-to-run request, or open the live Playground to run it against your account (no API key paste).

Parameters

Sign in to run live
curl "https://api.captapi.com/v1/account/request-history?limit=20" \
  -H "Authorization: Bearer capt_live_..."
# or: -H "x-api-key: capt_live_..."

Edit the parameters and the code updates instantly. Switch languages and hit copy.

Example response

{
  "success": true,
  "data": {
    "totalReturned": 5,
    "requests": [
      {
        "requestId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
        "endpoint": "/v1/instagram/basic-profile",
        "platform": "instagram",
        "resource": "instagram_user:adencylnozturk",
        "resourceUrl": "instagram_user:adencylnozturk",
        "creditsUsed": 0,
        "cacheHit": true,
        "statusCode": 200,
        "responseTimeMs": 154,
        "errorMessage": null,
        "createdAt": "2026-07-18T11:31:44.31599+00:00"
      },
      {
        "requestId": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
        "endpoint": "/v1/instagram/basic-profile",
        "platform": "instagram",
        "resource": "instagram_user:adencylnozturk",
        "resourceUrl": "instagram_user:adencylnozturk",
        "creditsUsed": 1,
        "cacheHit": false,
        "statusCode": 200,
        "responseTimeMs": 4980,
        "errorMessage": null,
        "createdAt": "2026-07-18T11:31:21.584147+00:00"
      },
      {
        "requestId": "c3d4e5f6-a7b8-9012-cdef-123456789012",
        "endpoint": "/v1/instagram/basic-profile",
        "platform": "instagram",
        "resource": "instagram_user:adencylnozturk",
        "resourceUrl": "instagram_user:adencylnozturk",
        "creditsUsed": 1,
        "cacheHit": false,
        "statusCode": 200,
        "responseTimeMs": 4168,
        "errorMessage": null,
        "createdAt": "2026-07-18T11:31:20.30634+00:00"
      },
      {
        "requestId": "d4e5f6a7-b8c9-0123-def0-234567890123",
        "endpoint": "/v1/pinterest/board",
        "platform": "pinterest",
        "resource": "https://www.pinterest.com/potterybarn/indigo-blues-lookbook/",
        "resourceUrl": "https://www.pinterest.com/potterybarn/indigo-blues-lookbook/",
        "creditsUsed": 3,
        "cacheHit": false,
        "statusCode": 200,
        "responseTimeMs": 17558,
        "errorMessage": null,
        "createdAt": "2026-07-18T11:29:07.873651+00:00"
      },
      {
        "requestId": "e5f6a7b8-c9d0-1234-ef01-345678901234",
        "endpoint": "/v1/facebook/marketplace-item",
        "platform": "facebook",
        "resource": "https://www.facebook.com/marketplace/item/2228870800986975/",
        "resourceUrl": "https://www.facebook.com/marketplace/item/2228870800986975/",
        "creditsUsed": 1,
        "cacheHit": false,
        "statusCode": 200,
        "responseTimeMs": 10482,
        "errorMessage": null,
        "createdAt": "2026-07-18T11:28:59.677517+00:00"
      }
    ],
    "filters": {
      "endpoint": null,
      "statusCode": null,
      "since": null,
      "until": null,
      "limit": 5
    }
  }
}

Billing metadata is returned in response headers: X-Captapi-Credits (credits charged), X-Captapi-Cache (hit or miss), and X-Captapi-Source. Failed requests (4xx/5xx) are never charged. See the full list of error codes in the error reference.

Response structure

A successful call returns success, cached, creditsUsed, and a data object with the following fields:

Top-level fields

  • totalReturnedNumber of items returned in this response.

Requests

Each item in requests contains:

  • requestIdUUID of the logged call — same value as the response envelope requestId / x-captapi-request-id header. Use when contacting support.
  • endpointEndpoint. Example: "/v1/instagram/basic-profile".
  • platformPlatform identifier for this response (matches the endpoint's platform).
  • resourceLogged resource identifier: a public URL when the call had one, otherwise an internal cache key (e.g. instagram_user:handle).
  • resourceUrlDeprecated alias of resource (not always a URL). Prefer resource.
  • creditsUsedCredits charged for that call (0 on cache hits).
  • cacheHittrue when the call was served from the 24h shared cache (0 credits).
  • statusCodeStatus code. Example: 200.
  • responseTimeMsResponse time ms. Example: 154.
  • errorMessageError message.
  • createdAtCreation date (ISO 8601).

Filters

The filters object contains:

  • endpointEndpoint.
  • statusCodeStatus code.
  • sinceSince.
  • untilUntil.
  • limitRequested max items for this call.

Parameters

NameTypeRequiredDescription
limitintegerNoMax rows to return (default 50, max 500). Free — does not consume credits.
endpointstringNoExact Captapi path filter, e.g. /v1/instagram/basic-profile.
statusCodeintegerNoFilter by HTTP status code (e.g. 500).
sincestringNoInclusive lower bound on createdAt (ISO date or datetime).
untilstringNoExclusive upper bound on createdAt (ISO date or datetime).

Authentication: send your key as Authorization: Bearer capt_live_.... A typical call costs 0 credits. Always live — account endpoints are never cached.

Using an AI agent? This endpoint is the MCP tool account_request_history via @captapi/mcp. Set it up →

How it works

  1. 1. Sign up — get 100 free credits, no card required.
  2. 2. Create a key from your dashboard.
  3. 3. Send one request to /v1/account/request-history and parse the JSON response.

Use cases

Support matching

Copy requestId from a failed call and match it to the envelope / x-captapi-request-id header.

Incident filters

Query last week's 5xx with statusCode + since/until, or a single endpoint path.

Cache savings

Compare cacheHit true (0 credits, ~150ms) vs false (billed, multi-second) on the same resource.

Frequently asked questions

What does the Request History API do?+

The Request History API returns request history for your Captapi API key via one GET request to /v1/account/request-history. It returns clean JSON and does not charge credits.

How many credits does the Request History API cost?+

Account endpoints are free — they do not consume credits.

Do I need a CaptAPI Account API key or OAuth?+

You only need your Captapi API key (Authorization: Bearer). No third-party OAuth is required.

Is the Request History API suitable for production use?+

Yes. It is a stable REST endpoint with predictable JSON. Account endpoints are always live (never cached) and do not charge credits.

More CaptAPI Account APIs

Ready to use the Request History API?

Sign up, grab your key, and make your first call in 60 seconds.