POST /crawl
Start a durable, multi-page crawl of a website.
POST
Start a durable, multi-page crawl beginning at
url. The crawl runs as a background job — use
the returned id to poll GET /crawl/{id} for status and results, or cancel
it with DELETE /crawl/{id}.
By default the crawl discovers URLs via sitemap first (same semantics as POST /map) and then
follows links found on each page across the whole domain. Set crawlEntireDomain to false to stay
below the starting URL’s path, and allowSubdomains to include subdomains.
Authorization
Send your pline.ai API key in theX-API-Key header on every request.
Body
Only crawl URLs whose path matches one of these regex patterns (not globs). For example,
["^/docs/"] keeps the crawl to paths starting with /docs/.Follow links anywhere on the domain. Set to
false to stay below the starting URL’s path.Output formats to return for each crawled page, as a list. Defaults to
markdown only when omitted. At least one format is required when you set it.Options applied to every page the crawl scrapes (also accepted as
scrapeOptions). Field names are snake_case, as on POST /scrape. Any other POST /scrape field, such as geolocation, actions, or only_main_content, is also accepted. url, method, and body are ignored, because the crawler sets them for each page.Response
Crawl job ID. Use this to poll status (
GET /crawl/{id}) or cancel (DELETE /crawl/{id}).