> For the complete documentation index, see [llms.txt](https://docs.tools.webz.io/llms.txt). Any docs page is also available as markdown at `https://docs.tools.webz.io/markdown/<environment>/<slug>`.

# Endpoints & Authentication

One base URL, one search endpoint, one segmentation endpoint - all authenticated with the same token.

## Base URL

```bash
https://api.webz.io
```

## Search endpoint

Returns matching reviews as JSON.

`GET`

```bash
https://api.webz.io/reviewFilter
```

Both `GET` and `POST` are supported with the same parameters. `/api/reviews` is an alias of the same endpoint (`GET` only).

## Segmentation endpoint

Returns aggregate counts instead of reviews - see [Segmentation API](https://docs.tools.webz.io/docs/webz/reviews-api-segmentation).

`GET`

```bash
https://api.webz.io/reviewSeg
```

`/seg_api/reviews` is an alias of the same endpoint.

## Authentication

Authenticate with your API token as a query parameter:

```bash
https://api.webz.io/reviewFilter?token=YOUR_TOKEN&q=laptop
```

A missing or unknown token returns `401 Unauthorized` with `Unknown API token`.
