Skip to content

Scrape Url

POST
/api/v2/scrape
curl --request POST \
--url http://localhost:8000/api/v2/scrape \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "url": "example" }'
Media typeapplication/json
ScrapeRequest
object
url
required
Url
string
Examplegenerated
{
"url": "example"
}

Successful Response

Media typeapplication/json
ScrapeResponse
object
description
Description
string
""
extracted_emails
Extracted Emails
Array<string>
default:
html_content
Html Content
string
""
method
Method
string
""
preview_text
Preview Text
string
""
status
required
Status
string
title
Title
string
""
url
required
Url
string
word_count
Word Count
integer
0
Example
{
"description": "",
"extracted_emails": [],
"html_content": "",
"method": "",
"preview_text": "",
"title": "",
"word_count": 0
}

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
ctx
Context
object
input
Input
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{
"detail": [
{
"ctx": {},
"input": "example",
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}