Website URL map API
Every URL of a site we can find from its sitemaps (via robots.txt) and the page’s links, filtered by a search term.
GET /v1/web/mapBeta1 credit per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/web/map?url=https%3A%2F%2Fwww.python.org%2F&search=downloads",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 1 credit{ "links": [ { "url": "https://www.python.org/downloads/", "title": "Downloads", "source": "page" }, { "url": "https://www.python.org/downloads/source/", "title": "Source code", "source": "page" }, "… 5 more" ], "sitemaps": []}Parameters
| Name | Type | Description |
|---|---|---|
urlquery · required | string | A public http(s) URL. Example: https://example.com/. |
searchquery | string | |
limitquery | integer | |
sitemapquery | "include" | "skip" | "only" | One of include, skip, only. |
include_subdomainsquery | "true" | "false" | One of true, false. |
ignore_query_parametersquery | "true" | "false" | One of true, false. |
freshquery | "true" | "false" | One of true, false. |
Status codes
| Status | Meaning |
|---|---|
200 | The URLs found. |
400 | Invalid input. Nothing was charged. |
401 | Missing or invalid API key. |
402 | Not enough credits, a spend cap was reached, or payment is required. |
403 | The target is private, or the account is suspended. |
404 | That host does not resolve or the page does not exist. |
429 | Too many requests. Wait for Retry-After seconds. |
503 | Web is temporarily unavailable. Retryable; nothing was charged. |
Every error has code, message, hint and retryable. All error codes
Questions
How many URLs?
Up to 5,000 (limit).
Web is a trademark of its owner. We are not affiliated with or endorsed by it.