ctlsurf Links API

The links API from ctlsurf — 2 operation(s) for links.

GitHub OpenAPI

Operations 2

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-links-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-links-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Ctlsurf Com Links API
  version: 0.1.0
  description: 'Operations tagged links 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: Links
paths:
  /api/links/backlinks/{page_id}:
    get:
      tags:
      - Links
      summary: Get Backlinks
      description: 'Get all pages/blocks that link to this page.


        Returns a list of source pages, blocks, and link text for each incoming link.'
      operationId: get_backlinks_api_links_backlinks__page_id__get
      security:
      - HTTPBearer: []
      parameters:
      - name: page_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Page Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BacklinksResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/links/outlinks/{page_id}:
    get:
      tags:
      - Links
      summary: Get Outlinks
      description: 'Get all pages this page links to.


        Returns a list of target pages and the link text used for each outgoing link.'
      operationId: get_outlinks_api_links_outlinks__page_id__get
      security:
      - HTTPBearer: []
      parameters:
      - name: page_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Page Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OutlinksResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    OutlinksResponse:
      properties:
        page_id:
          type: string
          title: Page Id
        page_title:
          type: string
          title: Page Title
        links:
          items:
            $ref: '#/components/schemas/OutlinkItem'
          type: array
          title: Links
        count:
          type: integer
          title: Count
      type: object
      required:
      - page_id
      - page_title
      - links
      - count
      title: OutlinksResponse
      description: Response for outlinks query.
    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
    BacklinkItem:
      properties:
        source_page_id:
          type: string
          title: Source Page Id
        source_page_title:
          type: string
          title: Source Page Title
        source_block_id:
          type: string
          title: Source Block Id
        link_text:
          anyOf:
          - type: string
          - type: 'null'
          title: Link Text
      type: object
      required:
      - source_page_id
      - source_page_title
      - source_block_id
      - link_text
      title: BacklinkItem
      description: A single backlink entry.
    BacklinksResponse:
      properties:
        page_id:
          type: string
          title: Page Id
        page_title:
          type: string
          title: Page Title
        links:
          items:
            $ref: '#/components/schemas/BacklinkItem'
          type: array
          title: Links
        count:
          type: integer
          title: Count
      type: object
      required:
      - page_id
      - page_title
      - links
      - count
      title: BacklinksResponse
      description: Response for backlinks query.
    OutlinkItem:
      properties:
        target_page_id:
          type: string
          title: Target Page Id
        target_page_title:
          type: string
          title: Target Page Title
        source_block_id:
          type: string
          title: Source Block Id
        link_text:
          anyOf:
          - type: string
          - type: 'null'
          title: Link Text
      type: object
      required:
      - target_page_id
      - target_page_title
      - source_block_id
      - link_text
      title: OutlinkItem
      description: A single outlink entry.
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer
x-refined-from:
- ctlsurf-com-openapi.json
- ctlsurf-com-openapi.yml