Limits and errors

Every plan has two per-minute limits, one for lookups and one for searches, plus a monthly request allowance. Free, Starter, and Builder also cap products a day. GET /api/v1/me returns yours.

How requests count

  • A batch of up to 100 ids is one request and one lookup. Each id is still charged as one product.
  • Search has its own per-minute limit. Every other call is a lookup. A search is charged its page size in products.
  • A price read is one product priced. A batch of 40 products priced is 40 reads. Only Free has a separate daily cap on them.
  • The monthly allowance is a hard stop. There is no overage. Calls are refused until 00:00 UTC on the 1st.
  • Days and months are UTC.
Limits by plan
PlanLookups a minuteSearches a minuteRequests a monthProducts a dayPrice reads a day
Free3051,0001,000100
Starter3003050,00025,000No cap
Builder1,20060500,000250,000No cap
Pro3,0001202,000,000No capNo cap
Scale6,00024010,000,000No capNo cap

Response headers

Every response to a call with a valid key says where you stand.

X-RateLimit-Lookups-Limitinteger
Lookups (every call except search and raw prices) allowed per minute.
X-RateLimit-Lookups-Remaininginteger
Lookups you can send now before being limited.
X-RateLimit-Searches-Limitinteger
Searches allowed per minute.
X-RateLimit-Searches-Remaininginteger
Searches you can send now before being limited.
X-RateLimit-Prices-Limitinteger
Raw price calls allowed per minute; 0 when the plan does not include raw pricing.
X-RateLimit-Prices-Remaininginteger
Raw price calls you can send now before being limited.
X-Quota-Month-Limitinteger
Requests allowed per calendar month (UTC). Sent only when the plan has a monthly allowance.
X-Quota-Month-Remaininginteger
Requests left in the monthly allowance, this one included. Sent only when the plan has a monthly allowance.
X-Quota-Month-Resetinteger
Seconds until the monthly allowance resets, at 00:00 UTC on the 1st. Sent only when the plan has a monthly allowance.
X-Quota-Day-Products-Limitinteger
Products allowed per UTC day. Sent only when the plan has a daily allowance.
X-Quota-Day-Products-Remaininginteger
Products left in the daily allowance before this request. Sent only when the plan has a daily allowance.
X-Quota-Day-Slabs-Limitinteger
Slab lookups allowed per UTC day. Sent only when the key has slab pricing.
X-Quota-Day-Slabs-Remaininginteger
Slab lookups left in the daily allowance before this request. Sent only when the key has slab pricing.
Retry-Afterinteger
Seconds to wait before retrying.

Errors

Error bodies are problem details (RFC 9457), with these fields. detail says what went wrong. Retry-After is set on every 429 and 503.

typestring · nullable
titlestring · nullable
statusinteger · nullable
detailstring · nullable
instancestring · nullable

Other fields may appear.

What each status means:

400
A parameter is wrong. detail names it.
401
No key, or the key is unknown, revoked or expired.
404
No product has that id.
429
Wait the Retry-After seconds, then send again. Which limit it was:
  • No body. Your lookups or searches a minute, or too many requests from one network address.
  • Product allowance exceeded. Retry after the Retry-After interval.Too many products in one minute, across batches and search pages.
  • Monthly request allowance exceeded.The monthly hard stop. Retry-After runs to 00:00 UTC on the 1st; retrying sooner will not help.
  • Daily price allowance exceeded.A Free key has priced its products for the day. Retry-After runs to 00:00 UTC.
  • Search is busy. Retry shortly.Search is under load. This is not your limit.
503
Search timed out. Narrow the query or retry shortly.Narrow the query, or retry after Retry-After.

Questions? Email us.

Endpoint reference

Generated from the published OpenAPI document, Cardspine API v1. Paths are on https://api.cardspine.com. Download openapi.json

Your key

GET/api/v1/me

Returns the calling client and its limits.

Parameters

None. Send only your key.

Request
curl "https://api.cardspine.com/api/v1/me" \
  -H "X-Api-Key: $CARDSPINE_KEY"

Returns 200 MeV1

The calling API client and its limits.

clientstring
The client's name.
keyPrefixstring
The visible prefix of the key used for this call.
requestsPerMinuteinteger
The client's requests-per-minute limit.
productsPerMinuteinteger
The client's products-per-minute limit.
planstring
The client's plan, or custom when its limits were set by hand.
searchesPerMinuteinteger
The client's searches-per-minute limit.
monthlyRequestsinteger · nullable
The client's monthly request allowance; null when it has none.
dailyProductsinteger · nullable
The client's daily product allowance; null when it has none.

Other responses

429
A request, product or monthly limit was exceeded. Retry after the interval in the Retry-After header.
401
As on every call; see Limits and errors.