{
  "openapi": "3.0.1",
  "info": {
    "title": "Instagram User Search",
    "description": "Instagram user search by keyword and location: accounts for any niche, job or business type with bio, followers, posts, category, email, website, business and verified flags; follower and email filters. $1.19 per 1,000 accounts on Starter, 8x cheaper than the most-used user search. No login.",
    "version": "0.1",
    "x-build-id": "hV4WhkgDCKyzyBeSk"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/deepmine~instagram-user-search/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-deepmine-instagram-user-search",
        "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-user-search/runs": {
      "post": {
        "operationId": "runs-sync-deepmine-instagram-user-search",
        "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-user-search/run-sync": {
      "post": {
        "operationId": "run-sync-deepmine-instagram-user-search",
        "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": [
          "keywords"
        ],
        "properties": {
          "keywords": {
            "title": "Keywords",
            "minItems": 1,
            "type": "array",
            "description": "What the accounts are about, one per line: a niche, a job, a business type (fitness coach, nail salon, travel photographer). Each keyword is one search.",
            "items": {
              "type": "string",
              "pattern": "\\S"
            }
          },
          "locations": {
            "title": "Locations (optional)",
            "type": "array",
            "description": "Cities or countries to search in (Miami, London). Every keyword is searched once per location. Leave empty to search without a place.",
            "items": {
              "type": "string",
              "pattern": "\\S"
            }
          },
          "maxResults": {
            "title": "Max accounts per search",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "The most accounts one keyword (and location) returns. Google names about 45 accounts a query, so a search past that goes on with more query shapes until it has enough or Google runs out (often a few hundred); the run says when a search came up short. Each account is charged once per run, even when several searches find it.",
            "default": 50
          },
          "minFollowers": {
            "title": "Min followers",
            "minimum": 0,
            "type": "integer",
            "description": "Leave out accounts with fewer followers. Left-out accounts aren't charged."
          },
          "maxFollowers": {
            "title": "Max followers",
            "minimum": 0,
            "type": "integer",
            "description": "Leave out accounts with more followers (e.g. 100000 for micro-influencers). Left-out accounts aren't charged."
          },
          "onlyWithEmail": {
            "title": "Only accounts with an email",
            "type": "boolean",
            "description": "Return only accounts whose profile, link page or website shows an email. Accounts without one aren't charged.",
            "default": false
          },
          "verifiedOnly": {
            "title": "Verified accounts only",
            "type": "boolean",
            "description": "Return only accounts with Instagram's verified badge. Left-out accounts aren't charged.",
            "default": false
          },
          "accountType": {
            "title": "Account type",
            "enum": [
              "any",
              "business",
              "creator"
            ],
            "type": "string",
            "description": "Business: Instagram business accounts (shops, salons, brands). Creator: Instagram creator accounts (influencers, coaches, artists). Left-out accounts aren't charged.",
            "default": "any"
          },
          "includeLatestPosts": {
            "title": "Latest posts",
            "type": "boolean",
            "description": "Add each account's 6 latest posts from its profile card (captions, likes, comments, dates).",
            "default": true
          },
          "includeLatestPostsAndRecord": {
            "title": "Include 12 latest posts, story status and related profiles",
            "type": "boolean",
            "description": "Adds each account's 12 latest posts in the shape of Apify's Instagram Profile Scraper (captions, likes, comments, tagged users, music, carousel items, video URLs and reel plays). A video gets its views when its public embed shows them: not when the owner hides like and view counts or turns off embedding. Also adds whether a story is up and when, and the accounts Instagram lists as related, when it lists them. IGTV and highlight counts aren't available without a login. Add-on price: $0.49 per 1,000 accounts on the Starter plan ($0.59 Free, $0.42 Scale, $0.35 Business), on top of the row price, charged once per row that carries these extras. Off: only the row price. Each account takes about 20 more page reads, so runs take longer (a 50-account run: 79 s instead of 50 s). Off: the 6 latest posts above.",
            "default": false
          },
          "includeReels": {
            "title": "Reels stats",
            "type": "boolean",
            "description": "Add each account's reel counts and views.",
            "default": true
          },
          "includeContactDetails": {
            "title": "Contact details",
            "type": "boolean",
            "description": "Look for each account's public email and phone (profile, link page, website).",
            "default": true
          },
          "includeCompatibilityKeys": {
            "title": "Include Apify Profile Scraper key names",
            "type": "boolean",
            "description": "Adds the key names Apify's Instagram Profile Scraper uses (url, private, verified, externalUrls, externalUrlShimmed, facebookPage, threadsNetProfile) next to ours, so code written for its rows works unchanged.",
            "default": true
          },
          "countryCode": {
            "title": "Google country",
            "type": "string",
            "description": "Two-letter country Google searches from (us, gb, de...).",
            "default": "us"
          },
          "languageCode": {
            "title": "Google language",
            "type": "string",
            "description": "Two-letter language of Google's results (en, es, de...).",
            "default": "en"
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify Proxy is used by default. Google is always searched from Apify's datacenter proxies.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}