---
title: "Request History API"
method: GET
path: "/v1/account/request-history"
tags: ["Account"]
---

# Request History API

`GET /v1/account/request-history`

## Request

- Base URL: `https://api.captapi.com`
- URL: `https://api.captapi.com/v1/account/request-history`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-Key`

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

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, createdAt. errorMessage is omitted on successful rows. Filter with endpoint, statusCode, since, and until. Page with cursor / nextCursor (hasMore is true only when nextCursor is set). limit default 50, max 500 — it caps the page and does not bill.

Docs: https://captapi.com/apis/account-request-history

## Query parameters

- `limit` integer
- `endpoint` string
- `statusCode` integer
- `since` string
- `until` string
- `cursor` string

## Response `200`

Success. The data object for this endpoint.

- object
  - `success` unknown, required
  - `data` object, required
    - `totalReturned` integer: Number of items returned in this response.
    - `hasMore` boolean: true when another page exists — pass nextCursor as cursor.
    - `nextCursor` unknown
    - `requests` object[]
      - `requestId` string: UUID of the logged call — same value as the response envelope requestId / x-captapi-request-id header. Use when contacting support. Also present on 4xx validation envelopes.
      - `endpoint` string: Endpoint. Example: "/v1/instagram/basic-profile".
      - `platform` string: Platform identifier for this response (matches the endpoint's platform).
      - `resource` string: Logged resource identifier: a public URL when the call had one, otherwise an internal cache key (e.g. instagram_user:handle).
      - `resourceUrl` string: Deprecated alias of resource (not always a URL). Prefer resource.
      - `creditsUsed` integer: Credits charged for that call (0 on cache hits).
      - `cacheHit` boolean: true when the call was served from the 24h shared cache (0 credits).
      - `statusCode` integer: Status code. Example: 200.
      - `responseTimeMs` integer: Response time ms. Example: 154.
      - `createdAt` string: Creation date (ISO 8601).
    - `filters` object
      - `endpoint` unknown
      - `statusCode` unknown
      - `since` unknown
      - `until` unknown
      - `limit` integer: Requested max items for this call.
      - `cursor` unknown

## Other responses

- `400`: Bad request: wrong platform URL, unknown endpoint, or an invalid parameter value. Not billed.
- `401`: Missing, invalid or revoked API key. Not billed.
- `402`: Not enough credits for this request. Not billed.
- `404`: The resource does not exist or is not public. Not billed.
- `422`: A required parameter is missing or has the wrong type. Not billed.
- `429`: Rate limit reached. Wait for Retry-After seconds. Not billed.
- `502`: The platform could not be reached or returned nothing usable. Retryable, not billed. 503 and 504 use the same envelope.

---

[API](https://skmtc.dev/captapi/apis/captapi-api.md) · [All operations](https://skmtc.dev/captapi/apis/captapi-api/llms.txt) · [OpenAPI document](https://skmtc.dev/captapi/apis/captapi-api/revisions/c9b9ac5ff1bd?raw)
