{
  "openapi": "3.0.1",
  "info": {
    "title": "Instagram Related Profiles (Similar Accounts)",
    "description": "The accounts Instagram suggests next to any public profile, in its order, with name and verified badge. Add follower counts and bio, filter, or get only new ones. Read signed in through our own account on paid plans: no login or cookies needed. $2.50 per 1,000 profiles.",
    "version": "0.1",
    "x-build-id": "dXjJp1ISFZD63t1yw"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/locaihost~instagram-related-profiles/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-locaihost-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/locaihost~instagram-related-profiles/runs": {
      "post": {
        "operationId": "runs-sync-locaihost-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/locaihost~instagram-related-profiles/run-sync": {
      "post": {
        "operationId": "run-sync-locaihost-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",
        "properties": {
          "usernames": {
            "title": "Usernames or profile links",
            "type": "array",
            "description": "Instagram usernames (natgeo, @natgeo) or profile links (https://www.instagram.com/natgeo/), one per line. Each returns the accounts Instagram suggests next to it, usually 30 to 80.",
            "default": [
              "natgeo"
            ],
            "items": {
              "type": "string"
            }
          },
          "maxRelatedPerProfile": {
            "title": "Related accounts per profile",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Most rows per entered profile, in Instagram's order. Instagram usually suggests 30 to 80.",
            "default": 50
          },
          "enrichRelated": {
            "title": "Add follower counts and bio",
            "type": "boolean",
            "description": "Also reads each related account's own public profile: followers, following, bio, website and bio links. Slower, and charged as an enriched related profile instead of a plain one (never both).",
            "default": false
          },
          "relatedOnlyVerified": {
            "title": "Verified accounts only",
            "type": "boolean",
            "description": "Keep only accounts with the verified badge.",
            "default": false
          },
          "relatedMinFollowers": {
            "title": "Minimum followers",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only accounts with at least this many followers. 0 = no minimum. Setting a follower limit turns on \"Add follower counts and bio\".",
            "default": 0
          },
          "relatedMaxFollowers": {
            "title": "Maximum followers",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only accounts with at most this many followers, for example 100000 to find smaller creators. 0 = no maximum.",
            "default": 0
          },
          "relatedKeywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Keep only accounts whose username, name or bio (bio only with follower counts on) contains one of these words. Not case-sensitive.",
            "items": {
              "type": "string"
            }
          },
          "excludeUsernames": {
            "title": "Skip these accounts",
            "type": "array",
            "description": "Usernames or links that never come back, for example accounts you already know.",
            "items": {
              "type": "string"
            }
          },
          "onlyNew": {
            "title": "Only accounts not returned before",
            "type": "boolean",
            "description": "Skip related accounts this input returned in an earlier run, so a weekly schedule gives only newly suggested accounts. Skipped accounts are not charged.",
            "default": false
          },
          "useOurAccount": {
            "title": "Use our account (paid plans, no cookie needed)",
            "type": "boolean",
            "description": "On a paid Apify plan, the one signed-in request per profile goes through our own Instagram account. It is shared by everyone, so it has a daily limit and serves one run at a time: when it is busy or used up for the day, each profile gets a free row saying so. Your own session cookie below takes priority if you give one.",
            "default": true
          },
          "sessionCookie": {
            "title": "Your Instagram session cookie (optional)",
            "type": "string",
            "description": "The value of the sessionid cookie from your own Instagram account, signed in at instagram.com (see the README for how to copy it). We never store it: it is kept in memory for this run only, sent only to instagram.com, and removed from every log and message."
          },
          "maxResults": {
            "title": "Max rows",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many charged rows in total. 0 means no limit (the run's maximum charge still applies).",
            "default": 0
          },
          "relatedProfiles": {
            "title": "Related profiles",
            "type": "boolean",
            "description": "Set by this listing.",
            "default": true
          },
          "maxPostsPerProfile": {
            "title": "Posts per profile",
            "type": "integer",
            "description": "Set by this listing.",
            "default": 0
          },
          "listing": {
            "title": "Listing",
            "type": "string",
            "description": "Set by this listing.",
            "default": "related"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}