Skip to main content
POST
/
api
/
v1
/
platform
/
scrapers
/
instagram
/
following
List Instagram following
curl --request POST \
  --url https://developer.thehog.ai/api/v1/platform/scrapers/instagram/following \
  --header 'Content-Type: application/json' \
  --header 'X-Access-Key: <api-key>' \
  --header 'X-Secret-Key: <api-key>' \
  --data '
{
  "username": "instagram",
  "maxFollowing": 2500.5
}
'
{
  "data": {
    "username": "<string>",
    "edges": [
      {
        "seed_username": "<string>",
        "follower": {
          "username": "<string>",
          "instagram_user_id": "<string>",
          "display_name": "<string>",
          "profile_url": "<string>",
          "profile_picture_url": "<string>",
          "is_private": true,
          "is_verified": true
        },
        "following": {
          "username": "<string>",
          "instagram_user_id": "<string>",
          "display_name": "<string>",
          "profile_url": "<string>",
          "profile_picture_url": "<string>",
          "is_private": true,
          "is_verified": true
        }
      }
    ],
    "returned_count": 123,
    "requested_limit": 123
  },
  "meta": {
    "requestId": "<string>"
  }
}

POST /api/v1/platform/scrapers/instagram/following

Get accounts an Instagram user is following.
Retrieve accounts that a public Instagram user is following.

Example

curl -X POST https://developer.thehog.ai/api/v1/platform/scrapers/instagram/following \
  -H "X-Access-Key: ak_xxxxxxxxxxxxxxxx" \
  -H "X-Secret-Key: sk_xxxxxxxxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{"username": "instagram", "maxFollowing": 100}'

Authorizations

X-Access-Key
string
header
required

The public API key from the Credentials page.

X-Secret-Key
string
header
required

The API secret shown when the credential is created.

Body

application/json
username
string
required
Example:

"instagram"

maxFollowing
number

Requested following limit. The upstream source may return more than requested. Unlimited is not exposed on v1.

Required range: 1 <= x <= 5000

Response

Instagram following.

data
object
required
meta
object
required