{
  "openapi": "3.0.1",
  "info": {
    "title": "Instagram Related Profiles: Similar Accounts",
    "description": "Instagram related profiles scraper: find similar and lookalike accounts for any Instagram profile from Instagram's suggested accounts, up to 5 levels deep, with bio, links, followers, posts, engagement and Reels views, plus category and email when shown. No login. For influencer discovery.",
    "version": "0.8",
    "x-build-id": "pt6s656uKEbJ2IhzD"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/deepmine~instagram-related-profiles/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-deepmine-instagram-related-profiles",
        "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/deepmine~instagram-related-profiles/runs": {
      "post": {
        "operationId": "runs-sync-deepmine-instagram-related-profiles",
        "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/deepmine~instagram-related-profiles/run-sync": {
      "post": {
        "operationId": "run-sync-deepmine-instagram-related-profiles",
        "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",
        "required": [
          "usernames"
        ],
        "properties": {
          "usernames": {
            "title": "Instagram profiles",
            "type": "array",
            "description": "Profiles to find similar accounts for, one per line: a username (natgeo), @username or profile URL (https://www.instagram.com/natgeo/). You get the accounts Instagram suggests for each one; several profiles from one niche give more lookalikes. You pay per related profile delivered.",
            "default": [
              "krissycela",
              "lilylifts",
              "lisafiitt",
              "gainsbybrains"
            ],
            "items": {
              "type": "string"
            }
          },
          "maxDepth": {
            "title": "Depth",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "1 = the accounts Instagram suggests for your profiles: the closest lookalikes, up to 50 each. 2 = also the accounts suggested for those: hundreds more per profile, drifting further from your niche (a fitness creator's list can lead to actors and pop stars). Up to 5.",
            "default": 1
          },
          "maxResultsPerProfile": {
            "title": "Max related profiles per profile",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Related profiles per input profile, closest first. You pay per profile, so this caps the cost per input profile. Default 500.",
            "default": 500
          },
          "includeStats": {
            "title": "Include followers and engagement",
            "type": "boolean",
            "description": "Adds each profile's exact follower and post counts, average likes and comments on its latest posts, engagement rate and last post date. Free: no extra charge. Turn off for the fastest runs (username, name and picture only).",
            "default": true
          },
          "includeDetails": {
            "title": "Include bio, links and category",
            "type": "boolean",
            "description": "Adds each profile's full bio, bio links, website, category, account type, contact email (when the bio shows one), following count, linked Facebook page and more. Included in the price; turn it off only for a slightly faster list.",
            "default": true
          },
          "includeLatestPosts": {
            "title": "Include latest posts",
            "type": "boolean",
            "description": "Adds each profile's latest posts (up to 6) with caption, hashtags, likes, comments, time, image, location and coauthors. Free: no extra charge; rows get bigger.",
            "default": false
          },
          "minFollowers": {
            "title": "Min followers",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only profiles with at least this many followers. Free: profiles left out aren't charged."
          },
          "maxFollowers": {
            "title": "Max followers",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only profiles with at most this many followers (e.g. 100000 for micro-influencers). Free: profiles left out aren't charged."
          },
          "minPosts": {
            "title": "Min posts",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only profiles with at least this many posts (skips new or empty accounts). Free: profiles left out aren't charged."
          },
          "maxPosts": {
            "title": "Max posts",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only profiles with at most this many posts. Free: profiles left out aren't charged."
          },
          "minEngagementRate": {
            "title": "Min engagement rate (%)",
            "minimum": 0,
            "type": "number",
            "description": "Keep only profiles whose engagement rate (average likes + comments on the latest posts, over followers) is at least this many percent, e.g. 1.5. Free: profiles left out aren't charged."
          },
          "maxEngagementRate": {
            "title": "Max engagement rate (%)",
            "minimum": 0,
            "type": "number",
            "description": "Keep only profiles whose engagement rate is at most this many percent. Free: profiles left out aren't charged."
          },
          "isVerified": {
            "title": "Verified",
            "enum": [
              "yes",
              "no"
            ],
            "type": "string",
            "description": "yes = only accounts with the blue check, no = only accounts without it, empty = both. Free: profiles left out aren't charged."
          },
          "isPrivate": {
            "title": "Private",
            "enum": [
              "yes",
              "no"
            ],
            "type": "string",
            "description": "no = skip private accounts, yes = only private accounts, empty = both. Free: profiles left out aren't charged."
          },
          "isBusinessAccount": {
            "title": "Business account",
            "enum": [
              "yes",
              "no"
            ],
            "type": "string",
            "description": "yes = only business accounts (brands, shops, organizations), no = only personal and creator accounts, empty = both. Free: profiles left out aren't charged."
          },
          "bioKeywords": {
            "title": "Bio keywords",
            "type": "array",
            "description": "Keep only profiles whose bio, name or category contains any of these words (e.g. coach, founder, nyc). Free: profiles left out aren't charged.",
            "items": {
              "type": "string"
            }
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop after this many related profiles in total. You pay per profile, so this caps the run's cost. Profiles come in the order of your input.",
            "default": 10000
          },
          "includeReels": {
            "title": "Include Reels views",
            "type": "boolean",
            "description": "Adds each profile's latest reels (up to 12) with their views, likes and comments, plus median and average reel views, views over followers and the last reel's date. Included in the price: one more quick datacenter request per profile.",
            "default": true
          },
          "includeContactDetails": {
            "title": "Include business contact details",
            "type": "boolean",
            "description": "Adds a business email (and a phone, when the site lists one) found on the profile's own link-in-bio page, website (and its contact page), or the YouTube channel or TikTok profile they link to, plus the Contact button's type (CALL, EMAIL, TEXT), the business address when the profile shows one, and the story highlight count. Included in the price, but slower (a few seconds more per profile). Instagram hides the Contact button's own phone and email from visitors who aren't logged in, and the Actor never logs in; phones and emails written in the bio are always included.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify Proxy (datacenter) is the default and reads everything, bio and links included. When Instagram refuses a datacenter IP (a private or unknown input profile's page, a retry), the Actor uses a little Apify residential on its own, at no extra cost to you. Picking Residential here works the same way (its country applies to those residential tries).",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}