API reference
Submit URL batches, follow their status and read your balance over a JSON API. API access must be enabled on your account.
Quickstart
- Create a key under API keys. Test keys (
ri_test_) never use credits. - POST your URLs to
/batches, as in the example below. - Poll the batch, or receive a signed webhook when it completes.
All requests go to this base URL and send and receive JSON:
Submit your first two URLs with a single request:
The response includes a batch id. Use it to check progress, or set a webhook and let us tell you when it's done.
Authentication
Create API keys in your dashboard under API keys. Send the key in the Authorization header on every request:
ri_live_keys spend real credits.ri_test_keys return realistic fake results and never spend credits. Use them while building.
URL statuses
Every submitted URL moves through these states:
| Status | Meaning | Credit |
|---|---|---|
| queued | Accepted and waiting to be sent. | Reserved |
| submitted | Sent to discovery channels; waiting for a crawler visit. | Reserved |
| crawled | A crawler visit was detected. Index checks are running. | Reserved |
| indexed | Found in the index. Final. | Spent |
| not_indexed | Not found by the end of the check window. Final. | Refunded |
| rejected | Not processed (invalid URL, unreachable, blocked by robots.txt or noindex). The reason field says why. Final. | Never charged |
| cancelled | Removed from the queue before it was sent. Final. | Refunded |
A batch is processing while any of its URLs are not in a final state, then becomes completed. A batch cancelled before any URL was sent becomes cancelled.
Create a batch
Submits up to 10,000 URLs. One credit is reserved for each accepted URL. URLs that fail validation are returned in rejected and aren't charged.
Body parameters
| Field | Type | Description |
|---|---|---|
| urlsrequired | string[] | Absolute http or https URLs. 1–10,000 items. Duplicates are merged. |
| name | string | Label shown in your dashboard. Up to 120 characters. |
| folder | string | Project folder to file the batch under. |
| webhook_url | string | HTTPS URL to call when the batch completes. Overrides your account default. |
| notify | string | none or email. Default none. |
Response 201 Created
Idempotency-Key header (any unique string) to retry safely. A repeated key within 24 hours returns the original batch instead of creating a new one.Get a batch
Returns the batch with a count of URLs in each status.
List batch URLs
Returns URLs in the batch in the order they were submitted.
Query parameters
| Param | Type | Description |
|---|---|---|
| status | string | Filter to one status. |
| limit | integer | 1–500. Default 100. |
| cursor | string | Value of next_cursor from the previous page. |
List batches
Returns your batches, newest first. Supports limit, cursor, status (processing or completed) and folder.
Cancel a batch
Cancels URLs that are still queued and returns their credits right away. URLs already submitted keep processing. Returns the updated batch.
Account & balance
reserved credits belong to URLs that haven't reached a final status yet. They are spent or returned when those URLs finish.
Webhooks
When a batch completes we send a POST to your webhook URL. Respond with any 2xx within 10 seconds. Failed deliveries are retried up to 6 times over 24 hours.
Verify the signature
Each delivery has an X-RI-Signature header: a hex HMAC-SHA256 of the raw request body, signed with your webhook secret from the dashboard. Reject requests where it doesn't match.
Errors
Errors use standard HTTP status codes and the same JSON shape:
| HTTP | code | When |
|---|---|---|
| 400 | invalid_request | Body isn't valid JSON or a field has the wrong type. |
| 401 | unauthorized | Missing, malformed or revoked API key. |
| 402 | insufficient_credits | Not enough credits for the accepted URLs. Nothing was charged. |
| 403 | plan_required | Your plan doesn't include API access or this feature. |
| 404 | not_found | No batch with that id on your account. |
| 413 | too_many_urls | More than 10,000 URLs in one request. |
| 429 | rate_limited | Too many requests. See rate limits. |
| 5xx | server_error | Something went wrong on our side. Retry with backoff. |
Rate limits
Each API key can make 60 requests per minute. Batch size, not request count, is the way to send more URLs: one request can carry 10,000.
Every response includes these headers:
| Header | Description |
|---|---|
| X-RateLimit-Limit | Requests allowed per minute. |
| X-RateLimit-Remaining | Requests left in the current window. |
| Retry-After | On a 429, seconds to wait before retrying. |