Felo API PlatformFelo API Platform
v0.1.0-beta
OpenAPI 3.1.0

Check Follow Relationship

Server:https://openapi.felo.ai
Client Libraries

Twitter / X

​

Query public users, posts, communities and trends.

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.

Query Parameters
  • source_user_name
    Type: string
    required

    Screen name of the source user.

  • target_user_name
    Type: string
    required

    Screen name of the target user.

Responses
  • 200
    Type: object · FollowRelationshipResponse

    Successful response

    • data
      Type: object
      • followed_by
        Type: boolean
      • following
        Type: boolean
    • message
      Type: string
    • status
      Type: string enum
      values
      • success
      • error
    application/json
  • 400

    The request could not be processed. Check the request parameters.

  • 401

    A valid Felo API key is required.

  • 402

    The request cannot proceed because a billing requirement is not met.

  • 403

    The account is not permitted to perform this operation.

  • 429

    A request or spending limit has been reached.

  • 502

    The service could not complete the request.

  • 503

    The API or billing service is temporarily unavailable.

  • 504

    The service timed out while processing the request.

  • default

    The operation failed. Keep the response request ID when contacting Felo support.

Request Example for get/v1/beta/twitter/user/check_follow_relationship
curl 'https://openapi.felo.ai/v1/beta/twitter/user/check_follow_relationship?source_user_name=&target_user_name=' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
  "data": {
    "following": true,
    "followed_by": true
  },
  "status": "success",
  "message": "string"
}
Check Follow Relationship