Instagram Profile-Posts by Cookies
Pricing
$9.99/month + usage
Go to Apify Store
Instagram Profile-Posts by Cookies
Use cookies to scrape posts from a specific Instagram user. The reason for splitting is that after obtaining a cookie, it can be used for multiple days to avoid your account being blocked.
0.0 (0)
Pricing
$9.99/month + usage
1
5
3
Last modified
5 days ago
Instagram Profile Posts by Cookies Scraper
This Apify Actor is designed to scrape posts from an Instagram profile using session cookies. It allows you to retrieve detailed information about posts from a specific user.
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","username": "nike","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.username
: (Required) The Instagram username of the profile to scrape. For example, "nike".size
: (Optional) The number of posts to retrieve. Default is 10.
2. Output Data
The Actor returns an array of objects containing information about the Instagram posts. The structure of each object is as follows:
{"id": "123456789","pk": "987654321","code": "DNqtnlCP1SA","url": "https://www.instagram.com/p/DNqtnlCP1SA/","text": "This is an example caption.","taken_at": 1680000000,"video_info": {"url": "https://example.com/video.mp4","width": 1080,"height": 1920},"image_info": {"url": "https://example.com/image.jpg","width": 1080,"height": 1920},"user": {"id": "123456","username": "example_user","profile_pic_url": "https://example.com/profile_pic.jpg","full_name": "Example User","is_verified": true},"comment_count": 50,"like_count": 1000,"product_type": "image","has_audio": false}
id
: The unique ID of the post.pk
: The primary key of the post.code
: The shortcode of the post.url
: The URL to the Instagram post.text
: The caption of the post.taken_at
: The timestamp when the post was created.video_info
: Information about the video (if the post contains a video).image_info
: Information about the image (if the post contains an image).user
: Information about the user who posted.comment_count
: The number of comments on the post.like_count
: The number of likes on the post.product_type
: The type of post (e.g., image, video).has_audio
: Whether the post contains audio.
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 posts from the Instagram profile "nike":
- Set the input as:
{"cookies": "sessionid=xxxxxx","username": "nike","size": 5}
- Run the Actor.
- Retrieve the output dataset containing the post 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.