toolzerhub API Docs

Fetch a URL

Sends a GET or POST request to the required public HTTP(S) url from the JSON body. Optional fields configure headers, query parameters, cookies, body, timeout, proxy location, and retries. The target status is returned in data.status; response bodies are strings limited to 10 MiB.

1 credit / requestBilled only on success
POST
/v1/http/fetch

Authorization

ApiKeyAuth
x-api-key<token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

curl -X POST "https://example.com/v1/http/fetch" \  -H "x-api-key: YOUR_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "url": "https://example.com/products?page=1"  }'
{  "data": {    "status": 200,    "headers": {      "property1": "string",      "property2": "string"    },    "cookies": {      "property1": "string",      "property2": "string"    },    "body": "string",    "body_truncated": false,    "meta": {      "duration_ms": 842.17,      "retried": false,      "browser_profile": "firefox",      "blocked": false,      "session_state": "none",      "cookies_updated": false    }  }}