Platforms · Instagram

Instagram Following Scraper API

Returns a paginated list of the accounts an Instagram user follows. Each account includes username, display name, avatar URL, verification status, and profile URL. Pass either handle or user_id, and page through with cursor. Send query to search inside the list instead of paging it: one window of the accounts in the list whose username or display name contains the query, so the exact username of an account tells you whether it is on the list.

GET /api/v1/data/instagram/following · 5 credits per page · The same call repeated within 15 minutes may get the same answer, so data can be up to 15 minutes old.

Inputs

  • handle: Instagram username without the @ symbol.
  • user_id: Instagram numeric user ID. Use this for faster responses.
  • cursor: Leave it out for the first page. For the next page, send next_cursor from the previous answer.

What comes back

  • result_status (string): success, or not_available when the item does not exist, was removed or is not public.
  • items[].author.avatar_url (string): URL to profile picture
  • items[].author.display_name (string): Display name or full name
  • items[].author.ext.business_hours (array)
  • items[].author.ext.products (array): Null when it lists none.
  • items[].author.id (string): Platform-specific user ID (always a string; platform-specific prefixes like `did:`, `spotify:artist:`, `t2_` are stripped)
  • items[].author.url (string): Direct URL to the profile page
  • items[].author.username (string): User handle or username
  • items[].author.verified (boolean): Whether the account is verified
  • next_cursor (string): Send it as cursor to get the next page; null when there is none.
  • has_more (boolean): Whether there is another page.
  • source_data (object): Everything the platform sent for this call, as it came.

Good to know

  • The price depends on what the call returns: from 5 credits to 10 credits.
  • Each call returns one page of about 197 rows. To get the next page, send next_cursor from the answer as cursor.
  • The same call repeated within 15 minutes may get the same answer, so data can be up to 15 minutes old.
  • Send one of: handle, user_id.

Example call

GET /api/v1/data/instagram/following?handle=mrbeast

Questions

How much does the Instagram Following API cost?

Each page costs 5 to 10 credits, depending on what it returns. A call that finds nothing, or fails, costs nothing.

What do I send?

Give one of handle and user_id. 2 more inputs are optional: handle and user_id. Inputs go in the query string of a GET, or as JSON in a POST, along with your API key.

How do I get the next page?

Each call returns one page of about 197 rows. The answer carries next_cursor: send it back as cursor to get the page after. Each page is charged on its own, and an empty page is free.

How fresh is the data?

The same call repeated within 15 minutes may get the same answer, so data can be up to 15 minutes old.

Do I need an Instagram account or developer app?

No. You call SocialHz with your SocialHz API key, and the same key works for every platform.

Can I try it before paying?

Yes. Signing up gives you 10 free credits, with no card needed.

More Instagram scraper APIs