
Instagram Post Scraper (Pay Per Request)
Pricing
$1.40 / 1,000 results
Go to Store

Instagram Post Scraper (Pay Per Request)
Instagram Post Scraper - Grab View data from any post
0.0 (0)
Pricing
$1.40 / 1,000 results
0
Total users
1
Monthly users
1
Runs succeeded
>99%
Last modified
2 days ago
You can access the Instagram Post Scraper (Pay Per Request) programmatically from your own applications by using the Apify API. You can also choose the language preference from below. To use the Apify API, you’ll need an Apify account and your API token, found in Integrations settings in Apify Console.
1from apify_client import ApifyClient2
3# Initialize the ApifyClient with your Apify API token4# Replace '<YOUR_API_TOKEN>' with your token.5client = ApifyClient("<YOUR_API_TOKEN>")6
7# Prepare the Actor input8run_input = {9 "startUrls": [{ "url": "https://www.instagram.com/p/EXAMPLE123/" }],10 "cookieSets": [11 {12 "sessionid": "your_session_id_here",13 "csrftoken": "your_csrf_token_here",14 "ds_user_id": "your_user_id_here",15 "mid": "your_mid_here",16 "ig_did": "your_ig_did_here",17 "datr": "your_datr_here",18 "ig_nrcb": "optional_new_user_cookie",19 "shbid": "optional_session_hash",20 "shbts": "optional_session_timestamp",21 "rur": "optional_region_hint",22 },23 {24 "sessionid": "backup_session_id_here",25 "csrftoken": "backup_csrf_token_here",26 "ds_user_id": "backup_user_id_here",27 "mid": "backup_mid_here",28 "ig_did": "backup_ig_did_here",29 "datr": "backup_datr_here",30 },31 ],32 "manualSession": {33 "sessionid": "your_sessionid_cookie_here",34 "csrftoken": "your_csrftoken_cookie_here",35 "ds_user_id": "your_user_id_here",36 "mid": "optional_machine_id",37 "ig_did": "optional_device_id",38 "datr": "optional_browser_id",39 "ig_nrcb": "optional_new_user_cookie",40 "shbid": "optional_session_hash",41 "shbts": "optional_session_timestamp",42 "rur": "optional_region_hint",43 "urlgen": "optional_url_generator",44 },45 "proxyConfiguration": {46 "useApifyProxy": True,47 "apifyProxyGroups": ["RESIDENTIAL"],48 },49 "brightDataConfig": {50 "endpoint": "brd-customer-CUSTOMER.zproxy.lum-superproxy.io:22225",51 "username": "brd-customer-CUSTOMER-zone-instagram",52 "password": "your_password_here",53 },54}55
56# Run the Actor and wait for it to finish57run = client.actor("clip-forge/instagram-post-scraper-pay-per-request").call(run_input=run_input)58
59# Fetch and print Actor results from the run's dataset (if there are any)60print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])61for item in client.dataset(run["defaultDatasetId"]).iterate_items():62 print(item)63
64# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start
Instagram Post Scraper (Pay Per Request) API in Python
The Apify API client for Python is the official library that allows you to use Instagram Post Scraper (Pay Per Request) API in Python, providing convenience functions and automatic retries on errors.
Install the apify-client
$pip install apify-client
Other API clients include: