> 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, two helpers for cached pages and images, and a Discover feed for pay-as-you-go accounts.

## Base URL

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

## Search endpoint

Returns matching posts as JSON. Contract plans with the Dark Web API permission.

`GET`

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

## Segmentation endpoint

Returns aggregate counts instead of posts - see [Segmentation API](https://docs.tools.webz.io/docs/webz/dark-web-api-segmentation). Contract plans.

`GET`

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

## Helper endpoints

Serve cached page snapshots and collected images - see [Dark Cache & Images](https://docs.tools.webz.io/docs/webz/dark-web-api-cache-images). Contract plans.

| Endpoint | Purpose |
| --- | --- |
| `/dark-cache` | Cached snapshot of a crawled page |
| `/cyber-image` | An image collected with a post |

## Discover endpoint

Returns the newest posts that mention your verified domains, with no query - see [Discover (Pay as you go)](https://docs.tools.webz.io/docs/webz/dark-web-api-discover). Pay-as-you-go accounts only.

`GET`

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

## Authentication

Authenticate with your API token as a query parameter:

```bash
https://api.webz.io/cyberFilter?token=YOUR_TOKEN&q=bitcoin
```

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

> [!WARNING]
> Search, segmentation, and the helper endpoints need the Dark Web API permission on a contract plan. Without it they return `401` with a permission error - contact sales@webz.io. Pay-as-you-go accounts use [Discover](https://docs.tools.webz.io/docs/webz/dark-web-api-discover) and the [Dark Web Answers API](https://docs.tools.webz.io/docs/webz/dark-web-answers-api) instead.

