# 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.

- Platform: HTTP
- Request: `POST https://api.toolzerhub.com/v1/http/fetch`
- Auth: `x-api-key` header
- Cost: 1 credit per successful request. Failed requests are not billed.
- Page: https://docs.toolzerhub.com/reference/http/http-fetch

## Example request

```bash
curl -X POST "https://api.toolzerhub.com/v1/http/fetch" \
  -H "x-api-key: $TOOLZERHUB_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

Success responses are wrapped as `{ "data": ... }`. Errors return `{ "error": { "code", "status", "message", "retryable", "details" } }`. See https://docs.toolzerhub.com/docs/responses-and-errors.
