Skip to main content
POST
/
api
/
instagram
/
user
/
friendships
/instagram/user/friendships
curl --request POST \
  --url https://api.anysite.io/api/instagram/user/friendships \
  --header 'Content-Type: application/json' \
  --header 'access-token: <access-token>' \
  --data '{
  "timeout": 300,
  "user": "cristiano",
  "count": 123,
  "type": "followers"
}'
[
  {
    "@type": "InstagramUserPreview",
    "id": "<string>",
    "name": "<string>",
    "alias": "<string>",
    "url": "<string>",
    "image": "<string>",
    "is_verified": false,
    "is_private": false
  }
]

Headers

access-token
string
required

Body

application/json
user
string
required

User ID, alias or URL

Examples:

"cristiano"

count
integer
required

Max result count

Required range: x > 0
type
enum<string>
required

Type of relationships to fetch

Available options:
followers,
following
timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500

Response

Successful Response

id
string
required
name
string
required
alias
string
required
url
string
required
@type
string
default:InstagramUserPreview
image
string | null
is_verified
boolean
default:false
is_private
boolean
default:false
I