/v1/html endpoint

Raw HTML of the page, fetched server-side. No parsing or extraction.

Language:
GET

/v1/html

5 credits

Fetches 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

fieldtypereqdescription
urlstringyesFull 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"
}
← Full API reference: authentication, errors, rate limits, billing