{
  "openapi": "3.0.1",
  "info": {
    "title": "Instagram Profile & Posts Scraper",
    "description": "Scrape posts and profile details from any Instagram profile: captions, hashtags, likes, comments, video plays, image and video URLs, tagged users and more. No login or cookies needed. Export to JSON, CSV or Excel, or use via API. Pay only for results.",
    "version": "0.0",
    "x-build-id": "CFv7qM8gxtBimn3RI"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/arisma_tech~instagram-profile-posts-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-arisma_tech-instagram-profile-posts-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/arisma_tech~instagram-profile-posts-scraper/runs": {
      "post": {
        "operationId": "runs-sync-arisma_tech-instagram-profile-posts-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/arisma_tech~instagram-profile-posts-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-arisma_tech-instagram-profile-posts-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": {
          "directUrls": {
            "title": "Instagram profile URLs or usernames",
            "type": "array",
            "description": "Profiles to scrape. Accepts profile URLs (<code>https://www.instagram.com/nasa/</code>), usernames (<code>nasa</code>, <code>@nasa</code>) and share links (<code>nasa?igsh=...</code>).",
            "items": {
              "type": "string"
            }
          },
          "usernames": {
            "title": "Usernames (profile details)",
            "type": "array",
            "description": "Same as above, in the input format of Apify's Instagram Profile Scraper. Sent together with <code>includeAboutSection</code> and without <code>directUrls</code>, it returns profile details only.",
            "items": {
              "type": "string"
            }
          },
          "resultsType": {
            "title": "What to scrape",
            "enum": [
              "posts",
              "details"
            ],
            "type": "string",
            "description": "<code>posts</code>: the posts of each profile. <code>details</code>: one item per profile with its details and 12 latest posts. Empty means posts, unless the input looks like an Instagram Profile Scraper input."
          },
          "onlyPostsNewerThan": {
            "title": "Only posts newer than",
            "type": "string",
            "description": "Only scrape posts published after this date. Absolute (<code>2025-01-31</code>) or relative (<code>7 days</code>, <code>2 weeks</code>, <code>3 months</code>). Old pinned posts are skipped."
          },
          "resultsLimit": {
            "title": "Max posts per profile",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Maximum number of posts per profile. Default 50, or 1,000 when <b>Only posts newer than</b> is set. You pay per post, so keep this as low as you need."
          },
          "skipPinnedPosts": {
            "title": "Skip pinned posts",
            "type": "boolean",
            "description": "Ignore posts pinned to the top of the profile (they are often old).",
            "default": false
          },
          "addParentData": {
            "title": "Add profile details to each post",
            "type": "boolean",
            "description": "Attach the owner's profile details (followers, posts count, bio, links, ...) to every post under <code>metaData</code>."
          },
          "searchType": {
            "title": "Search type",
            "enum": [
              "user"
            ],
            "type": "string",
            "description": "Only <code>user</code> (profiles) is supported. Accepted for compatibility with Apify's Instagram Scraper."
          },
          "includeAboutSection": {
            "title": "Include about section",
            "type": "boolean",
            "description": "Accepted for compatibility with Apify's Instagram Profile Scraper. The about section (join date, country) needs a login, so it is not scraped."
          },
          "outputFormat": {
            "title": "Output format",
            "enum": [
              "auto",
              "default",
              "apify"
            ],
            "type": "string",
            "description": "<code>auto</code> uses the Apify Instagram Scraper format whenever the input uses its fields (<code>directUrls</code>, <code>resultsType</code>, <code>addParentData</code>, ...). <code>default</code> uses this Actor's own field names.",
            "default": "auto"
          },
          "proxy": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify residential proxy by default; its traffic is charged at cost, $0.008 per MB (billed per 100 KB). To avoid that charge, select <b>Own proxies</b> and enter your proxy URLs, e.g. <code>http://user:password@proxy.example.com:8000</code>. Instagram blocks datacenter IPs quickly, so use residential or mobile proxies.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}