Actor picture

Instagram IDs to username

pocesar/instagram-ids-to-usernames

Convert Instagram ID numbers back to usernames

No credit card required

Author's avatarPaulo Cesar
  • Modified
  • Users133
  • Runs24,259
Actor picture
Instagram IDs to username

This actor allows you to convert a list of Instagram user IDs to their appropriate usernames.

When scraping posts or comments, Instagram often doesn't give you final user username but only their numerical representation. This actor allows you easily convert them and adds also general user data.

Input

Input is a list of user IDs, e.g.

{
    "ids": ["898537494"]
}

You don't need to use JSON format, the actor allows you to use visual interface

Webhook

You can point other Instagram scrapers that don't have the username directly to this actor, and it will generate a dataset enriched with the user data for you!

https://api.apify.com/v2/acts/pocesar~instagram-ids-to-usernames/runs?token=[YOUR TOKEN HERE]

When you call this actor from the webhook, it will write the dataset ID back to your run, under DATASET_ID key in the Key value store, and RUN_ID with the run of this actor, so you can link them together.

Output

Output is a list of user data containing usernames and user URLs, e.g.

[
    {
        "username": "chizawagames",
        "pk": 898537494,
        "profile_pic_url": "https://scontent-atl3-2.cdninstagram.com/v/t51.2885-19/s150x150/75322217_443843236272081_1698154713637191680_n.jpg?_nc_ht=scontent-atl3-2.cdninstagram.com&_nc_cat=109&_nc_ohc=WDDwSFDUDHgAX8WVXFk&edm=AEF8tYYBAAAA&ccb=7-4&oh=db447812033dfaa22803cfc52e48393d&oe=61A4B454&_nc_sid=a9513d",
        "url": "https://www.instagram.com/chizawagames"
    }
]

The output is also available as CSV, Excel, Xml and other formats.

If you call it using a actor, like https://apify.com/pocesar/fast-instagram-hashtag-scraper, it will append the user info on the datasets from it.

Industries

See how Instagram IDs to username is used in industries around the world