{
  "openapi": "3.0.1",
  "info": {
    "title": "Instagram Tagged & Mentions Posts Scraper",
    "description": "Instagram Tagged & Mentions Posts Scraper SD - Instagram Tagged & Mentions Posts Scraper is a social media data tool that extracts public Instagram posts and reels that tag, co-author or @mention an account: caption, likes, comments, media, owner and how the account appears.",
    "version": "1.0",
    "x-build-id": "3EItv3eSfF9yuq0hV"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neuro-scraper~instagram-tagged-mentions-posts-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neuro-scraper-instagram-tagged-mentions-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/neuro-scraper~instagram-tagged-mentions-posts-scraper/runs": {
      "post": {
        "operationId": "runs-sync-neuro-scraper-instagram-tagged-mentions-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/neuro-scraper~instagram-tagged-mentions-posts-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-neuro-scraper-instagram-tagged-mentions-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": {
          "usernames": {
            "title": "Instagram usernames",
            "type": "array",
            "description": "Accounts to look up, one per line: a username (natgeo), @natgeo or a profile URL (https://www.instagram.com/natgeo/). The Actor returns public posts by OTHER accounts that tag, co-author or @mention each one.",
            "items": {
              "type": "string"
            }
          },
          "resultsLimit": {
            "title": "Max posts per username",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "How many tagged / mentioning posts to return for each username (the limit is per username: 10 x 2 usernames = up to 20 rows).",
            "default": 10
          },
          "relationTypes": {
            "title": "Relation types",
            "type": "array",
            "description": "Which kinds of posts to keep: posts where the account is tagged in the media, @mentioned in the caption, or a co-author of a collab post.",
            "items": {
              "type": "string",
              "enum": [
                "tagged",
                "mentioned",
                "coauthor"
              ],
              "enumTitles": [
                "Tagged in the photo / video",
                "@mentioned in the caption",
                "Co-author (collab post)"
              ]
            },
            "default": [
              "tagged",
              "mentioned",
              "coauthor"
            ]
          },
          "includeOwnPosts": {
            "title": "Include the account's own posts",
            "type": "boolean",
            "description": "Off: only posts published by other accounts. On: also the account's own posts in which it tags or mentions itself.",
            "default": false
          },
          "downloadVideos": {
            "title": "Download videos",
            "type": "boolean",
            "description": "Store the MP4 of every video post in the run's key-value store; downloadedVideo holds the file link.",
            "default": false
          },
          "maxSearchPages": {
            "title": "Search depth (pages per username)",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many pages of candidate posts to look through for each username (about 10 candidates per page). More pages find more posts but take longer.",
            "default": 3
          },
          "onlyPostsNewerThan": {
            "title": "Only posts newer than",
            "type": "string",
            "description": "Keep only posts published after this date: a date (2026-10-01) or a relative time (7 days, 2 weeks, 3 months). Empty = any date.",
            "default": ""
          },
          "includeComments": {
            "title": "Include comments",
            "type": "boolean",
            "description": "Adds the newest public comments of each post (latestComments, firstComment). Off = no comment columns.",
            "default": true
          },
          "maxCommentsPerPost": {
            "title": "Max comments per post",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "How many of the comments shown with the post are kept in latestComments (the post shows up to about 12-15).",
            "default": 15
          },
          "includeAudio": {
            "title": "Download the audio track",
            "type": "boolean",
            "description": "Also stores the separate audio track of video posts as a file in the run's key-value store (downloadedAudio = its link). The audioUrl column is always filled when the post has one.",
            "default": false
          },
          "maxConcurrency": {
            "title": "Parallel post reads",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many candidate posts are opened at the same time per account. More = a faster run.",
            "default": 4
          },
          "maxItems": {
            "title": "Max posts in total",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Optional cap for the whole run (all usernames together). 0 = no total cap.",
            "default": 0
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Residential proxies are recommended: Instagram limits anonymous visitors per IP address.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}