{
  "openapi": "3.0.1",
  "info": {
    "title": "Instagram Media Downloader: Video, Reels & Photos, No Login",
    "description": "Download Instagram videos, reels, photos and carousels as files, no login: each item saved with a lasting link, the best video (1080p+) merged with its sound, original photos. One row per item: type, frame, duration, bytes, sha256, carousel place, CDN link expiry, caption, owner. Misses free.",
    "version": "0.1",
    "x-build-id": "auZMmxTezYwluJN5z"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/hyperbach~instagram-media-downloader/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-hyperbach-instagram-media-downloader",
        "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/hyperbach~instagram-media-downloader/runs": {
      "post": {
        "operationId": "runs-sync-hyperbach-instagram-media-downloader",
        "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/hyperbach~instagram-media-downloader/run-sync": {
      "post": {
        "operationId": "run-sync-hyperbach-instagram-media-downloader",
        "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": {
          "postUrls": {
            "title": "Post, reel or carousel links",
            "maxItems": 5000,
            "type": "array",
            "description": "One per line: a post, reel or carousel link (instagram.com/p/…, /reel/…, /tv/…, a share link instagram.com/share/…), a bare shortcode such as Dfc1mYxFevS, or a media id (123… or 123…_456…). Every item of a carousel is its own row. A profile link here is read as a profile.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "profiles": {
            "title": "Public profiles (newest posts)",
            "maxItems": 500,
            "type": "array",
            "description": "Usernames (natgeo, @natgeo) or profile links. The newest posts of each public profile are read, up to 'Posts per profile'. A profile's reels tab link (instagram.com/natgeo/reels/) reads its videos only. A private or missing profile is a free row that says so.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxPostsPerProfile": {
            "title": "Posts per profile",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "The newest posts read from each profile (a carousel's items each count as one row). Profiles only.",
            "default": 12
          },
          "contentType": {
            "title": "Profile posts to read",
            "enum": [
              "all",
              "videos",
              "photos",
              "carousels"
            ],
            "type": "string",
            "description": "Which of a profile's posts are read. Profiles only; a pasted link is always read.",
            "default": "all"
          },
          "newerThan": {
            "title": "Posted after",
            "type": "string",
            "description": "Profiles only: read posts published on or after this date (YYYY-MM-DD) or this span back from now (7 days, 2 weeks, 3 months). Empty: no lower date.",
            "default": ""
          },
          "olderThan": {
            "title": "Posted before",
            "type": "string",
            "description": "Profiles only: read posts published on or before this date (YYYY-MM-DD) or this span back from now. Empty: no upper date.",
            "default": ""
          },
          "saveFiles": {
            "title": "Save the files",
            "type": "boolean",
            "description": "On: each photo, video (with its cover) or sound track is saved in the run's storage, and the row carries a link to it that does not expire with Instagram's CDN link. Off: links only (Instagram's CDN links expire, each row says when).",
            "default": true
          },
          "videoQuality": {
            "title": "Video quality",
            "enum": [
              "best",
              "720p"
            ],
            "type": "string",
            "description": "best: the highest-resolution track Instagram has (1080p on most reels, 1440p on some), merged with its sound. 720p: Instagram's ready-made 720p mp4.",
            "default": "best"
          },
          "audioOnly": {
            "title": "Sound only",
            "type": "boolean",
            "description": "Save each video's sound track only (an m4a file), no video. Photos and silent videos get a free row that says so.",
            "default": false
          },
          "saveAudio": {
            "title": "Also save the sound track",
            "type": "boolean",
            "description": "Beside each video, also save its sound track as an m4a file.",
            "default": false
          },
          "maxFileSizeMb": {
            "title": "Largest file (MB)",
            "minimum": 1,
            "maximum": 25,
            "type": "integer",
            "description": "No kept file is larger (25 MB at most): a video whose best file would be is saved as its 720p mp4 when that fits; a photo or a 720p mp4 over it is a free row with the links only. Lower it for a tool with a smaller limit.",
            "default": 25
          },
          "includePlays": {
            "title": "Add the reels' play counts",
            "type": "boolean",
            "description": "Read the owner's reels list for each reel's play count (one more call per 12 reels; a pasted reel older than its owner's 60 newest reels gets none, the row says so).",
            "default": false
          },
          "maxItems": {
            "title": "Max media items (whole run)",
            "minimum": 0,
            "maximum": 10000000,
            "type": "integer",
            "description": "The most charged rows of the whole run; 0 = no cap beyond your charge limit. No file is read past it.",
            "default": 0
          },
          "feedback": {
            "title": "Feedback to the maintainers",
            "maxLength": 2000,
            "type": "string",
            "description": "A note to the people who maintain this Actor: what you needed and did not get. For example a missing field, a wrong or empty result, or the Actor you switch from or to, and why. The run does not read it: the rows and the charges stay the same. A person reads every note."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}