GET
/
v2
/
farcaster
/
cast
/
search
/
Search for casts
curl --request GET \
  --url https://api.neynar.com/v2/farcaster/cast/search/ \
  --header 'x-api-key: <api-key>'
{
  "result": {
    "casts": [
      {
        "object": "cast",
        "hash": "<string>",
        "parent_hash": "<string>",
        "parent_url": "<string>",
        "root_parent_url": "<string>",
        "parent_author": {
          "fid": 3
        },
        "author": {
          "object": "user",
          "fid": 3,
          "username": "<string>",
          "display_name": "<string>",
          "custody_address": "0x5a927ac639636e534b678e81768ca19e2c6280b7",
          "pro": {
            "status": "<any>",
            "subscribed_at": "<any>",
            "expires_at": "<any>"
          },
          "pfp_url": "<string>",
          "profile": {
            "bio": "<any>",
            "location": "<any>",
            "banner": "<any>"
          },
          "follower_count": 123,
          "following_count": 123,
          "verifications": [
            "<any>"
          ],
          "auth_addresses": [
            "<any>"
          ],
          "verified_addresses": {
            "eth_addresses": "<any>",
            "sol_addresses": "<any>",
            "primary": "<any>"
          },
          "verified_accounts": [
            "<any>"
          ],
          "power_badge": true,
          "experimental": {
            "deprecation_notice": "<any>",
            "neynar_user_score": "<any>"
          },
          "viewer_context": {
            "following": "<any>",
            "followed_by": "<any>",
            "blocking": "<any>",
            "blocked_by": "<any>"
          },
          "score": 123
        },
        "app": {
          "object": "user_dehydrated",
          "fid": 3,
          "username": "<string>",
          "display_name": "<string>",
          "pfp_url": "<string>",
          "custody_address": "0x5a927ac639636e534b678e81768ca19e2c6280b7",
          "score": 123
        },
        "text": "<string>",
        "timestamp": "2023-11-07T05:31:56Z",
        "embeds": [
          {
            "cast_id": {
              "fid": 3,
              "hash": "<string>"
            },
            "cast": {
              "hash": "<string>",
              "parent_hash": "<string>",
              "parent_url": "<string>",
              "root_parent_url": "<string>",
              "parent_author": {
                "fid": 3
              },
              "author": {
                "object": "user_dehydrated",
                "fid": 3,
                "username": "<string>",
                "display_name": "<string>",
                "pfp_url": "<string>",
                "custody_address": "0x5a927ac639636e534b678e81768ca19e2c6280b7",
                "score": 123
              },
              "app": {
                "object": "user_dehydrated",
                "fid": 3,
                "username": "<string>",
                "display_name": "<string>",
                "pfp_url": "<string>",
                "custody_address": "0x5a927ac639636e534b678e81768ca19e2c6280b7",
                "score": 123
              },
              "text": "<string>",
              "timestamp": "2023-11-07T05:31:56Z",
              "embeds": [
                {
                  "cast_id": "<any>",
                  "cast": {}
                }
              ],
              "channel": {
                "id": "<string>",
                "name": "<string>",
                "object": "channel_dehydrated",
                "image_url": "<string>",
                "viewer_context": {}
              }
            }
          }
        ],
        "type": "cast-mention",
        "reactions": {
          "likes": [
            {
              "fid": 3,
              "fname": "<string>"
            }
          ],
          "recasts": [
            {
              "fid": 3,
              "fname": "<string>"
            }
          ],
          "likes_count": 123,
          "recasts_count": 123
        },
        "replies": {
          "count": 123
        },
        "thread_hash": "<string>",
        "mentioned_profiles": [
          {
            "object": "user",
            "fid": 3,
            "username": "<string>",
            "display_name": "<string>",
            "custody_address": "0x5a927ac639636e534b678e81768ca19e2c6280b7",
            "pro": {
              "status": "<any>",
              "subscribed_at": "<any>",
              "expires_at": "<any>"
            },
            "pfp_url": "<string>",
            "profile": {
              "bio": "<any>",
              "location": "<any>",
              "banner": "<any>"
            },
            "follower_count": 123,
            "following_count": 123,
            "verifications": [
              "<any>"
            ],
            "auth_addresses": [
              "<any>"
            ],
            "verified_addresses": {
              "eth_addresses": "<any>",
              "sol_addresses": "<any>",
              "primary": "<any>"
            },
            "verified_accounts": [
              "<any>"
            ],
            "power_badge": true,
            "experimental": {
              "deprecation_notice": "<any>",
              "neynar_user_score": "<any>"
            },
            "viewer_context": {
              "following": "<any>",
              "followed_by": "<any>",
              "blocking": "<any>",
              "blocked_by": "<any>"
            },
            "score": 123
          }
        ],
        "mentioned_profiles_ranges": [
          {
            "start": 1,
            "end": 1
          }
        ],
        "mentioned_channels": [
          {
            "id": "<string>",
            "name": "<string>",
            "object": "channel_dehydrated",
            "image_url": "<string>",
            "viewer_context": {}
          }
        ],
        "mentioned_channels_ranges": [
          {
            "start": 1,
            "end": 1
          }
        ],
        "channel": {
          "id": "<string>",
          "url": "<string>",
          "name": "<string>",
          "description": "<string>",
          "object": "channel",
          "created_at": "2023-11-07T05:31:56Z",
          "follower_count": 123,
          "external_link": {
            "title": "<string>",
            "url": "<string>"
          },
          "image_url": "<string>",
          "parent_url": "<string>",
          "lead": {
            "object": "user",
            "fid": 3,
            "username": "<string>",
            "display_name": "<string>",
            "custody_address": "0x5a927ac639636e534b678e81768ca19e2c6280b7",
            "pro": {
              "status": "<any>",
              "subscribed_at": "<any>",
              "expires_at": "<any>"
            },
            "pfp_url": "<string>",
            "profile": {
              "bio": "<any>",
              "location": "<any>",
              "banner": "<any>"
            },
            "follower_count": 123,
            "following_count": 123,
            "verifications": [
              "<any>"
            ],
            "auth_addresses": [
              "<any>"
            ],
            "verified_addresses": {
              "eth_addresses": "<any>",
              "sol_addresses": "<any>",
              "primary": "<any>"
            },
            "verified_accounts": [
              "<any>"
            ],
            "power_badge": true,
            "experimental": {
              "deprecation_notice": "<any>",
              "neynar_user_score": "<any>"
            },
            "viewer_context": {
              "following": "<any>",
              "followed_by": "<any>",
              "blocking": "<any>",
              "blocked_by": "<any>"
            },
            "score": 123
          },
          "moderator_fids": [
            3
          ],
          "member_count": 123,
          "moderator": {
            "object": "user",
            "fid": 3,
            "username": "<string>",
            "display_name": "<string>",
            "custody_address": "0x5a927ac639636e534b678e81768ca19e2c6280b7",
            "pro": {
              "status": "<any>",
              "subscribed_at": "<any>",
              "expires_at": "<any>"
            },
            "pfp_url": "<string>",
            "profile": {
              "bio": "<any>",
              "location": "<any>",
              "banner": "<any>"
            },
            "follower_count": 123,
            "following_count": 123,
            "verifications": [
              "<any>"
            ],
            "auth_addresses": [
              "<any>"
            ],
            "verified_addresses": {
              "eth_addresses": "<any>",
              "sol_addresses": "<any>",
              "primary": "<any>"
            },
            "verified_accounts": [
              "<any>"
            ],
            "power_badge": true,
            "experimental": {
              "deprecation_notice": "<any>",
              "neynar_user_score": "<any>"
            },
            "viewer_context": {
              "following": "<any>",
              "followed_by": "<any>",
              "blocking": "<any>",
              "blocked_by": "<any>"
            },
            "score": 123
          },
          "pinned_cast_hash": "0x71d5225f77e0164388b1d4c120825f3a2c1f131c",
          "hosts": [
            {
              "object": "user",
              "fid": 3,
              "username": "<string>",
              "display_name": "<string>",
              "custody_address": "0x5a927ac639636e534b678e81768ca19e2c6280b7",
              "pro": {
                "status": "<any>",
                "subscribed_at": "<any>",
                "expires_at": "<any>"
              },
              "pfp_url": "<string>",
              "profile": {
                "bio": "<any>",
                "location": "<any>",
                "banner": "<any>"
              },
              "follower_count": 123,
              "following_count": 123,
              "verifications": [
                "<any>"
              ],
              "auth_addresses": [
                "<any>"
              ],
              "verified_addresses": {
                "eth_addresses": "<any>",
                "sol_addresses": "<any>",
                "primary": "<any>"
              },
              "verified_accounts": [
                "<any>"
              ],
              "power_badge": true,
              "experimental": {
                "deprecation_notice": "<any>",
                "neynar_user_score": "<any>"
              },
              "viewer_context": {
                "following": "<any>",
                "followed_by": "<any>",
                "blocking": "<any>",
                "blocked_by": "<any>"
              },
              "score": 123
            }
          ],
          "viewer_context": {
            "following": true,
            "role": "member"
          },
          "description_mentioned_profiles": [
            {
              "object": "user_dehydrated",
              "fid": 3,
              "username": "<string>",
              "display_name": "<string>",
              "pfp_url": "<string>",
              "custody_address": "0x5a927ac639636e534b678e81768ca19e2c6280b7",
              "score": 123
            }
          ],
          "description_mentioned_profiles_ranges": [
            {
              "start": 1,
              "end": 1
            }
          ]
        },
        "viewer_context": {
          "liked": true,
          "recasted": true
        },
        "author_channel_context": {
          "following": true,
          "role": "member"
        }
      }
    ],
    "next": {
      "cursor": "<string>"
    }
  }
}

Searching Casts

You can search for casts using keywords and operators in the search query.

Authorizations

x-api-key
string
header
default:NEYNAR_API_DOCS
required

API key to authorize requests

Headers

x-neynar-experimental
boolean
default:false

Enables experimental features including filtering based on the Neynar score. See docs for more details.

Query Parameters

q
string
required

Query string to search for casts. Supported operators:

OperatorDescription
+Acts as the AND operator. This is the default operator between terms and can usually be omitted.
|Acts as the OR operator.
*When used at the end of a term, signifies a prefix query.
"Wraps several terms into a phrase (for example, "star wars").
(, )Wrap a clause for precedence (for example, star + (wars | trek)).
~nWhen used after a term (for example, satr~3), sets fuzziness. When used after a phrase, sets slop.
-Negates the term.
before:Search for casts before a specific date. (e.g. before:2025-04-20 or before:2025-04-20T23:59:59)
after:Search for casts after a specific date. (e.g. after:2025-04-20 or after:2025-04-20T00:00:00)
Example:

"star (wars | trek) \"space battle\" after:2024-05-04"

mode
enum<string>

Choices are:

  • literal - Searches for the words in the query string (default)
  • semantic - Searches for the meaning of the query string
  • hybrid - Combines both literal and semantic results
Available options:
literal,
semantic,
hybrid
Example:

"literal"

sort_type
enum<string>

Choices are:

  • desc_chron - All casts sorted by time in a descending order (default)
  • chron - All casts sorted by time in ascending order
  • algorithmic - Casts sorted by engagement and time
Available options:
desc_chron,
chron,
algorithmic
Example:

"desc_chron"

author_fid
integer

Fid of the user whose casts you want to search

Required range: x >= 1
viewer_fid
integer

Providing this will return search results that respects this user's mutes and blocks and includes viewer_context.

Required range: x >= 1
parent_url
string

Parent URL of the casts you want to search

channel_id
string

Channel ID of the casts you want to search

limit
integer
default:25

Number of results to fetch

Required range: 1 <= x <= 100
Example:

25

cursor
string

Pagination cursor

Response

Success

The response is of type object.