Farcaster Casts API

The Casts API from Farcaster — 4 operation(s) for casts.

GitHub OpenAPI
Business capability
Social Networks & Community AE-170.50

Operations 4

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /v1/castById Get a cast by hash · Get a cast by FID and hash #
Ask an LLM
“How do I fetch a single cast from a hash?”
“Can I look up a cast by its hash and author FID?”
Tell an agent
Get cast {hash} from FID {fid}.
Fetch the cast {hash} authored by {fid}.
GET /v1/castsByFid List a user's casts · List casts authored by a FID #
Ask an LLM
“What casts has a Farcaster user posted?”
“Can I list only a user's casts posted after a certain time?”
Tell an agent
List casts by FID {fid}.
Show {fid}'s casts posted between {start} and {stop}.
GET /v1/castsByParent List casts replying to a parent · List casts that reply to a given parent #
Ask an LLM
“Which casts reply to a given parent cast?”
“Can I list replies to a cast by its hash or URL?”
Tell an agent
List casts replying to parent {hash}.
Show replies to the cast at {url}.
GET /v1/castsByMention List casts mentioning a user · List casts mentioning a FID #
Ask an LLM
“Which casts mention a particular Farcaster user?”
“Can I see every mention of a user, newest first?”
Tell an agent
List casts mentioning FID {fid}.
Show {fid}'s mentions in reverse order.

Specifications

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:farcaster-casts-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

farcaster-casts-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Farcaster Snapchain Hub HTTP Casts 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: Casts
paths:
  /v1/castById:
    get:
      tags:
      - Casts
      summary: Get a cast by FID and hash
      parameters:
      - $ref: '#/components/parameters/Fid'
      - in: query
        name: hash
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Cast message
      operationId: getV1CastById
      x-operation-id-source: derived
  /v1/castsByFid:
    get:
      tags:
      - Casts
      summary: List casts authored by a FID
      parameters:
      - $ref: '#/components/parameters/Fid'
      - $ref: '#/components/parameters/PageSize'
      - $ref: '#/components/parameters/PageToken'
      - $ref: '#/components/parameters/Reverse'
      - in: query
        name: startTimestamp
        schema:
          type: integer
      - in: query
        name: stopTimestamp
        schema:
          type: integer
      responses:
        '200':
          description: Page of casts
      operationId: getV1CastsByFid
      x-operation-id-source: derived
  /v1/castsByParent:
    get:
      tags:
      - Casts
      summary: List casts that reply to a given parent
      parameters:
      - in: query
        name: fid
        schema:
          type: integer
      - in: query
        name: hash
        schema:
          type: string
      - in: query
        name: url
        schema:
          type: string
      - $ref: '#/components/parameters/PageSize'
      - $ref: '#/components/parameters/PageToken'
      - $ref: '#/components/parameters/Reverse'
      responses:
        '200':
          description: Page of casts
      operationId: getV1CastsByParent
      x-operation-id-source: derived
  /v1/castsByMention:
    get:
      tags:
      - Casts
      summary: List casts mentioning a FID
      parameters:
      - $ref: '#/components/parameters/Fid'
      - $ref: '#/components/parameters/PageSize'
      - $ref: '#/components/parameters/PageToken'
      - $ref: '#/components/parameters/Reverse'
      responses:
        '200':
          description: Page of casts
      operationId: getV1CastsByMention
      x-operation-id-source: derived
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