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

  1. Create a key under API keys. Test keys (ri_test_) never use credits.
  2. POST your URLs to /batches, as in the example below.
  3. Poll the batch, or receive a signed webhook when it completes.

All requests go to this base URL and send and receive JSON:

https://quickcrawling.com/api/v1

Submit your first two URLs with a single request:

curl -X POST https://quickcrawling.com/api/v1/batches \ -H "Authorization: Bearer ri_live_YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{ "name": "Blog launch", "urls": [ "https://example.com/blog/new-post", "https://example.com/blog/second-post" ] }'

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:

Authorization: Bearer ri_live_8f2c...e41a
  • ri_live_ keys spend real credits.
  • ri_test_ keys return realistic fake results and never spend credits. Use them while building.
Keep keys on your server. Never put them in browser JavaScript, mobile apps or public repositories. If a key leaks, revoke it in the dashboard and create a new one.

URL statuses

Every submitted URL moves through these states:

StatusMeaningCredit
queuedAccepted and waiting to be sent.Reserved
submittedSent to discovery channels; waiting for a crawler visit.Reserved
crawledA crawler visit was detected. Index checks are running.Reserved
indexedFound in the index. Final.Spent
not_indexedNot found by the end of the check window. Final.Refunded
rejectedNot processed (invalid URL, unreachable, blocked by robots.txt or noindex). The reason field says why. Final.Never charged
cancelledRemoved 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

POST/batches

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

FieldTypeDescription
urlsrequiredstring[]Absolute http or https URLs. 1–10,000 items. Duplicates are merged.
namestringLabel shown in your dashboard. Up to 120 characters.
folderstringProject folder to file the batch under.
webhook_urlstringHTTPS URL to call when the batch completes. Overrides your account default.
notifystringnone or email. Default none.

Response 201 Created

{ "id": "bat_7Qm2xK", "name": "Blog launch", "status": "processing", "created_at": "2026-11-17T10:42:08Z", "accepted": 2, "rejected": [ { "url": "ftp://example.com/file", "reason": "unsupported_scheme" } ], "credits_reserved": 2, "balance_after": 1498 }
Send an 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

GET/batches/{id}

Returns the batch with a count of URLs in each status.

curl https://quickcrawling.com/api/v1/batches/bat_7Qm2xK \ -H "Authorization: Bearer ri_live_YOUR_KEY"
{ "id": "bat_7Qm2xK", "status": "processing", "counts": { "queued": 0, "submitted": 0, "crawled": 1, "indexed": 1, "not_indexed": 0, "rejected": 1 }, "check_window_ends_at": "2026-11-21T10:42:08Z" }

List batch URLs

GET/batches/{id}/urls

Returns URLs in the batch in the order they were submitted.

Query parameters

ParamTypeDescription
statusstringFilter to one status.
limitinteger1–500. Default 100.
cursorstringValue of next_cursor from the previous page.
{ "data": [ { "url": "https://example.com/blog/new-post", "status": "indexed", "crawled_at": "2026-11-17T13:05:51Z", "indexed_at": "2026-11-18T02:19:30Z" } ], "next_cursor": null }

List batches

GET/batches

Returns your batches, newest first. Supports limit, cursor, status (processing or completed) and folder.

Cancel a batch

DELETE/batches/{id}

Cancels URLs that are still queued and returns their credits right away. URLs already submitted keep processing. Returns the updated batch.

Account & balance

GET/account
{ "email": "[email protected]", "plan": "growth", "api_access": true, "credits": { "available": 1498, "reserved": 2 } }

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.

{ "event": "batch.completed", "sent_at": "2026-11-21T10:42:30Z", "data": { "id": "bat_7Qm2xK", "name": "Blog launch", "mode": "live", "counts": { "indexed": 1, "not_indexed": 0, "rejected": 1, "cancelled": 0 }, "credits_refunded": 0 } }

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.

$body = file_get_contents("php://input"); $expected = hash_hmac("sha256", $body, getenv("RI_WEBHOOK_SECRET")); if (!hash_equals($expected, $_SERVER["HTTP_X_RI_SIGNATURE"] ?? "")) { http_response_code(401); exit; }

Errors

Errors use standard HTTP status codes and the same JSON shape:

{ "error": { "code": "insufficient_credits", "message": "This batch needs 2,000 credits; 1,498 are available." } }
HTTPcodeWhen
400invalid_requestBody isn't valid JSON or a field has the wrong type.
401unauthorizedMissing, malformed or revoked API key.
402insufficient_creditsNot enough credits for the accepted URLs. Nothing was charged.
403plan_requiredYour plan doesn't include API access or this feature.
404not_foundNo batch with that id on your account.
413too_many_urlsMore than 10,000 URLs in one request.
429rate_limitedToo many requests. See rate limits.
5xxserver_errorSomething 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:

HeaderDescription
X-RateLimit-LimitRequests allowed per minute.
X-RateLimit-RemainingRequests left in the current window.
Retry-AfterOn a 429, seconds to wait before retrying.
Questions or need higher limits? Contact us.