Skip to main content
The Admin API lets you automate PricePirate workflows from your own tools.

Base URL

Use this base URL for all Admin API requests:

Authentication

Create an API key under Settings → API keys. The token uses the format pp_live_<prefix>.<secret> and is shown only once. Copy it immediately. Send the token in the Authorization header:
Missing, invalid, or revoked tokens return 401 UNAUTHORIZED.

Writes and idempotency

Every write request requires an Idempotency-Key header. This applies to POST, PUT, PATCH, and DELETE requests. Use a unique key for each logical write operation. A UUID works well.
If you repeat the same key with the same request body, the API returns the cached response and includes this header:
The idempotency cache is kept for 24 hours. If you reuse the same key with a different request body, the API returns 409 idempotency_key_reuse. If another request with the same key is still running, the API returns 409 idempotency_key_in_progress.

Rate limits

Each shop can send 60 requests per minute. The limit is shared by all API keys of the shop. If you exceed the limit, the API returns 429 TOO_MANY_REQUESTS and includes a Retry-After header with the number of seconds to wait before retrying.

Errors

Error responses use one JSON shape:
Every error response includes a requestId. It is a UUID unless you send your own X-Request-ID header, in which case the API returns that value. Quote the requestId when you contact support about a failed API request.

Pagination

List endpoints use page and perPage query parameters. page is one-based. Use page=1 for the first page. Without perPage, a page holds 20 items. GET /price-changes, GET /product-metrics, and the competitor-leaderboard report accept only perPage values of 10, 20, 50, or 100. Other values in the allowed range return 20 items per page.

Reference

Use the endpoints in the Admin API navigation for parameters, response schemas, and examples.