πŸ›‘Unfollow

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

Listen To All Unfollow Events On Farcaster

You can use Airstack webhooks to listen to all Farcaster unfollow 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.deleted"
  }
}'

Listen To Any Farcaster User That Unfollows A Certain Farcaster User

You can use Airstack webhooks to listen to all events when any Farcaster user is unfollowing 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.deleted",
    "filter": {
      "followerProfileId": "3761"
    },
    "payload": {
      "followerProfileId": "3761",
      "followingProfileId": "326089"
    }
  }
}'

Listen To A Farcaster User When Unfollowing Another Farcaster User

You can use Airstack webhooks to listen to all Farcaster unfollow events initiated by a 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.deleted",
    "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 unfollowing events, please join our Airstack's Telegram group.

More Resources

Last updated