API

The API runs the same search the website does and hands back the results as data: JSON by default, or XML, CSV, TSV, NDJSON and plain text. Everything is a read - nothing here creates or changes anything.

Base URL https://api.publicwww.com

In one command

curl -H "Authorization: Bearer $KEY" \
     "https://api.publicwww.com/v1/search?query=%22angular.min.js%22&per_page=3"
{
  "query": "\"angular.min.js\"",
  "page": 1,
  "per_page": 3,
  "total": 278,
  "total_pages": 93,
  "returned": 3,
  "truncated": false,
  "took_ms": 2,
  "results": [
    { "domain": "imgbox.com", "url": "https://imgbox.com/", "rank": 4187, "ranked": true }
  ]
}

Endpoints

EndpointMethodsWhat it does
/v1/search GET, POST Run a search. Parameters, formats.
/v1/account GET Plan, quota and limits. Spends nothing.
/ GET The API describing itself, error codes included. Needs no key.

There is no separate export endpoint. Bulk is /v1/search with a large per_page, which on a paid plan goes up to a million rows; the answer streams as it is produced.

What it promises

Getting a key

Your key is on your profile. A paid plan is required; see pricing. Existing scripts that call the old ?export= urls keep working unchanged - see the old export urls.

Next Authentication