Analyze
POST
/api/crawler/analyze
const url = 'http://localhost:8080/api/crawler/analyze';const form = new FormData();form.append('project_id', 'example');form.append('source_type', 'example');form.append('url', 'example');form.append('strictness', 'balanced');form.append('crawl_id', 'example');form.append('file', 'binary');
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
options.body = form;
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:8080/api/crawler/analyze \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: multipart/form-data' \ --form project_id=example \ --form source_type=example \ --form url=example \ --form strictness=balanced \ --form crawl_id=example \ --form file=binaryAuthorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Responses
Section titled “Responses”Successful Response
Media typeapplication/json
Examplegenerated
exampleValidation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example" } ]}