Docs · Reference
Page HTML
GET /v1/url/html1 credit / requestcache 60 minThe raw HTML of any public web page with final URL, status code, redirect chain and key headers. Respects robots.txt by default. Failed fetches (blocks, 5xx, timeouts) are not charged.
Query parameters
urlstring · required | Public http(s) URL to fetch. |
respect_robotsboolean | Refuse URLs disallowed by the site's robots.txt. Default: true |
renderboolean | Render JavaScript in real Chrome first (+1 credit). Images, media and fonts are skipped. Default: false |
wait_msinteger | With render=true: extra wait after load for late content. Default: 1000 |
max_ageinteger | Accept a cached answer up to this many seconds old, billed at 50%. |
Response data fields
final_url / redirects· Where the request ended up and every hop on the way.status_code / content_type· HTTP status and media type of the final response.headers· content-type, content-language, last-modified, cache-control, x-robots-tag, server, etag when present.html· The HTML exactly as the server sent it (up to 5 MB).robots· allowed, unavailable (no robots.txt reachable) or ignored.
Example
curl "https://api.gridlode.com/v1/url/html?url=https%3A%2F%2Fexample.com%2F" \
-H "Authorization: Bearer $GRIDLODE_KEY"Try it without code on the Page HTML API page.