Appendix
Response headers
Successful searches carry your credit numbers, so you rarely need to ask for them separately.
| Header | Meaning |
|---|---|
X-Credits-Charged | Credits this request cost. The same number is in search_metadata.credits_charged. |
X-Credits-Used | Credits used in the current period. |
X-Credits-Limit | Your credit limit this period. Not sent when your plan has no cap. |
X-Credits-Left | Credits left this period. Not sent when your plan has no cap. |
X-Plan | Your plan's id. |
Retry-After | On 429 and 503 answers: how many seconds to wait before trying again. |
Location | On a 202 answer to a queued search: where to read the task. |
The credit headers come with successful searches. For the full picture at any time, use GET /v1/account.