๐Ÿซ‚Follow

Learn how to use Airstack webhooks to listen to various use cases on follow events on the Farcaster network.

Listen To All Follow Events on Farcaster

You can use Airstack webhooks to listen to all Farcaster follow events by using the following configuration:

curl -X 'POST' \
  'https://webhooks.airstack.xyz/api/v1/webhooks' \
  -H 'accept: application/json' \
  -H 'Authorization: <YOUR_AIRSTACK_API_KEY>' \
  -H 'Content-Type: application/json' \
  -d '{
  "endpoint": "https://webhook.site",
  "filter_config": {
    "event_type": "follow.created"
  }
}'

Listen To Any Farcaster User That Follows A Certain Farcaster User

You can use Airstack webhooks to listen to all events when any Farcaster user follows a certain FID by using the following configuration:

curl -X 'POST' \
  'https://webhooks.airstack.xyz/api/v1/webhooks' \
  -H 'accept: application/json' \
  -H 'Authorization: <YOUR_AIRSTACK_API_KEY>' \
  -H 'Content-Type: application/json' \
  -d '{
  "endpoint": "https://webhook.site",
  "filter_config": {
    "event_type": "follow.created",
    "filter": {
      "followerProfileId": "3761"
    },
    "payload": {
      "followerProfileId": "3761",
      "followingProfileId": "326089"
    }
  }
}'

Listen To A Farcaster User When Following Another Farcaster User

You can use Airstack webhooks to listen to all follow events when a Farcaster user is following another Farcaster user by using the following configuration:

curl -X 'POST' \
  'https://webhooks.airstack.xyz/api/v1/webhooks' \
  -H 'accept: application/json' \
  -H 'Authorization: <YOUR_AIRSTACK_API_KEY>' \
  -H 'Content-Type: application/json' \
  -d '{
  "endpoint": "https://webhook.site",
  "filter_config": {
    "event_type": "follow.created",
    "filter": {
      "followingProfileId": "326089"
    },
    "payload": {
      "followerProfileId": "3761",
      "followingProfileId": "326089"
    }
  }
}'

Developer Support

If you have any questions or need help regarding creating webhook for listening to Farcaster following events, please join our Airstack's Telegram group.

More Resources

Last updated