{
  "openapi": "3.0.1",
  "info": {
    "title": "Instagram Super Scraper - Profiles, Posts, Reels and Ads",
    "description": "Scrape public Instagram profiles with their full post history, Reels tab and the Instagram ads they run, plus posts by URL, keyword search volume, trending topics and places. Exact likes, comments and views, collaborators, tagged accounts, audio and link-in-bio URLs. No login.",
    "version": "0.1",
    "x-build-id": "ofuQUkEAthKwxHlQP"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/s-r~instagram-super-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-s-r-instagram-super-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/s-r~instagram-super-scraper/runs": {
      "post": {
        "operationId": "runs-sync-s-r-instagram-super-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/s-r~instagram-super-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-s-r-instagram-super-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "required": [
          "search"
        ],
        "properties": {
          "searchType": {
            "title": "What are you searching for?",
            "enum": [
              "profile",
              "keyword",
              "url",
              "location",
              "trending"
            ],
            "type": "string",
            "description": "Profile takes usernames and returns the account, its posts, its Reels tab and its Instagram ads. Keyword reads Instagram's public search-term pages with reel volume and related keywords. URL accepts any post, reel or profile link. Location takes place IDs. Trending ignores your input and reads Instagram's trending topics. Instagram links are always detected automatically, whatever you pick here.",
            "default": "profile"
          },
          "search": {
            "title": "Search input",
            "type": "array",
            "description": "Usernames like 'glossier' or '@glossier', keywords like 'skincare', Instagram URLs, or numeric place IDs, matching the type above.",
            "items": {
              "type": "string"
            }
          },
          "maxPostsPerProfile": {
            "title": "Max posts per profile",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "Posts to return per profile, newest first, back through the account's full history. Each post has exact likes, comments, views on videos, tagged accounts, collaborators, place and audio.",
            "default": 24
          },
          "maxReelsPerProfile": {
            "title": "Max reels per profile",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "Reels to return from each profile's Reels tab, with play counts and audio. Includes reels made together with other accounts. Reels already returned as posts are returned once. 0 skips the Reels tab.",
            "default": 0
          },
          "includeAds": {
            "title": "Include the profile's Instagram ads",
            "type": "boolean",
            "description": "Look up each profile in Meta's Ad Library and return the ads it runs on Instagram, next to its organic posts. Only an advertiser page whose Instagram handle is exactly the profile's username is used, so a lookalike page never gets attached. The profile row also gets the advertiser summary: total Instagram ads, Instagram-only ads and the newest ad's start date.",
            "default": true
          },
          "maxAdsPerProfile": {
            "title": "Max ads per profile",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "Ads to return per profile. 0 keeps the advertiser summary on the profile row without returning ad rows.",
            "default": 20
          },
          "adsCountry": {
            "title": "Ads country",
            "type": "string",
            "description": "Two-letter country whose Ad Library to read, e.g. US, GB, NL, DE.",
            "default": "US"
          },
          "activeAdsOnly": {
            "title": "Active ads only",
            "type": "boolean",
            "description": "Return only ads that are running now. Off returns past ads too.",
            "default": true
          },
          "includeComments": {
            "title": "Include comments",
            "type": "boolean",
            "description": "Attach comments to posts and reels: author, text, likes, time and reply linkage. For profiles, comments are read for the 12 newest posts. Comments are nested in the post row and cost nothing extra.",
            "default": false
          },
          "maxComments": {
            "title": "Max comments per post",
            "minimum": 0,
            "maximum": 200,
            "type": "integer",
            "description": "Upper bound on comments attached to each post. Instagram shows roughly 12 to 15 per post without a login.",
            "default": 20
          },
          "mode": {
            "title": "Keyword results",
            "enum": [
              "both",
              "keywords",
              "reels"
            ],
            "type": "string",
            "description": "For keyword input: keyword rows (reel volume and related keywords), the reels behind them, or both.",
            "default": "both"
          },
          "maxKeywords": {
            "title": "Max keywords",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "For keyword input: cap on keyword pages fetched, including related ones.",
            "default": 25
          },
          "expandRelated": {
            "title": "Expand related keywords (depth)",
            "minimum": 0,
            "maximum": 3,
            "type": "integer",
            "description": "For keyword input: how many levels of Instagram's related keywords to follow. 0 returns only your keywords.",
            "default": 0
          },
          "maxReels": {
            "title": "Max keyword reels",
            "minimum": 0,
            "maximum": 2000,
            "type": "integer",
            "description": "For keyword input: cap on reel rows from keyword pages. Each keyword page lists up to 12 reels.",
            "default": 50
          },
          "includeTrending": {
            "title": "Include trending topics",
            "type": "boolean",
            "description": "Also return Instagram's current trending topics, whatever your input.",
            "default": false
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}