/v1/html endpoint
Raw HTML of the page, fetched server-side. No parsing or extraction.
Language:
GET
/v1/html
5 creditsFetches the target URL and returns the raw HTML as-is - no Readability parsing, no boilerplate stripping. Useful when you want to run your own extraction downstream. The only GET endpoint; pass the target as a query parameter.
Query parameters
| field | type | req | description |
|---|---|---|---|
url | string | yes | Full URL to fetch, as a query parameter. Must include protocol (https://). |
Example
curl "https://contextforai.ashutoshswamy.in/v1/html?url=https://example.com" \ -H "Authorization: Bearer cfai_your_key_here"
Response
200 OK
{
"url": "https://example.com",
"finalUrl": "https://example.com",
"html": "<!doctype html><html>...</html>",
"length": 1256,
"extractedAt": "2026-07-01T10:00:00Z"
}