Map a site
The URLs a site lists in its sitemaps and on its start page, each marked with whether robots.txt lets our crawler fetch it, so you can choose what to crawl.
POST
/v1/mapOn this page
Price
Pricepage
- Live
- $0.00011
- Standard fetch
- $0.00011
- Rendered fetch
- $0.0011
- Protected fetch
- $0.003
Per billed fetch (robots.txt, each sitemap file, the start page).
Description
Reads robots.txt, up to 10 sitemap files and the links on the page at url. It never follows links further. Each fetch that returned real content (a served robots.txt, a sitemap that parsed, a substantive start page) is billed at its level's page price; failed and blocked fetches cost $0. When robots.txt can't be read at all, nothing else is fetched and you get 502 at $0.
Billing. Each billed fetch at the price of the fetch level that delivered it (Standard $0.00011, Rendered $0.0011, Protected $0.003). Blocked, failed and non-substantive pages cost $0.
Request
- Endpoint
- POST https://api.dataforgaio.com/v1/map
- Authentication
- HTTP Basic auth: any login, with your
dg_API key as the password. ABearerheader with the key also works. Create a key. - Body
- JSON object
Fields
- The site's start page: an absolute http(s) URL on a public host.Max
2000Examplehttps://summitrunning.example/trail-shoes - Most URLs to return.Default
1000Min1Max5000Example500 - Include URLs on subdomains of the start page's host.Default
falseExamplefalse - Only URLs containing this text (case-insensitive).Max
200Exampleshoes - Read the site's sitemaps.
falsereads only the start page's links.DefaulttrueExampletrue - Lets a blocked fetch move to a higher fetch level, billed at the level that delivered it.
falsestops at the requested level and returns the failure at $0.DefaulttrueExampletrue - The highest fetch level Auto-upgrade may use.Default
protectedOne ofstandardrenderedprotectedExamplerendered - The most one fetch may cost, in USD, up to 6 decimal places. The wallet check reserves this instead of the worst-case price, and a fetch never upgrades past it.Min
0Example0.002
Response
Shape: Native. Expand a field to see its children; every field has a link anchor.
- statusstringAlways
ok.Exampleok - urlstringThe start page, normalized.Example
https://summitrunning.example/ - urls_countintegerEntries in
urls.Example4 - limit_reachedbooleanTrue when the list stopped at
limit.Examplefalse - urlsarray<object>The URLs found.
Show 4 child fieldsHide child fields
- urlstringThe URL.Example
https://summitrunning.example/ - sourcestringWhere it was found.One of
sitemaplinkExamplesitemap - lastmodstringLast-modified date from the sitemap, when it gave a valid one.Example
2026-11-28 - crawler_allowedboolean|nullWhether robots.txt allows our crawler to fetch it. Null for URLs on another host.Example
true
- sitemapsarray<string>Sitemap files that were read.Example
["https://summitrunning.example/sitemap.xml"] - robots_txtobjectWhat the site's robots.txt says.
Show 10 child fieldsHide child fields
- foundbooleanTrue when robots.txt was served.Example
true - statusinteger|nullHTTP status of robots.txt.Example
200 - robots_urlstringThe robots.txt URL.Example
https://summitrunning.example/robots.txt - crawler_agentstringThe user agent we crawl as.Example
DataForGAIO - crawler_allowedbooleanWhether our crawler may fetch the start page.Example
true - ai_agentsarray<object>Whether each well-known AI crawler may fetch the start page.
- sitemapsarray<string>Sitemaps listed in robots.txt.Example
["https://summitrunning.example/sitemap.xml"] - disallowed_urlsintegerURLs in
urlsour crawler isn't allowed to fetch.Example1
- pages_fetchedintegerFetches made.Example
3 - pages_billedintegerFetches that returned real content and were billed.Example
3 - unit_cost_usdnumberStandard page price, USD.Example
0.00011 - billed_usdnumberTotal charged, USD.Example
0.00033 - fetch_levelstring|nullThe level that delivered the page. Null until a page was delivered.One of
standardrenderedprotectedExamplestandard - upgradedbooleanTrue when Auto-upgrade moved past the requested level.Example
false - upgrade_reasonstringWhy any fetch upgraded. Empty when none did.
- stopped_earlybooleanTrue when the time limit stopped new fetches.Example
false
Errors
| Code | When |
|---|---|
| invalid_request | HTTP 400. The body failed validation. error.details maps each field to its problem. |
| unauthorized | HTTP 401. Missing, malformed or revoked API key. |
| balance_required | HTTP 402. Your wallet balance is below the most this request could cost. Nothing ran. |
| invalid_target | HTTP 422. A URL is not an absolute public http(s) URL. Nothing was fetched. |
| max_cost_exceeded | HTTP 422. max_cost is below the price of the cheapest allowed fetch. Nothing was fetched. |
| rate_limited | HTTP 429. Too many requests, or too many inline requests in flight for your organization. Honor Retry-After. |
| upstream_error | HTTP 502. robots.txt couldn't be read, so nothing else was fetched. $0. |
Tasks that end in an error are not billed. All status codes