Web Scraping
Crawl a website
Changed onCrawl a website and return page content as Markdown. Use a batch for crawls beyond 500 pages.
post/web/crawl
Request
- Base URL: https://api.context.dev/v1
- URL: https://api.context.dev/v1/web/crawl
- Auth: HTTP bearer
Request body
Example request
{
"urlRegex": "^https?://[^/]+/blog/",
"excludeUrlRegex": "/tag/|/author/",
"country": "de",
"tags": [
"production",
"team-alpha"
]
}Response
Successful response
Example response
{
"request_id": "3f1c2a6e-8b4d-4c1e-9f0a-2d7b5e6c8a91"
}Changes
- warning
added the new
NO_PUBLISHED_MARKDOWNenum value to theresponse property for the response status - warning
added the new
NO_PUBLISHED_MARKDOWNenum value to theresponse property for the response status - warning
added the new
NO_PUBLISHED_MARKDOWNenum value to theresponse property for the response status - info
added the new optional request property
- warning
- info
added the new optional request property
- info