ctlsurf Search API

The search API from ctlsurf — 1 operation(s) for search.

GitHub OpenAPI

Operations 1

GET /api/search Unified Search #

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/ctlsurf-com:ctlsurf-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. See our Privacy Policy and Terms.

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

OpenAPI Specification

ctlsurf-com-search-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Ctlsurf Com Search API
  version: 0.1.0
  description: 'Operations tagged search across 2 of this provider''s published API definitions: ctlsurf-com-openapi.json, ctlsurf-com-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://app.ctlsurf.com
  description: ctlsurf application host (documented MCP endpoint https://app.ctlsurf.com/api/mcp; spec served at /openapi.json)
tags:
- name: Search
paths:
  /api/search:
    get:
      tags:
      - Search
      summary: Unified Search
      description: 'Unified search across pages (by title/root_path) and blocks (by title/content).


        Returns both page matches and block matches, ranked by relevance.

        Uses PostgreSQL full-text search with trigram fuzzy matching fallback.'
      operationId: unified_search_api_search_get
      security:
      - HTTPBearer: []
      parameters:
      - name: q
        in: query
        required: true
        schema:
          type: string
          minLength: 1
          description: Search query
          title: Q
        description: Search query
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          maximum: 100
          minimum: 1
          description: Max results per category
          default: 20
          title: Limit
        description: Max results per category
      - name: offset
        in: query
        required: false
        schema:
          type: integer
          minimum: 0
          description: Pagination offset
          default: 0
          title: Offset
        description: Pagination offset
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnifiedSearchResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    UnifiedPageResult:
      properties:
        result_type:
          type: string
          const: page
          title: Result Type
          default: page
        page_id:
          type: string
          format: uuid
          title: Page Id
        page_title:
          type: string
          title: Page Title
        root_path:
          anyOf:
          - type: string
          - type: 'null'
          title: Root Path
        folder_id:
          anyOf:
          - type: string
            format: uuid
          - type: 'null'
          title: Folder Id
        rank:
          type: number
          title: Rank
        match_type:
          type: string
          title: Match Type
      type: object
      required:
      - page_id
      - page_title
      - rank
      - match_type
      title: UnifiedPageResult
      description: Page match in unified search.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    UnifiedBlockResult:
      properties:
        result_type:
          type: string
          const: block
          title: Result Type
          default: block
        block_id:
          type: string
          format: uuid
          title: Block Id
        page_id:
          type: string
          format: uuid
          title: Page Id
        page_title:
          anyOf:
          - type: string
          - type: 'null'
          title: Page Title
        block_title:
          anyOf:
          - type: string
          - type: 'null'
          title: Block Title
        block_type:
          $ref: '#/components/schemas/BlockType'
        snippet:
          type: string
          title: Snippet
        match_start:
          type: integer
          title: Match Start
        match_end:
          type: integer
          title: Match End
        size_bytes:
          type: integer
          title: Size Bytes
        content_type:
          type: string
          title: Content Type
        rank:
          type: number
          title: Rank
      type: object
      required:
      - block_id
      - page_id
      - page_title
      - block_title
      - block_type
      - snippet
      - match_start
      - match_end
      - size_bytes
      - content_type
      - rank
      title: UnifiedBlockResult
      description: Block match in unified search.
    BlockType:
      type: string
      enum:
      - text
      - checklist
      - table
      - react_flow
      - agent_control
      - tree
      - ctlsurf_task
      - page_summary
      - file
      - mindmap
      - datastore
      - state
      - log
      - presentation
      title: BlockType
    UnifiedSearchResponse:
      properties:
        query:
          type: string
          title: Query
        pages:
          items:
            $ref: '#/components/schemas/UnifiedPageResult'
          type: array
          title: Pages
        blocks:
          items:
            $ref: '#/components/schemas/UnifiedBlockResult'
          type: array
          title: Blocks
        total_pages:
          type: integer
          title: Total Pages
        total_blocks:
          type: integer
          title: Total Blocks
        limit:
          type: integer
          title: Limit
        offset:
          type: integer
          title: Offset
      type: object
      required:
      - query
      - pages
      - blocks
      - total_pages
      - total_blocks
      - limit
      - offset
      title: UnifiedSearchResponse
      description: Combined search results from pages and blocks.
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer
x-refined-from:
- ctlsurf-com-openapi.json
- ctlsurf-com-openapi.yml