{
  "openapi": "3.0.1",
  "info": {
    "title": "Instagram Reposts Scraper - Reposts Tab, Original Author",
    "description": "Read the Reposts tab of public Instagram profiles: original author, caption, plays, likes, shares and how many accounts reposted it. No login. Works with Apify MCP and the API.",
    "version": "0.1",
    "x-build-id": "g9jTpge2C3GfSvznm"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/khadinakbar~instagram-reposts-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-khadinakbar-instagram-reposts-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/khadinakbar~instagram-reposts-scraper/runs": {
      "post": {
        "operationId": "runs-sync-khadinakbar-instagram-reposts-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/khadinakbar~instagram-reposts-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-khadinakbar-instagram-reposts-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": {
          "mode": {
            "title": "What to read",
            "enum": [
              "reposts",
              "collabs-and-credits"
            ],
            "type": "string",
            "description": "reposts (default) reads the Reposts tab of each profile: the posts that account reshared, with the original author. collabs-and-credits is the older view: the account's own posts that list a collab partner or credit another account in the caption. NOT a hashtag or search mode.",
            "default": "reposts"
          },
          "usernames": {
            "title": "Instagram usernames or profile URLs",
            "maxItems": 100,
            "type": "array",
            "description": "Public Instagram usernames whose Reposts tab should be read. Accepts handles (e.g. \"natgeo\"), @handles or profile URLs. Up to 100. Leave empty if you only pass userIds. NOT a post, reel or hashtag URL.",
            "items": {
              "type": "string"
            }
          },
          "userIds": {
            "title": "Numeric Instagram user ids (optional)",
            "maxItems": 200,
            "type": "array",
            "description": "Numeric Instagram user ids such as 787132. Use them when you already have ids; this skips the username lookup. Optional. NOT usernames.",
            "items": {
              "type": "string"
            }
          },
          "maxRepostsPerProfile": {
            "title": "Max reposts per profile",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Upper bound on reposts saved per profile in the default mode. Accepts 1-1000; defaults to 50. Each page holds 12 reposts. The free plan reads at most 10 per profile. NOT a global spend guard; use maxTotalItems for that.",
            "default": 50
          },
          "maxTotalItems": {
            "title": "Max total rows per run",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Hard global cap on saved rows across all profiles; the run stops gracefully when reached. Accepts 1-100000; defaults to 500. Works as a spend guard together with the per-row price. NOT a per-profile limit.",
            "default": 500
          },
          "includeRawData": {
            "title": "Include raw response payload",
            "type": "boolean",
            "description": "When true, each reposts-mode row also carries the full unprocessed post object under \"raw\". Defaults to false because raw objects are about 40 KB each. NOT needed for normal use; every useful field is already extracted.",
            "default": false
          },
          "postUrls": {
            "title": "Direct post or reel URLs (older view only)",
            "maxItems": 200,
            "type": "array",
            "description": "Used only when mode is collabs-and-credits: direct post or reel URLs to check for collab partners and caption credits. Ignored in the default reposts mode. NOT a profile or hashtag URL.",
            "items": {
              "type": "string"
            }
          },
          "maxPostsPerProfile": {
            "title": "Max saved posts per profile (older view only)",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Used only when mode is collabs-and-credits: upper bound on matching rows saved per username. Accepts 1-100; defaults to 12. NOT used in the default reposts mode (use maxRepostsPerProfile).",
            "default": 12
          },
          "includeNonReposts": {
            "title": "Include original posts",
            "type": "boolean",
            "description": "Used only when mode is collabs-and-credits: when true every inspected post is saved and billed with isRepost marked. Defaults to false. NOT used in the default reposts mode.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}