Instagram API Scraper avatar
Instagram API Scraper
Try for free

30 days trial then $39.00/month - No credit card required now

View all Actors
Instagram API Scraper

Instagram API Scraper

Try for free

30 days trial then $39.00/month - No credit card required now

Scrape and download Instagram posts, profiles, places, hashtags, photos without login. Supports search keywords and URL lists. Download your data as HTML table, JSON, CSV, Excel, XML, and RSS feed.

The code examples below show how to run the Actor and get its results. To run the code, you need to have an Apify account. Replace <YOUR_API_TOKEN> in the code with your API token, which you can find under Settings > Integrations in Apify Console. Learn mode




1from apify_client import ApifyClient
3# Initialize the ApifyClient with your Apify API token
4client = ApifyClient("<YOUR_API_TOKEN>")
6# Prepare the Actor input
7run_input = {
8    "directUrls": [""],
9    "resultsType": "details",
10    "resultsLimit": 200,
11    "searchType": "hashtag",
12    "searchLimit": 1,
15# Run the Actor and wait for it to finish
16run ="apify/instagram-api-scraper").call(run_input=run_input)
18# Fetch and print Actor results from the run's dataset (if there are any)
19for item in client.dataset(run["defaultDatasetId"]).iterate_items():
20    print(item)
Apify logo Maintained by Apify
Actor metrics
  • 110 monthly users
  • 99.8% runs succeeded
  • 1.2 days response time
  • Created in May 2022
  • Modified 2 days ago

You might also like these Actors