# PublicWWW API reference

> PublicWWW searches the source code of web pages. The API returns the sites whose HTML, JavaScript or CSS match a query, with rank and optional matching snippets. Investigators use it to find sites sharing a tracking ID, script or other code fragment. Calls go to https://api.publicwww.com/v1 with…

Source: https://osinttools.io/apis/publicwww/ (Markdown view of an OSINTtools.io page; append `.md` to any page URL for this format).

Compiled by OSINTtools.io editors from the vendor's docs, updated Nov 29, 2026. Listing: https://osinttools.io/tools/publicwww/

- Base URL: https://api.publicwww.com/v1
- Authentication: Bearer token in the `Authorization` header. Get a key: https://publicwww.com/profile/api Create tokens on your profile page.
- Free tier: no, paid plans only
- Pricing: Subscription
- Rate limits: 10 requests per minute per account (shared with the MCP server), plus a daily search quota set by plan
- Vendor docs: https://publicwww.com/docs/api
- OpenAPI spec: https://api.publicwww.com/openapi.json

## Overview

PublicWWW searches the source code of web pages. The API returns the sites whose HTML, JavaScript or CSS match a query, with rank and optional matching snippets. Investigators use it to find sites sharing a tracking ID, script or other code fragment.

Calls go to `https://api.publicwww.com/v1` with the key as an `Authorization: Bearer` token; a `?key=` parameter is rejected with 401. Tokens are created at your profile page.

Searches and clusters need a paid plan; a free account's token can only read `/v1/account` (plan, quota and limits). The API also has `/v1/clusters` and an MCP endpoint, not covered here. An OpenAPI 3.1 description is at `/openapi.json`.

## Errors

| Status | Meaning |
| --- | --- |
| 400 | Malformed request, e.g. page_too_deep |
| 401 | Missing or invalid API key |
| 403 | No paid plan (plan_required) |
| 429 | Too many requests per minute, or daily quota exceeded |
| 503 | Service temporarily unavailable |

## Search

### Find sites whose source code matches a query.

`GET /search`

- Footprint: passive (the target is not contacted)
- Cost: 1 search (plus 1 snippet search with snippets=1)
- Plan: Paid plan

Uses the same query syntax as the website. POST with a JSON body takes the same parameters. A search costs one from the daily quota, plus one snippet search when snippets=1.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `query` | query | string | yes | Search string in the site's syntax; use (a | b) for OR Example: "example-tracker-id" |
| `page` | query | integer | no | 1-based page number Example: 1 |
| `per_page` | query | integer | no | Rows per page; page x per_page cannot exceed the plan's row limit Example: 100 |
| `snippets` | query | integer | no | Set to 1 to include matching text (uses snippet quota) Example: 1 |
| `format` | query | string | no | Output format (one of six) Example: json |
| `columns` | query | string | no | Comma-separated subset of domain, url, rank, ranked, title, snippets Example: domain,url |

Response fields:

- `query` (string): The query actually run
- `total` (integer): Matching sites, counted up to 1,000,000
- `total_capped` (boolean): True when total hit the ceiling
- `returned` (integer): Rows in this response
- `truncated` (boolean): True if the plan's disclosed-position limit removed rows
- `took_ms` (integer): Search duration in milliseconds
- `results[].domain` (string): Domain of the site
- `results[].url` (string): Page where the match was found
- `results[].rank` (integer): Popularity rank estimate, null if unranked
- `results[].snippets[].text` (string): Matched text with context (snippets=1)

```bash
curl 'https://api.publicwww.com/v1/search?query=%22example-tracker-id%22' \
  -H 'Authorization: Bearer YOUR_API_KEY'
```

Example response (200):

```json
{
  "query": "\"example-tracker-id\"",
  "total": 2,
  "returned": 2,
  "truncated": false,
  "took_ms": 120,
  "results": [
    {
      "domain": "example.com",
      "url": "https://example.com/",
      "rank": 1500
    },
    {
      "domain": "example.org",
      "url": "https://example.org/",
      "rank": null
    }
  ]
}
```

---

Listings on OSINTtools.io are reviewed by editors and re-verified on a schedule; check pricing and availability on the vendor's site before relying on them, and use OSINT tools only with a lawful basis.
Site index for agents: https://osinttools.io/llms.txt · Full catalog: https://osinttools.io/llms-full.txt · MCP server (Streamable HTTP, no auth): https://osinttools.io/mcp/
