Batch create URLs
POST
/api/v1/urls/batch
const url = 'https://dashboard.justcrawl.io/api/v1/urls/batch';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"urls":[{"url":"example","priority":1,"tags":["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/urls/batch \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "urls": [ { "url": "example", "priority": 1, "tags": [ "example" ] } ] }'Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ” Media type application/json
object
urls
required
Array<object>
object
url
required
string
priority
integer
tags
Array<string>
Example generated
{ "urls": [ { "url": "example", "priority": 1, "tags": [ "example" ] } ]}Responses
Section titled “ Responses ”Batch creation result
Media type application/json
object
created
integer
duplicates
integer
Example generated
{ "created": 1, "duplicates": 1}