{
  "openapi": "3.0.1",
  "info": {
    "title": "Instagram Email Scraper: Phone, WhatsApp, Business Contacts",
    "description": "Instagram email and phone scraper for business and creator profiles: public emails, phones with country code and WhatsApp from the bio, link in bio page and website, plus category, address, city, followers and bio. Usernames or links. No login.",
    "version": "0.1",
    "x-build-id": "NCz4nFvYEcnamgUfi"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/themineworks~instagram-email-phone-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-themineworks-instagram-email-phone-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/themineworks~instagram-email-phone-scraper/runs": {
      "post": {
        "operationId": "runs-sync-themineworks-instagram-email-phone-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/themineworks~instagram-email-phone-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-themineworks-instagram-email-phone-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 or profile links",
            "type": "array",
            "description": "One per line: a username (nike), an @handle (@nike) or a profile link (https://www.instagram.com/nike/, with or without https, www or ?igsh=...). Post and reel links are not profiles and get a free error row. Up to 5,000 per run; one per run is fine for Clay, n8n or an AI agent. A profile given twice is read and charged once.",
            "items": {
              "type": "string"
            }
          },
          "scanLinkInBio": {
            "title": "Read the link in bio and the website",
            "type": "boolean",
            "description": "On (default): the actor opens the profile's bio links. Link in bio pages (Linktree, Stan, Komi, Taplink, bio.link and others) give their email buttons, phone and WhatsApp links; the business's own website (the domain carries the name or handle) gives its addresses and phone numbers, plus one contact page when the home page has none. Off: only the bio and the bio links themselves are read, which is faster. Same price either way.",
            "default": true
          },
          "maxLinkedPagesPerProfile": {
            "title": "Linked pages per profile",
            "minimum": 1,
            "maximum": 6,
            "type": "integer",
            "description": "The most pages opened for one profile (link in bio page, website, contact page), 1 to 6.",
            "default": 3
          },
          "useInstagramAppEndpoint": {
            "title": "Business details from Instagram's app endpoint",
            "type": "boolean",
            "description": "On (default): for each profile with a public contact, the actor also reads Instagram's mobile app profile endpoint (i.instagram.com, the one the Instagram app calls, read logged out through residential proxy) for the business block: business or creator account, category, the contact button type, street address, city, zip and coordinates. Instagram answers it on some proxy IPs and not others, so the business block is filled for part of the profiles in a run (see the README). Off: only the public web profile is read; contacts are the same, the business fields stay empty. Same price either way.",
            "default": true
          },
          "defaultPhoneCountry": {
            "title": "Country for local phone numbers",
            "type": "string",
            "description": "Two letter country code used to read phone numbers written without a + country code, such as (305) 674 1234. The country of another + number on the same profile and the website's country domain (.co.uk, .de) are tried first. Example: US, GB, IN, MX, BR. Numbers that are not valid for any of them keep their written form with no country code.",
            "default": "US"
          },
          "onlyWithContact": {
            "title": "Only profiles with a contact",
            "type": "boolean",
            "description": "Off (default): a profile with no public email, phone or WhatsApp number still gets a short flagged row (status no_public_contact, has_contact false), never charged, so a pipeline knows it was read. On: those profiles are left out of the dataset.",
            "default": false
          },
          "maxConcurrency": {
            "title": "Profiles read at the same time",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "1 to 10. The default suits nearly every run.",
            "default": 5
          },
          "proxyConfiguration": {
            "title": "Proxy for the web profile and linked pages",
            "type": "object",
            "description": "Apify Proxy (datacenter) is used by default and is included. The app endpoint always uses Apify residential proxy, also included.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}