{
  "openapi": "3.0.1",
  "info": {
    "title": "Instagram Related Person Scraper",
    "description": "Instagram Related Person Scraper SD - Instagram Related Person Scraper is a social media data tool that extracts the related and similar accounts Instagram suggests for any public profile: username, name, verified, private, followers, bio, category and links.",
    "version": "1.0",
    "x-build-id": "Mnd4CvcJGg5OfpDSx"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neuro-scraper~instagram-related-person-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neuro-scraper-instagram-related-person-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-related-person-scraper/runs": {
      "post": {
        "operationId": "runs-sync-neuro-scraper-instagram-related-person-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-related-person-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-neuro-scraper-instagram-related-person-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": "Seed accounts, one per line: a username (nasa), @nasa or a profile URL (https://www.instagram.com/nasa/). The Actor returns the accounts Instagram relates to each one.",
            "items": {
              "type": "string"
            }
          },
          "maxRelatedPerProfile": {
            "title": "Max related accounts per username",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "How many related accounts to return for each seed (the limit is per seed: 20 x 2 seeds = up to 40 rows). Instagram's list holds up to about 50 accounts per profile.",
            "default": 20
          },
          "includeProfileDetails": {
            "title": "Include profile details",
            "type": "boolean",
            "description": "Read every related account's profile: followers, following, biography, external URL, business category and account type (one profile read per row). Switch off for a fast list of usernames only.",
            "default": true
          },
          "includePostStats": {
            "title": "Include post statistics",
            "type": "boolean",
            "description": "Off by default (cost): open up to postsToAnalyze newest posts of every related account (one extra read per post) for average likes and comments, median engagement rate, posts per month, posts in the last 30 days, days since the last post and reel, the tagged place and the latest posts. Measured 2026-11-22: 24 rows cost $0.031 without it; each analysed post adds about 50 KB of traffic per account.",
            "default": false
          },
          "postsToAnalyze": {
            "title": "Posts per account for statistics",
            "minimum": 1,
            "maximum": 12,
            "type": "integer",
            "description": "Only used when includePostStats is on: how many of each related account's newest posts are opened (one extra page each; more = steadier numbers, higher cost).",
            "default": 3
          },
          "minFollowers": {
            "title": "Minimum followers",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only related accounts with at least this many followers (0 = no limit). Turns on profile details.",
            "default": 0
          },
          "maxFollowers": {
            "title": "Maximum followers",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only related accounts with at most this many followers, e.g. 50000 for micro-influencers (0 = no limit). Turns on profile details.",
            "default": 0
          },
          "verifiedOnly": {
            "title": "Verified accounts only",
            "type": "boolean",
            "description": "Keep only accounts with the blue badge.",
            "default": false
          },
          "excludePrivate": {
            "title": "Skip private accounts",
            "type": "boolean",
            "description": "Leave out private accounts.",
            "default": false
          },
          "minSeedOverlap": {
            "title": "Minimum shared seeds",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "With several seeds: keep only accounts that Instagram relates to at least this many of them (e.g. 2 = accounts similar to two of your seeds). 1 = no overlap filter.",
            "default": 1
          },
          "depth": {
            "title": "Discovery depth",
            "minimum": 1,
            "maximum": 2,
            "type": "integer",
            "description": "1 = related accounts of your seeds. 2 = also the related accounts of those accounts (snowball discovery; much bigger runs).",
            "default": 1
          },
          "scrapeFacebookProfile": {
            "title": "Extract Facebook link from the bio",
            "type": "boolean",
            "description": "Add a facebookUrl column with the Facebook page linked in the account's bio or bio links (needs profile details).",
            "default": false
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Keep related accounts whose bio / name (see Keyword location) contains any of these words.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "keywordLocation": {
            "title": "Keyword location",
            "enum": [
              "bio_or_name",
              "bio",
              "name",
              "posts",
              "all"
            ],
            "type": "string",
            "description": "Where Keywords and Exclude keywords are looked for.",
            "default": "bio_or_name"
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "type": "array",
            "description": "Leave out accounts that contain any of these words.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "locationKeywords": {
            "title": "Location keywords",
            "type": "array",
            "description": "Keep accounts whose tagged post location or bio contains any of these words.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "profileLanguage": {
            "title": "Profile language",
            "enum": [
              "any",
              "English",
              "Spanish",
              "German",
              "French",
              "Russian",
              "Italian",
              "Portuguese",
              "Chinese",
              "Japanese",
              "Arabic",
              "Korean",
              "Turkish",
              "Hindi",
              "Dutch",
              "Polish",
              "Indonesian"
            ],
            "type": "string",
            "description": "Keep accounts whose bio and captions are in this language (detected).",
            "default": "any"
          },
          "minEngagementRate": {
            "title": "Minimum engagement rate (%)",
            "minimum": 0,
            "type": "number",
            "description": "Keep accounts whose median engagement rate (likes + comments per follower, %) is at least this.",
            "default": 0
          },
          "lastPostDays": {
            "title": "Posted within (days)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep accounts whose newest post is at most this many days old. 0 = off.",
            "default": 0
          },
          "lastReelDays": {
            "title": "Reel within (days)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep accounts whose newest reel is at most this many days old. 0 = off.",
            "default": 0
          },
          "minPostsInPeriod": {
            "title": "Minimum posts in the period",
            "minimum": 0,
            "type": "integer",
            "description": "Keep accounts with at least this many posts in the check period.",
            "default": 0
          },
          "postsCheckPeriodDays": {
            "title": "Check period (days)",
            "enum": [
              "7",
              "14",
              "30"
            ],
            "type": "string",
            "description": "The period for Minimum posts in the period.",
            "default": "30"
          },
          "hasWebsite": {
            "title": "Only accounts with a website",
            "type": "boolean",
            "description": "Keep accounts with a website link in the bio.",
            "default": false
          },
          "accountType": {
            "title": "Account type",
            "enum": [
              "any",
              "professional",
              "business",
              "creator",
              "personal"
            ],
            "type": "string",
            "description": "Keep only this kind of account.",
            "default": "any"
          },
          "onlyBusiness": {
            "title": "Only business accounts",
            "type": "boolean",
            "description": "Same as Account type = business.",
            "default": false
          },
          "filterForInfluencers": {
            "title": "Only influencer accounts",
            "type": "boolean",
            "description": "Keep business / creator accounts with at least 10,000 followers.",
            "default": false
          },
          "categoryFilter": {
            "title": "Category contains",
            "type": "string",
            "description": "Keep accounts whose category contains this text (Artist, Restaurant ...). any = off.",
            "default": "any"
          },
          "filterCombination": {
            "title": "Keywords + category",
            "enum": [
              "AND",
              "OR"
            ],
            "type": "string",
            "description": "AND: both Keywords and Category must match; OR: either.",
            "default": "AND"
          },
          "isPrivate": {
            "title": "Private accounts",
            "enum": [
              "",
              "yes",
              "no"
            ],
            "type": "string",
            "description": "Keep any, only private or only public accounts.",
            "default": ""
          },
          "skipDelivered": {
            "title": "Skip accounts delivered before",
            "enum": [
              "off",
              "7",
              "30",
              "90",
              "all"
            ],
            "type": "string",
            "description": "Remembers the accounts each run delivers and leaves them out of later runs.",
            "default": "off"
          },
          "exportGraph": {
            "title": "Save the relation graph",
            "type": "boolean",
            "description": "Also saves a GRAPH record (nodes and source -> related edges) in the key-value store.",
            "default": false
          },
          "maxBudgetUsd": {
            "title": "Maximum budget (USD)",
            "minimum": 0,
            "type": "number",
            "description": "Optional: stop after the rows this budget pays for at the Free-plan price ($1.49 per 1,000 rows)."
          },
          "maxItems": {
            "title": "Max rows in total",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Optional cap for the whole run (all seeds 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}