Skip to content

Count proposed batch input

GET
/api/v1/batch-jobs/count
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.

definitionId
string format: uuid
inputId
string format: uuid
tags
string

Count proposed batch input.

Media typeapplication/json
object
count
required
integer
largeRun
required
boolean
warningThreshold
required
integer
Examplegenerated
{
"count": 1,
"largeRun": true,
"warningThreshold": 1
}

Validation failed — request body or query is missing/invalid

Media typeapplication/json
object
error
string
Example
{
"error": "Missing or invalid \"url\" field"
}

Missing or invalid authentication token

Media typeapplication/json
object
error
string
Example
{
"error": "Missing or invalid authentication token"
}

Insufficient permissions for this operation

Media typeapplication/json
object
error
string
Example
{
"error": "No organization. Complete onboarding first."
}

Resource not found

Media typeapplication/json
object
error
string
Example
{
"error": "Workflow not found"
}

Unexpected server error. Logs and PostHog $exception capture

Media typeapplication/json
object
error
string
Example
{
"error": "Something went wrong"
}