Count proposed batch input
const url = 'https://api.justcrawl.io/api/v1/batch-jobs/count';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.justcrawl.io/api/v1/batch-jobs/count \ --header 'Authorization: Bearer <token>'Requires urls:read and exactly one of definitionId, inputId or tags. An input must be sealed. The tags selector is a JSON array string (recommended; preserves commas), a comma-separated string, or an empty string. Empty tags select all enabled URLs using ANY-tag matching. The count is advisory and does not create a definition. Before a large launch, show count, warningThreshold, expected credit use, possible hours of runtime and no customer cancellation; choose maxJobs deliberately. Preparation may later measure a different live-tag count. Unknown or duplicate query fields are rejected.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Responses
Section titled “Responses”Count proposed batch input.
object
Examplegenerated
{ "count": 1, "largeRun": true, "warningThreshold": 1}Validation failed — request body or query is missing/invalid
object
Example
{ "error": "Missing or invalid \"url\" field"}Missing or invalid authentication token
object
Example
{ "error": "Missing or invalid authentication token"}Insufficient permissions for this operation
object
Example
{ "error": "No organization. Complete onboarding first."}Resource not found
object
Example
{ "error": "Workflow not found"}Unexpected server error. Logs and PostHog $exception capture
object
Example
{ "error": "Something went wrong"}