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/map
Open as Markdown
On 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. A Bearer header with the key also works. Create a key.
Body
JSON object

Fields

  • urlstringrequired
    The site's start page: an absolute http(s) URL on a public host.
    Max2000Examplehttps://summitrunning.example/trail-shoes
  • limitintegeroptional
    Most URLs to return.
    Default1000Min1Max5000Example500
  • include_subdomainsbooleanoptional
    Include URLs on subdomains of the start page's host.
    DefaultfalseExamplefalse
  • use_sitemapbooleanoptional
    Read the site's sitemaps. false reads only the start page's links.
    DefaulttrueExampletrue
  • auto_upgradebooleanoptional
    Lets a blocked fetch move to a higher fetch level, billed at the level that delivered it. false stops at the requested level and returns the failure at $0.
    DefaulttrueExampletrue
  • max_levelstringoptional
    The highest fetch level Auto-upgrade may use.
    DefaultprotectedOne ofstandardrenderedprotectedExamplerendered
  • max_costnumber|nulloptional
    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.
    Min0Example0.002

Response

Shape: Native. Expand a field to see its children; every field has a link anchor.

  • statusstring
    Always ok.
    Exampleok
  • urlstring
    The start page, normalized.
    Examplehttps://summitrunning.example/
  • urls_countinteger
    Entries in urls.
    Example4
  • True when the list stopped at limit.
    Examplefalse
  • urlsarray<object>
    The URLs found.
    Show 4 child fields
    • urlstring
      The URL.
      Examplehttps://summitrunning.example/
    • sourcestring
      Where it was found.
      One ofsitemaplinkExamplesitemap
    • lastmodstring
      Last-modified date from the sitemap, when it gave a valid one.
      Example2026-11-28
    • crawler_allowedboolean|null
      Whether robots.txt allows our crawler to fetch it. Null for URLs on another host.
      Exampletrue
  • sitemapsarray<string>
    Sitemap files that were read.
    Example["https://summitrunning.example/sitemap.xml"]
  • What the site's robots.txt says.
    Show 10 child fields
    • foundboolean
      True when robots.txt was served.
      Exampletrue
    • statusinteger|null
      HTTP status of robots.txt.
      Example200
    • The robots.txt URL.
      Examplehttps://summitrunning.example/robots.txt
    • The user agent we crawl as.
      ExampleDataForGAIO
    • Whether our crawler may fetch the start page.
      Exampletrue
    • ai_agentsarray<object>
      Whether each well-known AI crawler may fetch the start page.
      Show 2 child fields
      • agentstring
        User agent token.
        ExampleGPTBot
      • allowedboolean
        True when allowed.
        Exampletrue
    • sitemapsarray<string>
      Sitemaps listed in robots.txt.
      Example["https://summitrunning.example/sitemap.xml"]
    • URLs in urls our crawler isn't allowed to fetch.
      Example1
  • Fetches made.
    Example3
  • Fetches that returned real content and were billed.
    Example3
  • Standard page price, USD.
    Example0.00011
  • Total charged, USD.
    Example0.00033
  • fetch_levelstring|null
    The level that delivered the page. Null until a page was delivered.
    One ofstandardrenderedprotectedExamplestandard
  • upgradedboolean
    True when Auto-upgrade moved past the requested level.
    Examplefalse
  • Why any fetch upgraded. Empty when none did.
  • True when the time limit stopped new fetches.
    Examplefalse

Errors

CodeWhen
invalid_requestHTTP 400. The body failed validation. error.details maps each field to its problem.
unauthorizedHTTP 401. Missing, malformed or revoked API key.
balance_requiredHTTP 402. Your wallet balance is below the most this request could cost. Nothing ran.
invalid_targetHTTP 422. A URL is not an absolute public http(s) URL. Nothing was fetched.
max_cost_exceededHTTP 422. max_cost is below the price of the cheapest allowed fetch. Nothing was fetched.
rate_limitedHTTP 429. Too many requests, or too many inline requests in flight for your organization. Honor Retry-After.
upstream_errorHTTP 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