Instagram Comments by Cookies
Pricing
$9.99/month + usage
Go to Apify Store
Instagram Comments by Cookies
Use cookies to scrape Instagram comments for media. The reason for splitting is that after obtaining a cookie, it can be used for multiple days to avoid your account being blocked.
1.0 (1)
Pricing
$9.99/month + usage
1
2
1
Last modified
5 days ago
Instagram Comments by Cookies Scraper
This Apify Actor is designed to scrape comments from Instagram posts using cookies. It allows you to retrieve detailed information about comments on a specific post.
How to Use
1. Input Configuration
The Actor requires an input JSON object to define the scraping parameters. The structure of the input is as follows:
{"cookies": "sessionid=xxxxxx","shortcode": "DNqtnlCP1SA","size": 10}
cookies
: (Required) The logged-in Instagram session cookie. You can obtain this after logging into Instagram or use theActor:shareze001/instagram-cookies
Actor.shortcode
: (Required) The shortcode of the Instagram post. For example, inhttps://www.instagram.com/p/DNqtnlCP1SA/
, theDNqtnlCP1SA
part is the shortcode.size
: (Required) The number of comments to retrieve. Default is 10.
2. Output Data
The Actor returns an array of objects containing information about the comments. The structure of each object is as follows:
{"id": "123456789","text": "This is an example comment.","createdAt": 1680000000,"likeCount": 5,"userId": "987654321","username": "example_user","profilePicUrl": "https://example.com/profile_pic.jpg"}
id
: The unique ID of the comment.text
: The content of the comment.createdAt
: The timestamp when the comment was created.likeCount
: The number of likes the comment received.userId
: The unique ID of the user who posted the comment.username
: The username of the commenter.profilePicUrl
: The URL of the commenter's profile picture.
3. Running the Actor
- Deploy the Actor on the Apify platform.
- Provide the input JSON in the Actor's input configuration.
- Run the Actor to scrape data.
- The results will be available in the Actor's dataset.
4. Example Use Case
To scrape comments from an Instagram post:
- Set the input as:
{"cookies": "sessionid=xxxxxx","shortcode": "DNqtnlCP1SA","size": 5}
- Run the Actor.
- Retrieve the output dataset containing the comment details.
Notes
- This Actor uses Instagram's public API and requires a valid session cookie.
- Ensure that the input cookies are valid and correspond to a logged-in Instagram account.
- The Actor is optimized for performance but may be subject to rate limits or restrictions imposed by Instagram.
On this page
Share Actor: