{
  "openapi": "3.0.1",
  "info": {
    "title": "Instagram Post Scraper (No Login)",
    "description": "Get the latest 12 posts of public Instagram profiles, or any post or reel by link, without logging in: caption, likes, comment count, date, images, video, hashtags, mentions, tagged users, co-authors and location. No duplicates, a row for every input. $1.20 per 1,000 posts, all data included.",
    "version": "0.1",
    "x-build-id": "MrXgQDsu1lnTRZvgm"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/superxcoder~instagram-post-scraper-lite/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-superxcoder-instagram-post-scraper-lite",
        "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/superxcoder~instagram-post-scraper-lite/runs": {
      "post": {
        "operationId": "runs-sync-superxcoder-instagram-post-scraper-lite",
        "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/superxcoder~instagram-post-scraper-lite/run-sync": {
      "post": {
        "operationId": "run-sync-superxcoder-instagram-post-scraper-lite",
        "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": [
          "username"
        ],
        "properties": {
          "username": {
            "title": "Profiles or post links",
            "type": "array",
            "description": "One per line: a username (natgeo or @natgeo), a profile URL, or a post/reel URL (https://www.instagram.com/p/SHORTCODE/). Profiles return their latest posts (up to 12); post links return that exact post, any age.",
            "items": {
              "type": "string"
            }
          },
          "resultsLimit": {
            "title": "Posts per profile",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many posts from each profile. Instagram shows logged-out visitors only the latest 12 posts of a profile, so values above 12 still return at most 12 (kept accepted so inputs written for other Instagram scrapers run unchanged). Does not apply to post links.",
            "default": 12
          },
          "onlyPostsNewerThan": {
            "title": "Only posts newer than",
            "pattern": "^$|^(\\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])(T[0-2]\\d:[0-5]\\d(:[0-5]\\d)?(\\.\\d+)?Z?)?$|^(\\d+)\\s*(minute|hour|day|week|month|year)s?$",
            "type": "string",
            "description": "Skip posts published before this date. Use YYYY-MM-DD, a full ISO date, or a relative value like \"7 days\", \"2 months\". UTC. The scraper stops reading a profile once it passes this date, so you also pay less."
          },
          "onlyPostsOlderThan": {
            "title": "Only posts older than",
            "pattern": "^$|^(\\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])(T[0-2]\\d:[0-5]\\d(:[0-5]\\d)?(\\.\\d+)?Z?)?$|^(\\d+)\\s*(minute|hour|day|week|month|year)s?$",
            "type": "string",
            "description": "Skip posts published after this date. Combine with \"Only posts newer than\" to get an exact date range. Same formats."
          },
          "skipPinnedPosts": {
            "title": "Skip pinned posts",
            "type": "boolean",
            "description": "Leave out posts the profile has pinned to the top of its grid. Instagram does not mark pinned posts for logged-out visitors, so they are inferred: a post in the top three grid slots that is older than a post listed after it.",
            "default": false
          },
          "dataDetailLevel": {
            "title": "Data detail level",
            "enum": [
              "basicData",
              "detailedData"
            ],
            "type": "string",
            "description": "Same price either way. Detailed adds alt text, the latest comments, music and paid-partnership info; Basic leaves those out for smaller, faster exports.",
            "default": "detailedData"
          },
          "postTypes": {
            "title": "Post types",
            "type": "array",
            "description": "Keep only these types. Leave empty for all. Reels count as Video, carousels as Sidecar.",
            "items": {
              "type": "string",
              "enum": [
                "Image",
                "Video",
                "Sidecar"
              ],
              "enumTitles": [
                "Image",
                "Video / Reel",
                "Carousel (Sidecar)"
              ]
            },
            "default": []
          },
          "minLikes": {
            "title": "Minimum likes",
            "minimum": 0,
            "type": "integer",
            "description": "Skip posts with fewer likes. Posts with hidden like counts are treated as 0. Skipped posts are not charged.",
            "default": 0
          },
          "minComments": {
            "title": "Minimum comments",
            "minimum": 0,
            "type": "integer",
            "description": "Skip posts with fewer comments. Skipped posts are not charged.",
            "default": 0
          },
          "maxPostsTotal": {
            "title": "Max posts in total",
            "minimum": 0,
            "type": "integer",
            "description": "Hard cap for the whole run across all profiles and links. 0 = no cap. Useful to keep spend predictable.",
            "default": 0
          },
          "latestCommentsLimit": {
            "title": "Latest comments per post",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "How many of the comments Instagram returns with a post to keep (Detailed data only). Instagram usually includes a few, not all.",
            "default": 10
          },
          "outputFields": {
            "title": "Output only these fields",
            "type": "array",
            "description": "Optional list of field names to keep in each row, e.g. url, caption, likesCount, timestamp. Leave empty for all fields. Smaller rows export faster.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 15,
            "type": "integer",
            "description": "Parallel requests. 10 is fast and rarely blocked; lower it if you see many retries.",
            "default": 10
          },
          "maxRequestRetries": {
            "title": "Max retries per request",
            "minimum": 6,
            "maximum": 20,
            "type": "integer",
            "description": "Each retry uses a new IP. The first 2 tries use datacenter, later ones residential.",
            "default": 8
          },
          "residentialFallback": {
            "title": "Retry blocked requests on residential proxy",
            "type": "boolean",
            "description": "When Instagram blocks a datacenter IP twice for the same page, retry that page on residential proxy. Keeps most traffic cheap while still getting blocked profiles.",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify datacenter proxy is the default and costs least. Requests Instagram blocks are retried on residential automatically (see below).",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}