Find websites whose page source contains a code fragment
Results are websites ranked by popularity. Bulk is this endpoint with a large per_page (up to the plan's row limit, see /v1/account); the answer streams as it is produced. A plan covers the first max_per_page rows of a query: page * per_page may not exceed it.
Request
- Base URL: https://api.publicwww.com
- URL: https://api.publicwww.com/v1/search
- Auth: HTTP bearer
Query parameters
The search, in the same syntax as the website search box: "exact phrase", several words for all of them, -word to exclude, site:de, depth:all. Several phrases: separate them with newlines. https://publicwww.com/docs/query-syntax/
Page number, from 1.
Rows per page, up to the plan's max_per_page (max_per_page_snippets with snippets) from /v1/account.
1 to include fragments of page source around the match (up to 5 per row). Costs one from the daily searches and one from the daily snippet limit: refused once either is used up.
json (default); ndjson - one object per line, metadata first; xml; csv - semicolon separated, no header, domain;rank by default; tsv - tab separated; txt - one url per line. Totals for csv, tsv and txt are in the X-Total-Results, X-Truncated and X-Index-Complete headers.
Comma separated subset and order of domain, url, rank, ranked, snippets (snippets needs snippets=1). Defaults: all fields for json, ndjson and xml; domain,rank for csv and tsv; url for txt.
Field separator for csv and tsv. Default ; for csv and tab for tsv.
1 to put a header line on csv and tsv.
Response
Search results. The body follows format; the totals are also in the headers.
Changes
No recorded changes to this operation across all 1 revision of this API.