Submit a scrape job
POST
/api/v1/jobs
const url = 'https://dashboard.justcrawl.io/api/v1/jobs';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"url":"example","workflowId":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://dashboard.justcrawl.io/api/v1/jobs \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "url": "example", "workflowId": "example" }'Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ” Media type application/json
object
url
required
string
workflowId
string
Example generated
{ "url": "example", "workflowId": "example"}Responses
Section titled “ Responses ”Job created successfully
Media type application/json
object
id
string format: uuid
status
string
url
string
workflowId
string format: uuid
version
integer
providerId
string
statusCode
integer
latencyMs
integer
errorType
string
errorMessage
string
scheduleId
string format: uuid
createdAt
string format: date-time
completedAt
string format: date-time
Example
{ "status": "queued"}Insufficient credits