Run an endpoint for up to 1,000 inputs
Run one GET endpoint for up to 1,000 inputs in the background. dryRun: true returns the quote for 0 credits; maxCredits approves it. Failed inputs are…
Headers
Get your API keyAPI key (`sfk_...`)
A key you choose for this job, such as a UUID. A retry with the same key and body returns the job the first request made, with `Idempotent-Replayed: true`, and holds nothing more. The key is kept as long as the job is (7 days); use a new key for each job.
pattern: ^[!-~]{1,255}$
Request body
Endpoint-specific response payload.
The price of this job, worked out before anything runs.
The endpoint every input runs.
How many inputs.
≥ 0
The most this job can cost: every input at its endpoint's price. A run holds this much and charges only what its inputs cost.
≥ 0
The cheapest and dearest input's price.
≥ 0
≥ 0
The job, just queued; null on a dry run.
The job's id.
The endpoint every input runs.
`queued` until it starts, `running`, then `completed`. `expired` when it reached its 24-hour limit first: inputs that hadn't run failed, uncharged.
one of: queued, running, completed, expired
≥ 0
How far the job has got.
Inputs that have run.
≥ 0
≥ 0
≥ 0
≥ 0
What the job holds and costs.
The quote, held while the job runs.
≥ 0
What the job cost; null until it has ended.
≥ 0
The part of the quote given back: failed inputs, and inputs that cost less than their price. Null until the job has ended.
≥ 0
ISO 8601.
ISO 8601; null while queued.
ISO 8601; null until it has ended.
ISO 8601: when the job and its results are deleted, 7 days after it was created.
Metadata describing the request and billing outcome.
Unique request identifier for tracing this API call.
min 1 chars
Credits charged for this request.
≥ 0
Public API version that served the response.
one of: v1
Present, and `true`, only when the source couldn't be reached and this is the last good answer for the same request instead, up to 24 hours old. Absent on every live answer.
one of: true
When a stale answer (`stale: true`) was originally fetched (ISO 8601, UTC). Absent on every live answer.
Code example
curl "https://api.socialfetch.dev/v1/jobs" \
-H "x-api-key: $SOCIALFETCH_API_KEY" \
-H "Content-Type: application/json" \
-d '{"endpoint":"string","items":[{}],"dryRun":false,"maxCredits":0,"webhookEndpointId":"string"}' \
-X POSTResponses
A dry run: the quote, for 0 credits. Nothing was held.