Neynar · Example Payload

Lookup Cast By Hash Or Url

Gets information about an individual cast by passing in a Farcaster web URL or cast hash

Cast

Lookup Cast By Hash Or Url is an example object payload from Neynar, with 9 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

operationIdmethodpathsummarydescriptiontagsparametersrequestBodyresponses

Example Payload

Raw ↑
{
  "operationId": "lookup-cast-by-hash-or-url",
  "method": "GET",
  "path": "/v2/farcaster/cast/",
  "summary": "By hash or URL",
  "description": "Gets information about an individual cast by passing in a Farcaster web URL or cast hash",
  "tags": [
    "Cast"
  ],
  "parameters": [
    {
      "name": "",
      "in": "",
      "required": false,
      "description": ""
    },
    {
      "name": "identifier",
      "in": "query",
      "required": true,
      "description": "Cast identifier (It's either a URL or a hash)",
      "schema": {
        "example": "https://farcaster.xyz/rish/0xafa59bb7",
        "type": "string"
      }
    },
    {
      "name": "type",
      "in": "query",
      "required": true,
      "description": "The query param accepted by the API. Sent along with identifier param.\nurl - Cast identifier is a url\nhash - Cast identifier is a hash",
      "schema": {
        "enum": [
          "url",
          "hash"
        ],
        "example": "url",
        "type": "string"
      }
    },
    {
      "name": "viewer_fid",
      "in": "query",
      "required": false,
      "description": "adds viewer_context to cast object to show whether viewer has liked or recasted the cast.",
      "schema": {
        "minimum": 1,
        "type": "integer"
      }
    }
  ],
  "requestBody": null,
  "responses": {
    "200": {
      "description": "Success",
      "schema": {
        "$ref": "#/components/schemas/CastResponse"
      },
      "example": null
    },
    "400": {
      "description": "Bad Request",
      "schema": {
        "$ref": "#/components/schemas/ErrorRes"
      },
      "example": null
    }
  }
}

Work with this as data

Every example 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 examples

4 MCP tools reach this
  • find_examplesBrowse and filter every example in the catalog.
  • 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 example
curl "https://apis.io/api/v1/examples/lookup-cast-by-hash-or-url"
All examples
curl "https://apis.io/api/v1/examples?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.