PublicWWW Search API

Websites whose page source contains the query.

GitHub OpenAPI

Operations 2

GET /v1/search Find websites whose page source contains a code fragment #
POST /v1/search The same search with parameters in a JSON body #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/publicwww-com:publicwww-com-search-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

publicwww-com-search-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: PublicWWW Search API
  version: '1.3'
  summary: Search the source code (HTML, JavaScript, CSS) of web pages.
  description: 'The same search the website runs, returned as data, and the clusters of your account: save a set of sites, combine sets, extract values from their page source. Authenticate with `Authorization: Bearer `; tokens are issued at https://publicwww.com/profile/api. Searches and clusters need a paid plan; /v1/account works on any account. Applications can obtain the same token through OAuth 2.1 (authorization code with PKCE, client metadata documents instead of client registration): https://publicwww.com/docs/api/authentication/#oauth


    At most 10 requests per minute per account, shared with the MCP server; a request over the limit gets 429 with Retry-After at once. X-Requests-Limit and X-Requests-Remaining report it; /v1/account does not count. Searches count against the plan''s daily quota, which resets at UTC midnight. X-RateLimit-* report that quota, not the rate: the name is historic.


    AI assistants can use the same search through the MCP server at /mcp: https://publicwww.com/docs/mcp/ Every response is UTF-8 (charset=utf-8 in Content-Type).'
servers:
- url: https://api.publicwww.com
security:
- bearerAuth: []
tags:
- name: Search
  description: Websites whose page source contains the query.
paths:
  /v1/search:
    get:
      operationId: searchWebsites
      tags:
      - Search
      summary: Find websites whose page source contains a code fragment
      description: 'Results are websites, most popular first; like: orders them by similarity instead. 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.'
      parameters:
      - $ref: '#/components/parameters/query'
      - $ref: '#/components/parameters/page'
      - $ref: '#/components/parameters/per_page'
      - $ref: '#/components/parameters/snippets'
      - $ref: '#/components/parameters/format'
      - $ref: '#/components/parameters/columns'
      - $ref: '#/components/parameters/delimiter'
      - $ref: '#/components/parameters/header'
      responses:
        '200':
          $ref: '#/components/responses/SearchOk'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/TooManyRequests'
    post:
      operationId: searchWebsitesPost
      tags:
      - Search
      summary: The same search with parameters in a JSON body
      description: For queries too long or too multi-line for a url. Takes the same parameters as GET; an array in query means all of those phrases; for either one, use (a | b).
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SearchRequest'
            example:
              query: '"angular.min.js"'
              per_page: 10
      responses:
        '200':
          $ref: '#/components/responses/SearchOk'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/TooManyRequests'
components:
  responses:
    Forbidden:
      description: plan_required - the account has no paid plan.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    BadRequest:
      description: 'The request cannot be served as asked: missing_query, invalid_parameter, unknown_format, unknown_column, format_not_available, per_page_too_large, page_too_deep, invalid_json, missing_source, ambiguous_source, missing_domains, domains_not_found, invalid_operation, invalid_clusters, missing_name, missing_regex, invalid_regex, too_many_regex, unknown_preset, unknown_field.'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    TooManyRequests:
      description: too_many_requests - more than 10 requests a minute, wait Retry-After seconds; quota_exceeded - the day's searches are used up, searches with snippets included; snippet_quota_exceeded - the day's snippet searches are used up, searching without snippets still works.
      headers:
        X-Requests-Limit:
          $ref: '#/components/headers/X-Requests-Limit'
        X-Requests-Remaining:
          $ref: '#/components/headers/X-Requests-Remaining'
        Retry-After:
          $ref: '#/components/headers/Retry-After'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: 'missing_key - no Authorization: Bearer header; invalid_key - the token does not name an account.'
      headers:
        WWW-Authenticate:
          description: Bearer realm="publicwww"
          schema:
            type: string
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    SearchOk:
      description: Search results. The body follows format; the totals are also in the headers.
      headers:
        X-Requests-Limit:
          $ref: '#/components/headers/X-Requests-Limit'
        X-Requests-Remaining:
          $ref: '#/components/headers/X-Requests-Remaining'
        X-Total-Results:
          $ref: '#/components/headers/X-Total-Results'
        X-Returned-Results:
          $ref: '#/components/headers/X-Returned-Results'
        X-Truncated:
          $ref: '#/components/headers/X-Truncated'
        X-Index-Complete:
          $ref: '#/components/headers/X-Index-Complete'
        X-RateLimit-Limit:
          $ref: '#/components/headers/X-RateLimit-Limit'
        X-RateLimit-Remaining:
          $ref: '#/components/headers/X-RateLimit-Remaining'
        X-RateLimit-Reset:
          $ref: '#/components/headers/X-RateLimit-Reset'
        X-Snippets-Limit:
          $ref: '#/components/headers/X-Snippets-Limit'
        X-Snippets-Remaining:
          $ref: '#/components/headers/X-Snippets-Remaining'
        X-Query-Note:
          $ref: '#/components/headers/X-Query-Note'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/SearchResponse'
          example:
            query: '"angular.min.js"'
            page: 1
            per_page: 2
            total: 70907
            total_pages: 35454
            returned: 2
            truncated: false
            index_complete: true
            took_ms: 2
            results:
            - domain: imgbox.com
              url: https://imgbox.com/
              rank: 4187
              ranked: true
            - domain: example.org
              url: https://example.org/
              rank: null
              ranked: false
        application/x-ndjson:
          schema:
            type: string
            description: 'First line: the metadata object with "object": "meta" (fields as in SearchMeta). Then one SearchResult object per line.'
        application/xml:
          schema:
            type: string
            description: <response> with the metadata elements and <results><result>...</result></results>.
        text/csv:
          schema:
            type: string
            description: One row per line, columns as asked, no header unless header=1.
          example: 'imgbox.com;4187

            '
        text/tab-separated-values:
          schema:
            type: string
        text/plain:
          schema:
            type: string
            description: One url per line.
          example: 'https://imgbox.com/

            '
  headers:
    X-Index-Complete:
      description: false when part of the index did not answer and the results may be incomplete.
      schema:
        type: string
        enum:
        - 'true'
        - 'false'
    X-RateLimit-Limit:
      description: 'Searches per day on the plan. The daily quota, not the rate: the name is historic.'
      schema:
        type: integer
    X-Total-Results:
      description: Websites matching the query in the index (pages, with depth:), up to 1000000.
      schema:
        type: integer
    Retry-After:
      description: Seconds to wait before repeating.
      schema:
        type: integer
    X-Snippets-Remaining:
      description: Searches with snippets left today.
      schema:
        type: integer
    X-Returned-Results:
      description: Rows in this answer.
      schema:
        type: integer
    X-Query-Note:
      description: 'query_note of the body, when there is one: how the query was read or what to search for instead, such as the ready-made query of a technology searched by name. Characters outside ASCII are %-encoded.'
      schema:
        type: string
    X-Truncated:
      description: true when the plan cut this page short.
      schema:
        type: string
        enum:
        - 'true'
        - 'false'
    X-RateLimit-Remaining:
      description: Searches left today.
      schema:
        type: integer
    X-RateLimit-Reset:
      description: Unix time of the next quota reset (UTC midnight).
      schema:
        type: integer
    X-Requests-Remaining:
      description: Requests left in this minute.
      schema:
        type: integer
    X-Snippets-Limit:
      description: Searches with snippets per day on the plan.
      schema:
        type: integer
    X-Requests-Limit:
      description: 'Requests per minute per account, shared with the MCP server: 10. Sent on requests that count against the rate; /v1/account does not.'
      schema:
        type: integer
  schemas:
    SearchMeta:
      type: object
      required:
      - query
      - page
      - per_page
      - total
      - total_pages
      - returned
      - truncated
      - index_complete
      - took_ms
      properties:
        object:
          type: string
          enum:
          - meta
          description: Only in ndjson, where the first line is this object.
        query:
          type: string
          description: 'The query that was run. It differs from the one sent when operators of other search engines were rewritten (OR, AND, body=), a domain in another alphabet after site: was written in punycode, or words in other alphabets were moved into like:. A query sent as a JSON array comes back as its items joined with a line break (CRLF).'
        original_query:
          type: string
          description: 'Only when query differs from it: the query as sent.'
        page:
          type: integer
        per_page:
          type: integer
        total:
          type: integer
          description: Websites matching the query in the index (pages, with depth:), up to 1000000, the most a search counts.
        total_capped:
          type: boolean
          description: 'Present and true when total is that ceiling: the search found more.'
        total_exact:
          type: boolean
          description: 'Present and false when the search reached its time limit: total counts only what was found in time, and there are more. The rows are the most popular of the matches; later pages may run short. A narrower query - a longer phrase or site: - finishes in time.'
        total_estimate:
          type: integer
          description: 'With total_exact, when it can be estimated: about how many there are in all.'
        total_pages:
          type: integer
          description: 'total / per_page, rounded up. It can be more than the plan can reach: page * per_page may not exceed max_per_page.'
        returned:
          type: integer
          description: Rows in this answer.
        truncated:
          type: boolean
          description: true when the plan cut this page short.
        index_complete:
          type: boolean
          description: false when part of the index did not answer at all; the results may be incomplete. Repeat the request a little later if you need them whole. A search that reached its time limit answers, and says so with total_exact.
        took_ms:
          type: integer
        query_note:
          type: string
          description: Present when the query was rewritten, when it has operators of other search engines that are searched as typed, or when it could not be run as written, with the reason. Characters that only separate words get no note.
    SearchResult:
      type: object
      description: Fields as selected with columns; all of them by default.
      properties:
        domain:
          type: string
        url:
          type: string
          description: The page the match was found on.
        rank:
          type:
          - integer
          - 'null'
          description: 'Place by popularity, 1 is the most popular, an estimate with no guarantees; null for an unranked website. With like: the order is not by rank.'
        ranked:
          type: boolean
        title:
          type: string
          description: 'Only with snippets=1: the page''s <title>, up to 200 characters on one line; empty when the page has none.'
        snippets:
          type: array
          description: Only with snippets=1. Up to 5 fragments of page source around the match.
          items:
            $ref: '#/components/schemas/Snippet'
    SearchRequest:
      type: object
      required:
      - query
      properties:
        query:
          description: The search; an array means all of those phrases. For either one, use (a | b).
          oneOf:
          - type: string
            minLength: 1
          - type: array
            items:
              type: string
            minItems: 1
        page:
          type: integer
          minimum: 1
          default: 1
        per_page:
          type: integer
          minimum: 1
          default: 100
        snippets:
          type: boolean
          default: false
        format:
          type: string
          enum:
          - json
          - ndjson
          - xml
          - csv
          - tsv
          - txt
          default: json
        columns:
          type: string
          pattern: ^(domain|url|rank|ranked|title|snippets)(,(domain|url|rank|ranked|title|snippets))*$
        delimiter:
          type: string
        header:
          type: boolean
          default: false
    Snippet:
      type: object
      required:
      - text
      - match
      properties:
        text:
          type: string
          description: The fragment of page source.
        match:
          type: string
          description: The part of text that matched the query.
    SearchResponse:
      allOf:
      - $ref: '#/components/schemas/SearchMeta'
      - type: object
        required:
        - results
        properties:
          results:
            type: array
            items:
              $ref: '#/components/schemas/SearchResult'
    Error:
      type: object
      required:
      - error
      properties:
        error:
          type: object
          required:
          - code
          - message
          description: Branch on code; message is for people and may be reworded.
          properties:
            code:
              type: string
              enum:
              - missing_query
              - unknown_format
              - unknown_column
              - format_not_available
              - invalid_parameter
              - per_page_too_large
              - page_too_deep
              - invalid_json
              - missing_key
              - invalid_key
              - plan_required
              - unknown_endpoint
              - method_not_allowed
              - too_many_requests
              - quota_exceeded
              - snippet_quota_exceeded
              - cluster_not_found
              - cluster_limit
              - missing_source
              - ambiguous_source
              - missing_domains
              - domains_not_found
              - invalid_operation
              - invalid_clusters
              - missing_name
              - missing_regex
              - invalid_regex
              - too_many_regex
              - unknown_preset
              - unknown_field
              - extract_quota_exceeded
              - unavailable
            message:
              type: string
            parameter:
              type: string
              description: The parameter that was wrong.
            max:
              type: integer
            max_rows:
              type: integer
            max_page:
              type: integer
            limit:
              type: integer
            used:
              type: integer
            retry_after:
              type: integer
              description: Seconds to wait, also in the Retry-After header.
            plan:
              type: string
            endpoints:
              type: array
              items:
                type: string
            parameters:
              type: array
              items:
                type: string
              description: 'missing_source: the parameters to choose from.'
            resets_at:
              type: integer
              description: 'extract_quota_exceeded: unix time when the points return.'
            cluster:
              type: integer
              description: 'cluster_not_found: the id asked for.'
            clusters:
              type: integer
              description: 'cluster_limit: clusters on the account.'
            presets:
              type: array
              items:
                type: string
              description: 'unknown_preset, missing_regex: the preset names.'
            fields:
              type: array
              items:
                type: string
              description: 'unknown_field, missing_regex: the field names.'
            regex:
              type: string
              description: 'invalid_regex: the expression as sent.'
            submitted:
              type: integer
              description: 'domains_not_found: how many names were sent.'
            received:
              type: integer
              description: 'domains_not_found: non-empty lines sent.'
            dropped:
              type: object
              description: 'domains_not_found: what was left out, by reason.'
              properties:
                not_a_domain:
                  type: integer
                  description: Lines with no domain in them.
                duplicate:
                  type: integer
                  description: Names already in the list, www. name next to the same name without it included.
                not_in_index:
                  type: integer
                  description: Names the index does not have.
                over_limit:
                  type: integer
                  description: Names after the plan's cluster size was reached, not checked.
            index:
              type: integer
              description: 'invalid_regex: which expression, counting from 1.'
            reason:
              type: string
              enum:
              - delim
              - flags
              - long
              - compile
              description: 'invalid_regex: not in slashes or pipes, a flag other than imsu, longer than 200 characters, or does not compile.'
            detail:
              type: string
              description: 'invalid_regex with reason compile: the compiler''s message.'
            did_you_mean:
              type: string
              description: 'With unknown_endpoint: the nearest known path, such as /v1/account for /account.'
  parameters:
    page:
      name: page
      in: query
      required: false
      description: 'Page number, from 1; not a whole number from 1: 400 invalid_parameter.'
      schema:
        type: integer
        minimum: 1
        default: 1
    per_page:
      name: per_page
      in: query
      required: false
      description: 'Rows per page, up to the plan''s max_per_page (max_per_page_snippets with snippets) from /v1/account; more: 400 per_page_too_large; not a whole number from 1: 400 invalid_parameter.'
      schema:
        type: integer
        minimum: 1
        default: 100
    header:
      name: header
      in: query
      required: false
      description: 1 to put a header line on csv and tsv.
      schema:
        type: boolean
        default: false
    columns:
      name: columns
      in: query
      required: false
      description: 'Comma separated subset and order of domain, url, rank, ranked, title, snippets (title and snippets need snippets=1). Defaults: all fields for json, ndjson and xml; domain,rank for csv and tsv (with depth: a row is a page: ask for url to see which); url for txt.'
      schema:
        type: string
        pattern: ^(domain|url|rank|ranked|title|snippets)(,(domain|url|rank|ranked|title|snippets))*$
      example: url,rank
    format:
      name: format
      in: query
      required: false
      description: 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.
      schema:
        type: string
        enum:
        - json
        - ndjson
        - xml
        - csv
        - tsv
        - txt
        default: json
    query:
      name: query
      in: query
      required: true
      description: 'The search, in the same syntax as the website search box: "exact phrase", a b (both must appear), (a | b) either, -word excludes, site:de a domain zone, site:example.com one site, depth:all inner pages too, like:"topic" or like:example.com finds websites about a topic or like a given site: it orders by similarity and removes nothing, so limit it with a phrase or site: and read the first rows. Only a-z, 0-9 and _ are searched; other characters separate words. Several phrases: separate them with newlines; all must match. Results come most popular first. Syntax: https://publicwww.com/docs/query-syntax/'
      schema:
        type: string
        minLength: 1
      example: '"angular.min.js"'
    delimiter:
      name: delimiter
      in: query
      required: false
      description: Field separator for csv and tsv. Default ; for csv and tab for tsv.
      schema:
        type: string
    snippets:
      name: snippets
      in: query
      required: false
      description: '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. Values other than 1, true and yes count as false.'
      schema:
        type: boolean
        default: false
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: A token from https://publicwww.com/profile/api, or one obtained through OAuth 2.1. Tokens live until deleted or revoked. A token in the query string is not accepted.
externalDocs:
  description: API documentation
  url: https://publicwww.com/docs/api/