Felo API PlatformFelo API Platform

データ API / X / User

Check Follow Relationship

Check whether one X user follows another, in both directions, by @handle. Use this for a single targeted lookup instead of paging through get_twitter_user_followers or get_twitter_user_followings — it answers 'does A follow B, and does B follow A' in one request. Returns the relationship flags under data.

パラメータ

クエリ

  • source_user_namestring必須

    Screen name of the source user.

  • target_user_namestring必須

    Screen name of the target user.

リクエスト例

curl -G "https://openapi.felo.ai/v1/beta/twitter/user/check_follow_relationship" \
  --data-urlencode "source_user_name=<string>" \
  --data-urlencode "target_user_name=<string>" \
  -H "Authorization: Bearer $FELO_API_KEY"

レスポンス

レスポンスのフィールド

  • dataobject任意
  • followingboolean任意
  • followed_byboolean任意
  • statusstring任意

    指定できる値: success · error

  • messagestring任意