{
  "openapi": "3.0.1",
  "info": {
    "title": "Instagram Scraper ($0.30/1k Posts, Signed-In, No Cookies)",
    "description": "Instagram profiles, posts, reels and hashtags, read signed in through our own account by default on paid plans, so big tags and full comments open. You need no login or cookies. Followers, bio, captions, likes, views, comments, dates, media links. New-only mode. From $0.30 per 1,000 posts.",
    "version": "0.1",
    "x-build-id": "akpXNFHxNURVet753"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/locaihost~instagram-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-locaihost-instagram-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/locaihost~instagram-scraper/runs": {
      "post": {
        "operationId": "runs-sync-locaihost-instagram-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/locaihost~instagram-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-locaihost-instagram-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",
        "properties": {
          "usernames": {
            "title": "Usernames or profile links",
            "type": "array",
            "description": "Instagram usernames (natgeo, @natgeo) or profile links (https://www.instagram.com/natgeo/). Each returns a profile row (name, bio, followers, following, verified, links) and the profile's latest posts and reels, newest first (see Posts per profile).",
            "items": {
              "type": "string"
            }
          },
          "postUrls": {
            "title": "Post or reel links",
            "type": "array",
            "description": "Links to single posts or reels (/p/..., /reel/..., /tv/...). Each returns that post with full details: exact time, likes, comment count, every photo or video in it, tagged accounts, location and audio.",
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "Keywords or hashtags",
            "type": "array",
            "description": "Keywords or hashtags (travel, #travel, vegan recipes). Each returns the top public reels Instagram shows a signed-out visitor for it: Instagram sends signed-out hashtag links (/explore/tags/...) to this page. Common words work best; rare ones may have no public page (free row, nothing charged).",
            "items": {
              "type": "string"
            }
          },
          "hashtags": {
            "title": "Hashtags",
            "type": "array",
            "description": "Hashtags, with or without # (streetfood, #streetfood) or hashtag links (/explore/tags/...). Each returns the public posts Instagram shows a signed-out visitor on that hashtag's page, as post rows with foundViaHashtag set. Rows are the same as keywords give.",
            "items": {
              "type": "string"
            }
          },
          "maxPostsPerProfile": {
            "title": "Posts per profile",
            "minimum": 0,
            "maximum": 2000,
            "type": "integer",
            "description": "Latest posts and reels to return for each username, newest first (pinned posts can come first). 0 returns the profile row only.",
            "default": 12
          },
          "maxPostsPerKeyword": {
            "title": "Posts per keyword",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Most reels to return for each keyword. Instagram decides how far each public keyword page goes; when it ends sooner, the run says so.",
            "default": 24
          },
          "maxPostsPerHashtag": {
            "title": "Posts per hashtag",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Most posts to return for each hashtag. Instagram decides how far each public hashtag page goes; when it ends sooner, the run says so.",
            "default": 24
          },
          "postDetails": {
            "title": "Full post details ($)",
            "type": "boolean",
            "description": "Open every post from profiles and keywords on its own page for the exact time, comment count, every photo and video in it at full size (1080 px or larger), tagged accounts, location and audio. These rows are charged as detailed posts instead of posts. Off: profile posts carry caption, hashtags, mentions, likes, views, date and image; keyword posts carry caption, views, owner and video link. Post and reel links always return full details.",
            "default": false
          },
          "postsNewerThan": {
            "title": "Posts newer than",
            "type": "string",
            "description": "Only posts published after this: a date like 2026-10-01 (midnight UTC) or a period like \"7 days\", \"2 weeks\" or \"3 months\". A profile's posts are read newest first, so the profile stops at the first older post that isn't pinned (pinned posts never end it early). Keyword pages and a hashtag's top grid rank posts by popularity, so older posts there are left out without ending the list (a hashtag's recent grid, in logged-in mode, stops like a profile). Left-out posts are free and don't count toward the posts per profile, keyword or hashtag. Post and reel links are always returned. Empty = every date."
          },
          "postTypes": {
            "title": "Post types",
            "type": "array",
            "description": "Only these kinds of posts from profiles, keywords and hashtags. Other posts are free and don't count toward the posts asked for. Empty = every kind. Keyword pages list reels only.",
            "items": {
              "type": "string",
              "enum": [
                "reel",
                "video",
                "image",
                "carousel"
              ],
              "enumTitles": [
                "Reels",
                "Videos (not reels)",
                "Images",
                "Carousels (several photos or videos)"
              ]
            }
          },
          "skipPinnedPosts": {
            "title": "Skip pinned posts",
            "type": "boolean",
            "description": "Leave out the posts a profile pins to the top of its grid or reels tab (free, not counted). Off: pinned posts are returned like any other post.",
            "default": false
          },
          "includeComments": {
            "title": "Include comments ($)",
            "type": "boolean",
            "description": "Also return the public comments on each post (text, date, likes, reply count), charged per comment. Instagram shows signed-out visitors only the newest 7 to 12 comments of a post, so that is the most each post gives without a session cookie; in logged-in mode the whole thread is read, replies included. Post and reel links already carry them; for posts from profiles, keywords and hashtags, each post's own page is opened.",
            "default": false
          },
          "maxCommentsPerPost": {
            "title": "Comments per post",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Most comments to return for each post. Signed out, at most 100 (Instagram shows fewer); in logged-in mode up to 5,000, replies included.",
            "default": 20
          },
          "includeCommenterNames": {
            "title": "Include commenter usernames",
            "type": "boolean",
            "description": "Off: commenterUsername is empty and @handles inside comment text are replaced by @[user]. On: the commenter's public username is kept (never a picture or bio).",
            "default": false
          },
          "onlyNew": {
            "title": "Only new posts",
            "type": "boolean",
            "description": "Of the latest posts (Posts per profile / per keyword), return only those this input hasn't returned in an earlier run. For daily or weekly schedules. Skipped posts are not charged. Profile rows are always returned (their counts change).",
            "default": false
          },
          "maxResults": {
            "title": "Max rows",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many charged rows in total. 0 means no limit (the run's maximum charge still applies).",
            "default": 0
          },
          "useOurAccount": {
            "title": "Deeper data with our account (paid plans, no cookie needed)",
            "type": "boolean",
            "description": "On a paid Apify plan, the logged-in requests go through our own Instagram account, so you don't need one. Our account is shared by everyone, so it has a daily limit and serves one run at a time: when it is busy, used up for the day or paused, the run reads signed out and says so. Same prices. Your own session cookie below takes priority if you give one.",
            "default": true
          },
          "sessionCookie": {
            "title": "Instagram session cookie (optional)",
            "type": "string",
            "description": "The value of the sessionid cookie from your own Instagram account, signed in at instagram.com (see \"Logged-in mode\" in the README for how to copy it). Use your own account. We never store it: it is kept in memory for this run only, sent only to instagram.com, and removed from every log and message. Leave empty for the usual signed-out run."
          },
          "commentsOnly": {
            "title": "Comments only",
            "type": "boolean",
            "description": "Return comment rows only, without the profile and post rows. Needs Include comments.",
            "default": false
          },
          "trackCounts": {
            "title": "Follower change since last run",
            "type": "boolean",
            "description": "Adds previous follower and following counts and the change (number and %) to each profile row, compared with this Actor's last run in your account. The first run fills the columns with nothing; every later run shows the change. No extra cost.",
            "default": false
          },
          "includeReels": {
            "title": "Include the reels tab",
            "type": "boolean",
            "description": "Logged-in mode only: also return each profile's reels tab, up to Posts per profile. Charged like other posts.",
            "default": false
          },
          "includeTagged": {
            "title": "Include tagged posts",
            "type": "boolean",
            "description": "Logged-in mode only: also return the public posts each profile is tagged in, up to Posts per profile. Posts from private accounts are left out.",
            "default": false
          },
          "hashtagFeed": {
            "title": "Hashtag grid",
            "enum": [
              "top",
              "recent"
            ],
            "type": "string",
            "description": "Logged-in mode only: which of the hashtag's own grids to read, up to Posts per hashtag.",
            "default": "top"
          },
          "maxLoggedInRequests": {
            "title": "Max logged-in requests",
            "minimum": 1,
            "maximum": 3000,
            "type": "integer",
            "description": "Logged-in mode only: most requests your session makes in this run (one every 2 to 3 seconds). When it is used up, the rest is read signed out. Keep it modest to keep your account safe.",
            "default": 600
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}