Farcaster Links API

The Links API from Farcaster — 3 operation(s) for links.

Operations 3

GET /v1/linkById Get a link (follow) by FID and target
GET /v1/linksByFid List links authored by a FID
GET /v1/linksByTargetFid List links targeting a FID

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/farcaster-links-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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

farcaster-links-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Farcaster Snapchain Hub HTTP Casts Links API
  description: HTTP query interface for Farcaster's Snapchain network. Read casts, reactions, follows, user data, verifications and on-chain events by FID; submit signed protobuf messages; and stream hub events. The public reference endpoint is hosted at https://snapchain.farcaster.xyz, but operators typically run their own Snapchain node and bind the HTTP server to a local port (default 3381).
  version: 1.0.0
  contact:
    name: Farcaster
    url: https://snapchain.farcaster.xyz/
  license:
    name: MIT
servers:
- url: https://snapchain.farcaster.xyz
  description: Public Snapchain reference endpoint
- url: http://127.0.0.1:3381
  description: Default local Snapchain HTTP server
tags:
- name: Links
paths:
  /v1/linkById:
    get:
      tags:
      - Links
      summary: Get a link (follow) by FID and target
      parameters:
      - $ref: '#/components/parameters/Fid'
      - in: query
        name: target_fid
        required: true
        schema:
          type: integer
      - in: query
        name: link_type
        schema:
          type: string
      responses:
        '200':
          description: Link message
  /v1/linksByFid:
    get:
      tags:
      - Links
      summary: List links authored by a FID
      parameters:
      - $ref: '#/components/parameters/Fid'
      - in: query
        name: link_type
        schema:
          type: string
      - $ref: '#/components/parameters/PageSize'
      - $ref: '#/components/parameters/PageToken'
      - $ref: '#/components/parameters/Reverse'
      responses:
        '200':
          description: Page of links
  /v1/linksByTargetFid:
    get:
      tags:
      - Links
      summary: List links targeting a FID
      parameters:
      - in: query
        name: target_fid
        required: true
        schema:
          type: integer
      - in: query
        name: link_type
        schema:
          type: string
      - $ref: '#/components/parameters/PageSize'
      - $ref: '#/components/parameters/PageToken'
      - $ref: '#/components/parameters/Reverse'
      responses:
        '200':
          description: Page of links
components:
  parameters:
    Reverse:
      in: query
      name: reverse
      schema:
        type: boolean
    PageToken:
      in: query
      name: pageToken
      schema:
        type: string
    Fid:
      in: query
      name: fid
      required: true
      schema:
        type: integer
      description: Farcaster ID
    PageSize:
      in: query
      name: pageSize
      schema:
        type: integer