Menu

Map

Map quickstart

List a site's URLs, then search inside it, then keep one section.

Copy as MarkdownOpen in ChatGPT (opens in a new tab)Open in Claude (opens in a new tab)

1. List a site

Example
Shell
curl https://api.millionshort.com/v1/map \
  -H "Authorization: Bearer $MILLIONSHORT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "url": "https://example.org/", "limit": 100 }'

The answer lists the URLs in data.urls. Each one says where it was found, and carries what that source knew about it:

JSON
{
  "data": {
    "url": "https://example.org/",
    "urls": [
      { "url": "https://example.org/", "title": "Example", "from": "links" },
      { "url": "https://example.org/docs/start", "title": "Getting started", "last_modified": "2026-11-01", "from": "links" },
      { "url": "https://example.org/pricing", "last_modified": "2026-10-14", "from": "sitemap" },
      { "url": "https://example.org/guides/tide-tables", "title": "Reading a tide table", "from": "index", "topic": "science", "page_type": "tutorials" }
    ],
    "summary": {
      "found": 4,
      "returned": 4,
      "truncated": false,
      "by_source": { "links": 2, "sitemap": 1, "index": 1 }
    }
  },
  "usage": { "credits": 1, "cost_usd": 0.001, "breakdown": { "map": 1 } },
  "warnings": [],
  "request_id": "req_..."
}

limit is the most URLs you get back, and the credits for that many are held while the call runs. Ask for what you need: the default is 500.

2. Search inside the site

Example
Shell
curl https://api.millionshort.com/v1/map \
  -H "Authorization: Bearer $MILLIONSHORT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "url": "https://example.org/", "search": "pricing", "limit": 20 }'

With search, only matching URLs come back. The pages our index finds for the words in the page text come first. Then come the URLs whose address or title has every word.

3. Keep one section

Example
Shell
curl https://api.millionshort.com/v1/map \
  -H "Authorization: Bearer $MILLIONSHORT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://example.org/docs",
    "include": ["^/docs/"],
    "exclude": ["^/docs/archive/"]
  }'

include and exclude are regular expressions on the path of a URL. ^/docs/ keeps the paths that start with /docs/. exclude wins over include.

4. Check truncated and the warnings

summary.truncated is true when the site has more than you were given: limit cut the list, or the sitemaps were too large to read to the end. When one source could not be read, the answer still comes, with a source_unavailable warning that names the source.

Next

This page as Markdown ยท llms.txt