> ## Documentation Index
> Fetch the complete documentation index at: https://docs.brightdata.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Trigger a proxy request

> Send a proxy request to Bright Data's Web Scraper API endpoint. Includes the request format, required headers, and authentication.

`Endpoint: POST https://api.brightdata.com/wsapi`

## Example request

```js Request theme={null}
API_KEY="your api key here"
curl -v \
    --max-time 900 \
    -H "Content-Type: application/json" \
    -H "Authorization: Bearer $API_KEY" \
    -d '{"zone": "unblocker","url": "https://example.com", "format": "json"}' \
    https://api.brightdata.com/wsapi
```

```json Response theme={null}
{
  "status_code": 200,
  "headers": {
    "date": "Wed, 18 Sep 2024 04:46:04 GMT",
    "expires": "-1",
    "cache-control": "private, max-age=0",
    "content-type": "text/html; charset=UTF-8",
    "strict-transport-security": "max-age=31536000",
    "content-security-policy": "object-src 'none';base-uri 'self';script-src 'nonce-h08eIpRAbozlS3uJWJNgkA' 'strict-dynamic' 'report-sample' 'unsafe-eval' 'unsafe-inline' https: http:;report-uri https://csp.withgoogle.com/csp/gws/sf",
    "accept-ch": "Sec-CH-Prefers-Color-Scheme",
    "server": "gws",
    "x-xss-protection": "0",
    "x-frame-options": "SAMEORIGIN",
    "alt-svc": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000",
    "connection": "keep-alive",
    "keep-alive": "timeout=5",
    "transfer-encoding": "chunked"
  },
  "body": "<!doctype html><html><body>...</body></html>"
}
```

## Request parameters

<ParamField query="url" type="string" required>
  The URL you want to load
</ParamField>

<ParamField query="zone" type="string" required>
  The proxy zone you want to use for the request
</ParamField>

<ParamField query="format" type="string" required>
  The response format you want to output (`raw` or `json`)
</ParamField>
