Docs · Reference
Website Crawler (Markdown for RAG)
GET /v1/url/crawl1 credit / pagecache 60 minCrawl a website from a start URL (and optionally its XML sitemap) and get every page back as clean Markdown with title, description, language, word count and link depth. Built for RAG and LLM ingestion: navigation and boilerplate removed, duplicates dropped, very long pages truncated and flagged. Same-site only, include/exclude path patterns (glob or regex), optional JavaScript rendering in real Chrome. Polite by design: robots.txt and Crawl-delay respected, at most 4 requests in flight, hard page, byte and time limits. Charged per page returned (1 credit, 2 with rendering); failed crawls are free.
Query parameters
urlstring · required | Start URL: a site root or any page. Only pages on the same site are crawled (same registrable domain, so www. and other subdomains are included). |
limitinteger | Maximum number of pages to return. Charged per page returned: 1 credit, 2 with render=true. Default: 10 |
max_depthinteger | How many links deep to follow from the start page (0 = only the start page and, with use_sitemap, the sitemap URLs). Default: 2 |
include_pathsarray | Only crawl URLs whose path matches one of these patterns. Glob (/blog/*, *.html), regex (prefix re: or start with ^), or a plain path prefix (/docs). Matched against the URL path and query. The start page is always read for links. |
exclude_pathsarray | Never crawl URLs whose path matches one of these patterns (exclude wins over include). Glob (/blog/*, *.html), regex (prefix re: or start with ^), or a plain path prefix (/docs). Matched against the URL path and query. |
use_sitemapboolean | Also seed the crawl with the URLs listed in the site's XML sitemap (found through robots.txt or /sitemap.xml). Default: false |
renderboolean | Render every page in real Chrome so JavaScript-built content is captured. Slower; 2 credits per page. Default: false |
include_linksboolean | Keep hyperlinks in the Markdown. Default: false |
respect_robotsboolean | Skip URLs disallowed by the site's robots.txt and honour its Crawl-delay. Default: true |
max_ageinteger | Accept a cached answer up to this many seconds old, billed at 50%. |
Response data fields
Example
curl "https://api.gridlode.com/v1/url/crawl?url=https%3A%2F%2Fexample.com%2F&limit=2" \
-H "Authorization: Bearer $GRIDLODE_KEY"Try it without code on the Website Crawler (Markdown for RAG) API page.