Menu

Extract

Extract batch

Up to 1,000 URLs as one job, with results you poll for or a webhook when it ends.

Copy as MarkdownOpen in ChatGPT (opens in a new tab)Open in Claude (opens in a new tab)

Text
POST   https://api.millionshort.com/v1/extract/batch
GET    https://api.millionshort.com/v1/extract/batch/{id}
DELETE https://api.millionshort.com/v1/extract/batch/{id}

The same extraction as POST /v1/extract, for up to 1,000 URLs, run as a job.

Submit

The body is the Extract request, with two differences: urls takes 1 to 1,000 entries, and there is one more field.

FieldTypeDefaultNotes
urlsarray of strings, 1 to 1,000, distinctRequired
modeauto, cached, live, rendered, unblock, stealth"auto"As for Extract
max_age_hoursinteger, 0 to 8,760168As for Extract
formatsarray of markdown, text, links, metadata["markdown","metadata"]As for Extract
max_charsinteger, 1 to 500,00050000As for Extract
webhook_idstringAn active webhook endpoint of your team. Optional
topics, page_types, source_hintsarrays of slugsKeep only the pages with these labels. Optional
Example
Shell
curl https://api.millionshort.com/v1/extract/batch \
  -H "Authorization: Bearer $MILLIONSHORT_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: nightly-2026-11-18" \
  -d '{
    "urls": ["https://example.com/a", "https://example.com/b"],
    "mode": "live"
  }'

The answer is the job, with status: "queued".

Poll

Example
Shell
curl https://api.millionshort.com/v1/extract/batch/$BATCH_ID \
  -H "Authorization: Bearer $MILLIONSHORT_API_KEY"
FieldTypeNotes
idstring
statusqueued, running, completed, cancelled, failed
totalintegerURLs in the batch
completedintegerURLs done so far, succeeded or failed
failedintegerURLs that failed
resultsarrayExtract results, up to 50 at a time
nextstring or nullPass as ?cursor= to get the next page of results; null at the end

Polling is free and does not count against the plan's requests a minute. It has its own limit of 120 a minute per team. Results are kept for 7 days.

Cancel

Example
Shell
curl -X DELETE https://api.millionshort.com/v1/extract/batch/$BATCH_ID \
  -H "Authorization: Bearer $MILLIONSHORT_API_KEY"

Work that has finished is charged; what is left of the hold is handed back.

How a batch runs

Errors

400 INVALID_PARAM (also for a webhook_id that is not an active endpoint of the team), 400 UNSUPPORTED_OPTION, 401 for a missing or refused key, 404 JOB_NOT_FOUND for a batch that does not exist or is not yours, 429 INSUFFICIENT_CREDITS and 429 RATE_LIMITED. Per-URL errors are the ones on the Extract page.

This page as Markdown · llms.txt