{
  "openapi": "3.0.1",
  "info": {
    "title": "Instagram Email Scraper - Phone, WhatsApp & Website Contacts",
    "description": "Find emails, phone numbers and WhatsApp for Instagram accounts: reads the bio, bio links, link-in-bio pages (Linktree, Later, Sprout, Stan, lnk.bio) and the account's own website contact pages. Every contact with its source. Related-account discovery, monitor mode. No login.",
    "version": "0.1",
    "x-build-id": "UbEvwrlIbDIwEmjSE"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/topapi~instagram-contact-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-topapi-instagram-contact-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/topapi~instagram-contact-scraper/runs": {
      "post": {
        "operationId": "runs-sync-topapi-instagram-contact-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/topapi~instagram-contact-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-topapi-instagram-contact-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 accounts",
            "type": "array",
            "description": "Accounts to find contacts for, e.g. \"lukeslobster\", \"@nutsdotcom\", \"https://www.instagram.com/jenisicecreams/\". Duplicates are read once; post and reel URLs are skipped.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "📄 Accounts from a file",
            "type": "array",
            "description": "Optional: upload a text/CSV file or link a remote list of usernames or profile URLs (one per line), e.g. an influencer shortlist export. Merged with the list above.",
            "default": [],
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "expandRelatedAccounts": {
            "title": "🧭 Also find related accounts",
            "type": "boolean",
            "description": "Adds the accounts Instagram suggests next to each account in your list (up to ~30-50 each) and finds their contacts too, e.g. 3 bakeries in, ~100 similar bakeries out. Use Max accounts to check to bound it.",
            "default": false
          },
          "requireContact": {
            "title": "📇 Deliver accounts with",
            "enum": [
              "any",
              "email",
              "phone",
              "emailAndPhone",
              "none"
            ],
            "type": "string",
            "description": "Which accounts become records. Accounts that publish none of the chosen contacts are left out of the dataset and listed in the run summary.",
            "default": "any"
          },
          "accountType": {
            "title": "🏷️ Account type",
            "enum": [
              "any",
              "professional",
              "business",
              "creator",
              "personal"
            ],
            "type": "string",
            "description": "Keep only one kind of account, as Instagram classifies it (accountType in the output).",
            "default": "any"
          },
          "minFollowers": {
            "title": "👥 Minimum followers",
            "minimum": 0,
            "maximum": 2000000000,
            "type": "integer",
            "description": "Keep only accounts with at least this many followers, e.g. 1000. 0 = no minimum.",
            "default": 0
          },
          "maxFollowers": {
            "title": "👥 Maximum followers",
            "minimum": 0,
            "maximum": 2000000000,
            "type": "integer",
            "description": "Keep only accounts with at most this many followers, e.g. 50000 for micro-influencers and small businesses. 0 = no maximum.",
            "default": 0
          },
          "excludePrivate": {
            "title": "🔒 Public accounts only",
            "type": "boolean",
            "description": "Leave out private accounts. A private account's bio and bio links are still public, so by default its contacts are read too.",
            "default": false
          },
          "scanDepth": {
            "title": "🕸️ Where to look",
            "enum": [
              "website",
              "linkInBio",
              "profile"
            ],
            "type": "string",
            "description": "The website step reads the account's own site: its homepage and contact / imprint / about pages (mailto, tel, schema.org, footer).",
            "default": "website"
          },
          "maxPagesPerWebsite": {
            "title": "📄 Pages per website",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Most pages read on one website, homepage included, e.g. 4 = homepage + up to 3 contact / imprint / about pages. Reading stops early once an email and a phone are found.",
            "default": 4
          },
          "includeThirdPartyContacts": {
            "title": "🏢 Also scan linked brands' sites",
            "type": "boolean",
            "description": "Also read websites the account links to that are NOT its own (e.g. brands on a creator's Linktree). Their contacts go to thirdPartyEmails / thirdPartyPhones, never into emails / phones.",
            "default": false
          },
          "monitorMode": {
            "title": "🔁 Only new accounts",
            "type": "boolean",
            "description": "Remembers every account read (in the named key-value store below). Accounts seen before are skipped without a request, so a scheduled run over a growing list or related-account discovery returns only new leads.",
            "default": false
          },
          "monitorStoreName": {
            "title": "🗄️ Monitor memory name",
            "pattern": "^[a-zA-Z0-9-]{1,63}$",
            "type": "string",
            "description": "Name of the key-value store that remembers the accounts. Give each list (a client, a campaign) its own name. Letters, digits and hyphens.",
            "default": "instagram-contacts-monitor"
          },
          "recheckAfterDays": {
            "title": "📅 Re-check known accounts after N days",
            "minimum": 0,
            "maximum": 3650,
            "type": "integer",
            "description": "With monitoring on, re-read an account last checked more than N days ago and deliver it again only if its contacts changed (changeType UPDATED), e.g. 30. 0 = never re-check.",
            "default": 0
          },
          "maxResults": {
            "title": "💯 Max records",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Cap on delivered contact records (after your filters). 0 = every account in the list. There is no Instagram-side limit on how many accounts one run can look up.",
            "default": 0
          },
          "maxProfilesToCheck": {
            "title": "🔢 Max accounts to check",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Cap on accounts read, including those that end up with no contact, e.g. 500 with related accounts on. 0 = no cap.",
            "default": 0
          },
          "compact": {
            "title": "🤖 Compact output",
            "type": "boolean",
            "description": "Core fields only (username, name, best email, best phone, emails, phones, WhatsApp, website, followers, category, profile URL): small rows sized for AI agents, MCP clients and CRMs.",
            "default": false
          },
          "includeUnavailable": {
            "title": "🚫 Include unavailable accounts",
            "type": "boolean",
            "description": "Also write a free status row (status unavailable, with the reason: not_found / blocked) for every input that returned no account, so the output lines up with your list.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "🌍 Proxy",
            "type": "object",
            "description": "Used for Instagram (Apify datacenter proxies serve it) and for any website that refuses a direct request; a site that also refuses the datacenter proxy gets one residential attempt. Websites are read directly first.",
            "default": {
              "useApifyProxy": true
            }
          },
          "maxConcurrency": {
            "title": "⚡ Parallel accounts",
            "minimum": 1,
            "maximum": 12,
            "type": "integer",
            "description": "How many accounts are processed at once. 5 is a safe default; raise the run memory before going above 8.",
            "default": 5
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}