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: <api-key>' \
  --data '
{
  "user": "<string>",
  "count": 123,
  "type": "followers",
  "timeout": 300
}
'
[
  {
    "id": "<string>",
    "name": "<string>",
    "alias": "<string>",
    "url": "<string>",
    "@type": "InstagramUserPreview",
    "image": "<string>",
    "is_verified": false,
    "is_private": false
  }
]

Authorizations

access-token
string
header
required

Headers

access-token
string
required

Body

application/json
user
string
required

User ID, alias or URL

count
integer
required

Max result count

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