Tunnel Knowledge Base API

Find and read business records. No credentials.

GitHub OpenAPI

Operations 5

GET /api/kb What this knowledge base holds, and where everything is #
GET /api/kb/llms.txt The prose guide a model reads first #
GET /api/kb/search Find a business by name, topic or place #
GET /api/kb/entities/{slug} A full business profile #
GET /api/kb/websites/{slug} What a crawl established about a listed website #

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/tunnelpowered-com:tunnelpowered-com-knowledge-base-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

tunnelpowered-com-knowledge-base-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: tunnel public Knowledge Base API
  version: 1.0.0
  summary: Search verified businesses, check what their verification actually proves, and message them.
  description: 'The public, agent-facing surface of the tunnel knowledge base.


    Reading needs no credentials, and neither does ASKING. Only messaging a business does, and

    registration is self-service.


    If you want to know something about a business, try `ask` before `landline`. A question the

    registry can settle costs you nothing, costs the business nothing, and is answered immediately;

    opening a conversation puts it in front of a person who may be serving a customer.


    Two things worth knowing before you build against this:


    1. An absent field means we do not hold that information. It does not mean the business lacks it.

    Do not write a confident sentence about a business from a gap in this data.

    2. `verification.level` is the verification answer. `humanReview` is about whether a person edited

    the knowledge-base entry, which is a different question and is not a statement about the business.


    Endpoints not described here are internal and may change without notice.'
  contact:
    name: Tunnel
    url: https://tunnelpowered.com/docs
    email: contact@tunnelpowered.com
servers:
- url: https://api.tunnelpowered.com
  description: Production
security:
- agentBearer: []
tags:
- name: Knowledge Base
  description: Find and read business records. No credentials.
paths:
  /api/kb:
    get:
      tags:
      - Knowledge Base
      summary: What this knowledge base holds, and where everything is
      description: Start here. Returns record counts and a map of every other endpoint.
      security: []
      responses:
        '200':
          description: The index.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/KbIndex'
        '429':
          description: Rate limited. `Retry-After` gives the number of seconds to wait. Reads are metered per IP, per declared client name and per registered agent; a declared name never raises the IP ceiling.
          headers:
            Retry-After:
              description: Seconds to wait before retrying.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: getApiKb
      x-operation-id-source: derived
  /api/kb/llms.txt:
    get:
      tags:
      - Knowledge Base
      summary: The prose guide a model reads first
      security: []
      responses:
        '200':
          description: Markdown guide.
          content:
            text/plain:
              schema:
                type: string
        '429':
          description: Rate limited. `Retry-After` gives the number of seconds to wait. Reads are metered per IP, per declared client name and per registered agent; a declared name never raises the IP ceiling.
          headers:
            Retry-After:
              description: Seconds to wait before retrying.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: getApiKbLlmsTxt
      x-operation-id-source: derived
  /api/kb/search:
    get:
      tags:
      - Knowledge Base
      summary: Find a business by name, topic or place
      description: 'Words are matched independently against name, location, description, offerings and FAQ, and most of them have to appear somewhere in a record. Accents are folded, so the unaccented spelling works. THIS MATCHES WORDS, NOT MEANINGS: a business calling itself a "cofetărie" is not returned for "bakery". An empty result is a normal answer, not an error — and it means "not in this index", which is not the same as "not in business". Omit `q` to list what the index holds.'
      security: []
      parameters:
      - name: q
        in: query
        schema:
          type: string
        description: Name, topic or place.
      - name: type
        in: query
        schema:
          type: string
          enum:
          - company
          - merchant
          - organization
          - person
          - other
          - website
      - name: limit
        in: query
        schema:
          type: integer
          minimum: 1
          maximum: 50
          default: 20
      responses:
        '200':
          description: Ranked results.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SearchResults'
        '429':
          description: Rate limited. `Retry-After` gives the number of seconds to wait. Reads are metered per IP, per declared client name and per registered agent; a declared name never raises the IP ceiling.
          headers:
            Retry-After:
              description: Seconds to wait before retrying.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: getApiKbSearch
      x-operation-id-source: derived
  /api/kb/entities/{slug}:
    get:
      tags:
      - Knowledge Base
      summary: A full business profile
      security: []
      parameters:
      - name: slug
        in: path
        required: true
        description: The record’s stable slug, as returned by search.
        schema:
          type: string
          pattern: ^[a-z0-9-]+$
      - name: format
        in: query
        schema:
          type: string
          enum:
          - md
          - jsonld
        description: Omit for JSON. `md` returns markdown, `jsonld` returns schema.org JSON-LD.
      responses:
        '200':
          description: The profile, in the requested representation.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EntityDetail'
            text/markdown:
              schema:
                type: string
            application/ld+json:
              schema:
                type: object
        '404':
          description: No such record in the knowledge base.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited. `Retry-After` gives the number of seconds to wait. Reads are metered per IP, per declared client name and per registered agent; a declared name never raises the IP ceiling.
          headers:
            Retry-After:
              description: Seconds to wait before retrying.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: getApiKbEntitiesBySlug
      x-operation-id-source: derived
  /api/kb/websites/{slug}:
    get:
      tags:
      - Knowledge Base
      summary: What a crawl established about a listed website
      description: Accepts the numeric id as well as the slug.
      security: []
      parameters:
      - name: slug
        in: path
        required: true
        description: The record’s stable slug, as returned by search.
        schema:
          type: string
          pattern: ^[a-z0-9-]+$
      responses:
        '200':
          description: The website record.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebsiteRecord'
        '404':
          description: No such record in the knowledge base.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited. `Retry-After` gives the number of seconds to wait. Reads are metered per IP, per declared client name and per registered agent; a declared name never raises the IP ceiling.
          headers:
            Retry-After:
              description: Seconds to wait before retrying.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: getApiKbWebsitesBySlug
      x-operation-id-source: derived
components:
  schemas:
    KbIndex:
      type: object
      required:
      - name
      - description
      - counts
      - endpoints
      properties:
        name:
          type: string
        description:
          type: string
        counts:
          type: object
          properties:
            entities:
              type: integer
            websites:
              type: integer
        endpoints:
          type: object
          additionalProperties:
            type: string
    SearchResults:
      type: object
      required:
      - query
      - count
      - results
      properties:
        query:
          type: string
        count:
          type: integer
        results:
          type: array
          items:
            $ref: '#/components/schemas/RecordSummary'
    WebsiteRecord:
      allOf:
      - $ref: '#/components/schemas/RecordSummary'
      - type: object
        properties:
          websiteUrl:
            type: string
            format: uri
          businessIdentity:
            type: object
            additionalProperties: true
          summary:
            type:
            - string
            - 'null'
          faq:
            type: array
            items:
              type: object
          structuredPricing:
            type: object
          generatedAt:
            type: string
            format: date-time
            description: When the crawl behind this record ran — not when you fetched it.
          machineReadable:
            type: object
            additionalProperties:
              type: string
              format: uri
          note:
            type: string
            description: Present instead of the knowledge fields when no crawl has completed yet.
    EntityDetail:
      allOf:
      - $ref: '#/components/schemas/RecordSummary'
      - type: object
        properties:
          identity:
            type: object
            description: Address, city, region, country, phone, email — whichever the merchant supplied. An absent field means we do not hold it, NOT that the business lacks it.
            additionalProperties: true
          socialProfiles:
            type: object
            additionalProperties: true
          offerings:
            type: array
            items:
              type: object
              properties:
                name:
                  type: string
                description:
                  type: string
          faq:
            type: array
            items:
              type: object
              properties:
                question:
                  type: string
                answer:
                  type: string
          website:
            type:
            - object
            - 'null'
            description: Set only when a verified, non-archived website is linked to this entity.
            properties:
              url:
                type: string
                format: uri
              kbUrl:
                type: string
                format: uri
              machineReadable:
                type: object
                additionalProperties:
                  type: string
                  format: uri
          updatedAt:
            type: string
            format: date-time
    RecordSummary:
      type: object
      required:
      - kind
      - slug
      - name
      - entityType
      - humanReview
      - url
      properties:
        kind:
          type: string
          enum:
          - entity
          - website
        slug:
          type: string
        name:
          type: string
        entityType:
          type: string
          enum:
          - company
          - merchant
          - organization
          - person
          - other
          - website
        description:
          type:
          - string
          - 'null'
        humanReview:
          $ref: '#/components/schemas/HumanReview'
        verification:
          $ref: '#/components/schemas/Verification'
        url:
          type: string
          format: uri
    Verification:
      type: object
      description: Present on entity records. Absent on website records, which are not verified subjects.
      required:
      - level
      - status
      - checkUrl
      properties:
        level:
          type:
          - string
          - 'null'
          enum:
          - human
          - automated
          - null
          description: '`human` — a tunnel employee checked legal identity, channel control and that the service is real, and a second employee approved it. `automated` — machines confirmed the merchant controls the channels this record cites, and nothing more. `null` — not verified. Read this field; do not infer verification from the presence of a badge.'
        status:
          type: string
          enum:
          - verified_by_human
          - verified_automated
          - unverified
        limitations:
          type: array
          items:
            type: string
          description: Present when `level` is `automated`. States what the check did NOT establish. The same array is inside the signed attestation, so it cannot be stripped in transit without breaking the signature.
        checkUrl:
          type: string
          format: uri
          description: Fetch this before a high-stakes action. Revocations propagate faster than caches expire.
    Error:
      type: object
      description: A refusal an agent can act on. Branch on nothing here — the REST surface returns a human-readable message only. The MCP surface (`POST /api/mcp`) is the one that returns stable machine codes and a `fix`; prefer it if you need to handle failures programmatically.
      properties:
        error:
          type: string
    HumanReview:
      type: object
      description: Whether a person at tunnel edited this KB entry by hand. This is a statement about the RECORD, not about the business — it is not the verification status. Read `verification.level` for that.
      required:
      - reviewed
      properties:
        reviewed:
          type: boolean
        reviewedAt:
          type:
          - string
          - 'null'
          format: date-time
        reviewedBy:
          type: string
  securitySchemes:
    agentBearer:
      type: oauth2
      description: Register once, then exchange credentials for a token. Needed only for writes.
      flows:
        clientCredentials:
          tokenUrl: https://api.tunnelpowered.com/api/v1/agents/token
          scopes: {}
externalDocs:
  url: https://tunnelpowered.com/docs
  description: The same surface, written for a person.