↑ ↓ to move ↵ to open

Web Crawling API

Follow links from one page across a site and get every page's clean Markdown, with depth, scope patterns and robots.txt rules. Complete crawls run as one server-side job: 1 credit per successfully crawled page.

Web Crawling API
{  "completion_reason": "page_limit",  "final_url": "https://docs.stripe.com/payments",  "traversal_complete": false,  "pages": [    {      "title": "Payments | Stripe Documentation",      "content_type": "text/html; charset=utf-8",      "depth": 0,      "description": "Use Stripe to start accepting payments.",      "final_url": "https://docs.stripe.com/payments",      "language": "en-US",      "markdown": "# Payments | Stripe Documentation\n\nPayments\n\n## Use Stripe to start accepting payments.\n\nGet started\n\nIntegrate with Stripe to start accept…",      "rendered": false,      "status_code": 200,      "url": "https://docs.stripe.com/payments"    },    {      "title": "Stripe Documentation",      "content_type": "text/html; charset=utf-8",      "depth": 1,      "description": "Explore our guides and examples to integrate Stripe.",      "final_url": "https://docs.stripe.com/",      "language": "en-US",      "markdown": "# Stripe Documentation\n\n![](https://b.stripecdn.com/docs-statics-srv/assets/52d6e32f24e1d2872960ba1d0cb8aac5.webp)\n\n[Sign in](https://dashb…",      "parent_url": "https://docs.stripe.com/payments",      "rendered": false,      "status_code": 200,      "url": "https://docs.stripe.com/"    }  ]}
Try it live, free

What you send, what comes back

The input object it accepts, and every field of a record, with the values from the response above.

Input23 fields
FieldTypeRequiredWhat it doesExample
url string yes The page to start from. https://docs.stripe.com/payments
accept_statuses array<integer> no Error statuses you still want returned, such as [404], to inspect the page.
ai string no Rank the documents found by how relevant they are to your instructions. Nothing is removed. never · auto · always
allow_browser_fallback boolean no Open the page in a real browser when it needs JavaScript or blocks a plain request. On by default.
allow_truncated boolean no Return what was read when a page is larger than the size limit, instead of failing.
complete boolean no Run the whole site as one server-side job instead of one bounded slice. Billed 1 credit per successfully crawled page.
concurrency integer no How many pages to fetch at once.
continuation_token string no Pass the token from the last response, with the same options, to continue a crawl.
delay_ms integer no A pause between requests, in milliseconds, to go easy on the site.
delivery string no How large results come back: auto, inline, or as a download link for very large crawls. auto · inline · hosted
detail string no summary for titles and counts only; standard or full for each page's text and Markdown. summary · standard · full
document object no Options for PDFs and other files found on the way.
exclude_patterns array<string> no Leave out URLs matching these patterns.
include_patterns array<string> no Only URLs matching these patterns, such as path:/blog/* or contains:pricing.
include_subdomains boolean no Also follow other subdomains of the same site, such as docs. and blog.
instructions string no With ai, which documents you care about.
max_body_bytes integer no The largest page or file to read, in bytes.
max_depth integer no How many links away from the start page to go.
max_duration_seconds integer no With complete, the wall-clock ceiling for the whole job: 7,200 seconds (two hours) by default and maximum.
max_pages integer no The most pages to fetch in this call. 10
max_total_bytes integer no The most bytes to read in all, redirects included.
max_total_pages integer no With complete, the most pages the whole job may crawl: 10,000 by default and maximum.
respect_robots boolean no Follow the site's robots.txt rules. On by default.
Fields it returns14 fields
FieldTypeWhat it isExample
pages[].title string The page's title. Payments | Stripe Documentation
pages[].url string The page's address. https://docs.stripe.com/payments
pages[].depth integer How many links away from the start page this page is. 0
pages[].description string The page's description for search engines. Use Stripe to start accepting payments.
pages[].language string The page's language. en-US
pages[].content_type string The kind of content the page is. text/html; charset=utf-8
pages[].final_url string The address the page ended at, after any redirects. https://docs.stripe.com/payments
pages[].markdown string The page's text as Markdown. # Payments | Stripe Documentation Payments ## Use Stripe to sta…
pages[].rendered boolean Whether the page was opened in a browser before reading. false
pages[].status_code integer The site's HTTP status for the page, such as 200. 200
completion_reason string Why the crawl stopped, such as reaching the page limit. page_limit
final_url string The address the page ended at, after any redirects. https://docs.stripe.com/payments
pages array The pages found. 10 records
traversal_complete boolean Whether every reachable page was visited. false

What this endpoint covers

Call it from your code

Set UPSCRAPE_API_KEY to your key and copy a working request. No SDK needed.

curl --request POST \  --url https://data.upscrape.com/execute \  --header "Authorization: Bearer $UPSCRAPE_API_KEY" \  --header "Content-Type: application/json" \  --header "Prefer: wait=30" \  --data '{  "capability": "web.crawl",  "input": {    "max_pages": 10,    "url": "https://docs.stripe.com/payments"  }}'
Response
{  "completion_reason": "page_limit",  "final_url": "https://docs.stripe.com/payments",  "traversal_complete": false,  "pages": [    {      "title": "Payments | Stripe Documentation",      "content_type": "text/html; charset=utf-8",      "depth": 0,      "description": "Use Stripe to start accepting payments.",      "final_url": "https://docs.stripe.com/payments",      "language": "en-US",      "markdown": "# Payments | Stripe Documentation\n\nPayments\n\n## Use Stripe to start accepting payments.\n\nGet started\n\nIntegrate with Stripe to start accept…",      "rendered": false,      "status_code": 200,      "url": "https://docs.stripe.com/payments"    },    {      "title": "Stripe Documentation",      "content_type": "text/html; charset=utf-8",      "depth": 1,      "description": "Explore our guides and examples to integrate Stripe.",      "final_url": "https://docs.stripe.com/",      "language": "en-US",      "markdown": "# Stripe Documentation\n\n![](https://b.stripecdn.com/docs-statics-srv/assets/52d6e32f24e1d2872960ba1d0cb8aac5.webp)\n\n[Sign in](https://dashb…",      "parent_url": "https://docs.stripe.com/payments",      "rendered": false,      "status_code": 200,      "url": "https://docs.stripe.com/"    }  ]}

Use it from your AI agent instead

The other website tools

The same API key runs every one of them.

Web Crawling API FAQ

The short answers. The docs have the long ones.

Still have a question? Talk to the people who build the endpoints.
How much does the Web Crawling API cost?

1 credit per successful call, shown before it runs. You buy credits once, and paid credits never expire.

What do I send?

Send url. The input fields below list every option with its type and limits.

Which sites does it work on?

Any public page a visitor can open without logging in. A page that is blocked or gone fails with its reason.

Can my AI agent call it?

Yes, over MCP: the agent finds web.crawl, checks its price and runs it with the same credits as the REST API.