{
  "openapi": "3.0.1",
  "info": {
    "title": "Instagram Email & Phone Scraper · Keyword, Hashtag & Linktree",
    "description": "Instagram email and phone scraper: type a keyword or #hashtag, or paste handles. It finds the profiles, then reads the contact button, bio and link in bio, expands Linktree pages and scans the sites behind them for email, phone and WhatsApp. No login. $2/1k profiles + $5/1k contacts.",
    "version": "1.0",
    "x-build-id": "0yCiK692iHOeJftX9"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/memo23~instagram-email-phone-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-memo23-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/memo23~instagram-email-phone-scraper/runs": {
      "post": {
        "operationId": "runs-sync-memo23-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/memo23~instagram-email-phone-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-memo23-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 URLs",
            "type": "array",
            "description": "One entry per profile. A bare username, an @handle, or a full profile URL all work — https://www.instagram.com/nasa/, @nasa and nasa are the same input. Optional when searchTerms, searchHashtags, similarToUsernames, or datasetId is set.",
            "items": {
              "type": "string"
            }
          },
          "searchTerms": {
            "title": "Find profiles by keyword or #hashtag",
            "type": "array",
            "description": "Optional. Use this when you have no handles yet. A keyword (e.g. bakery london, wedding photographer miami) searches Instagram account names and bios. A term starting with # (e.g. #veganbakery) takes the accounts behind that hashtag's top posts. Every profile found is scanned for contacts exactly like a handle in usernames, and its row names the term that found it in searchTerm. Short keywords find more accounts than long phrases. Combines with usernames; a profile found twice is scanned once.",
            "items": {
              "type": "string"
            }
          },
          "searchHashtags": {
            "title": "Find creators posting under #hashtags",
            "type": "array",
            "description": "Optional dedicated hashtag discovery (with or without a leading # — e.g. veganbakery or #fitnesscoach). Collects creator accounts behind each hashtag's top posts and scans every unique profile for contacts.",
            "items": {
              "type": "string"
            }
          },
          "similarToUsernames": {
            "title": "Find similar / related profiles to seed accounts",
            "type": "array",
            "description": "Optional. Give one or more seed usernames, @handles, or profile URLs (e.g. gymshark, @alo). Discovers related creator and business accounts from Instagram's Suggested-for-you and related-business graphs, then scans each discovered profile for contacts (tagged as similar:@seed in searchTerm).",
            "items": {
              "type": "string"
            }
          },
          "expandRelatedProfiles": {
            "title": "Also expand related profiles from input usernames",
            "type": "boolean",
            "description": "Off by default. When enabled, also discovers related/similar creator and business accounts for every handle provided in usernames or datasetId and scans them for contacts.",
            "default": false
          },
          "maxSimilarPerSeed": {
            "title": "Related profiles per seed account",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Most related/similar profiles added per seed account from similarToUsernames or expandRelatedProfiles (1 to 100, default 25).",
            "default": 25
          },
          "datasetId": {
            "title": "Read profiles from an Apify Dataset ID",
            "type": "string",
            "description": "Optional pipeline input. Reads username, handle, ownerUsername, or profileUrl fields from an existing Apify dataset and scans each unique Instagram profile for contacts."
          },
          "apiToken": {
            "title": "Apify API Token (Optional)",
            "type": "string",
            "description": "Optional Apify personal API token if reading from a private dataset in your account that requires authentication."
          },
          "maxProfilesPerSearch": {
            "title": "Profiles per keyword or hashtag",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Most profiles each search term or hashtag may add to the run, from 1 to 1000. Default 50. A long list of cities at a high number will not finish in one hour: leave this at 50, or run one city (or a few) at a time. Instagram search runs out on its own for narrow terms, so a term can return fewer. Each profile scanned is billed as a profile; use onlyWithContact or pre-billing lead filters to pay only for qualifying leads.",
            "default": 50
          },
          "maxCount": {
            "title": "Maximum qualifying profiles to deliver",
            "minimum": 0,
            "type": "integer",
            "description": "Optional global cap on how many qualifying profiles to deliver in this run. Once reached, discovery and workers stop immediately. Empty or 0: unlimited."
          },
          "scrapeLinkInBio": {
            "title": "Scan the link in bio for contacts",
            "type": "boolean",
            "description": "On by default. Follows the profile's external link, expands link aggregators such as Linktree or Taplink into the sites behind them, and reads those sites' contact pages. This is where most phone numbers and role addresses come from — turn it off for profile fields only, which is faster and cheaper.",
            "default": true
          },
          "maxChildLinks": {
            "title": "Links to follow from an aggregator page",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many outbound links to open when the bio link is a Linktree-style page. One site per host, in page order. Higher values find more contacts on profiles that list several businesses, and cost more time per profile.",
            "default": 3
          },
          "includeThirdPartyContacts": {
            "title": "Also scan brands the profile links to",
            "type": "boolean",
            "description": "Off by default. A Linktree page often links affiliate brands, stockists and ticket sellers as well as the business's own site. Left off, only links whose domain matches the profile are scanned. Turned on, the others are scanned too and their contacts are returned in thirdPartyEmails / thirdPartyPhones — never mixed into the main fields, because mailing them reaches the wrong company. Paid Apify plans only.",
            "default": false
          },
          "searchContactsInPosts": {
            "title": "Also scan recent post captions for contacts",
            "type": "boolean",
            "description": "Off by default. Fetches up to 9 recent non-pinned posts for each profile that passes profile filters and extracts emails, phone numbers, and WhatsApp links mentioned in captions (labeled post_caption in emailSources). Paid Apify plans only.",
            "default": false
          },
          "onlyWithContact": {
            "title": "Only return profiles with a contact",
            "type": "boolean",
            "description": "Off by default. Turned on, a profile where no email, phone or WhatsApp number was found is left out of the dataset and not charged at all. Third-party contacts do not count. Profiles that cannot be read still return an error row, which is never charged.",
            "default": false
          },
          "contactType": {
            "title": "Contact to require",
            "enum": [
              "any",
              "email",
              "phone",
              "both"
            ],
            "type": "string",
            "description": "Which kind of contact a profile must have to be delivered. Any (default): an email, a phone or a WhatsApp number, and only when \"Only return profiles with a contact\" is on. Email only, Phone or WhatsApp only, or Both: profiles missing that contact are left out and not charged, whether or not \"Only return profiles with a contact\" is on.",
            "default": "any"
          },
          "minFollowers": {
            "title": "Minimum followers",
            "minimum": 0,
            "type": "integer",
            "description": "Only profiles with at least this many followers, e.g. `5000` for micro-influencers and up. Checked as soon as the profile is read, so a profile outside the range costs nothing and its link is not opened. Empty or 0: no minimum."
          },
          "maxFollowers": {
            "title": "Maximum followers",
            "minimum": 0,
            "type": "integer",
            "description": "Only profiles with at most this many followers, e.g. `100000`. With a minimum or maximum set, a profile whose follower count Instagram does not show is left out. Empty or 0: no maximum."
          },
          "accountType": {
            "title": "Account type",
            "enum": [
              "any",
              "professional",
              "business",
              "creator"
            ],
            "type": "string",
            "description": "Filter by Instagram account type before crawling bio links or billing. Professional keeps both Business and Creator accounts (dropping personal accounts).",
            "default": "any"
          },
          "categoryFilter": {
            "title": "Business / creator categories to include",
            "type": "array",
            "description": "Optional. Only keep profiles whose Instagram category contains at least one of these terms (case-insensitive, e.g. Fitness, Coach, Restaurant). Checked before bio-link crawling and billing.",
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "Required keywords (bio, name, or category)",
            "type": "array",
            "description": "Optional. Only keep profiles whose biography, display name, or category contains at least one of these whole words/phrases (case-insensitive). Checked before bio-link crawling and billing.",
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Excluded keywords (bio, name, or category)",
            "type": "array",
            "description": "Optional. Skip profiles whose biography, display name, or category contains any of these whole words/phrases (case-insensitive, e.g. fanpage, parody, bot). Checked before bio-link crawling and billing.",
            "items": {
              "type": "string"
            }
          },
          "locationKeywords": {
            "title": "Location keywords (bio, city, address, or country)",
            "type": "array",
            "description": "Optional. Only keep profiles whose biography, display name, Instagram business city/street address, or account country matches at least one of these whole words/phrases (e.g. London, Miami, Germany). Checked before bio-link crawling and billing.",
            "items": {
              "type": "string"
            }
          },
          "hasWebsite": {
            "title": "Only profiles with a website / link in bio",
            "type": "boolean",
            "description": "Off by default. Skip profiles that have no external URL or bio links before crawling or billing.",
            "default": false
          },
          "mustBeVerified": {
            "title": "Only verified accounts",
            "type": "boolean",
            "description": "Off by default. Skip non-verified accounts before crawling bio links or billing.",
            "default": false
          },
          "excludeAccounts": {
            "title": "Exclude accounts (block-list)",
            "type": "array",
            "description": "Optional list of usernames, @handles, or profile URLs to skip before fetching from Instagram or billing.",
            "items": {
              "type": "string"
            }
          },
          "lastPostDays": {
            "title": "Active within last N days",
            "minimum": 0,
            "type": "integer",
            "description": "Optional (paid plans). Skip accounts whose most recent non-pinned post is older than this many days (or private/empty accounts). Checked before link-in-bio crawling and billing; also adds lastPostAt and engagementRate to output rows. Empty or 0: off."
          },
          "minEngagementRate": {
            "title": "Minimum engagement rate (%)",
            "minimum": 0,
            "type": "number",
            "description": "Optional (paid plans). Skip accounts whose median engagement rate (likes + comments) / followers * 100 across recent non-pinned posts is below this percentage (e.g. 1.5 for 1.5%). Checked before link-in-bio crawling and billing; also adds lastPostAt and engagementRate to output rows. Empty or 0: off."
          },
          "watchlistId": {
            "title": "Watchlist / cross-run dedup store ID",
            "type": "string",
            "description": "Optional name for a persistent Key-Value Store watchlist (e.g. miami-fitness-leads). Remembers delivered usernames across scheduled runs so repeat leads are skipped before fetching or billing."
          },
          "skipDelivered": {
            "title": "Skip already-delivered profiles across runs",
            "type": "boolean",
            "description": "Off by default. When enabled (with watchlistId, or auto-keyed from your inputs), skips any username already delivered in an earlier run before fetching from Instagram or charging.",
            "default": false
          },
          "compact": {
            "title": "Compact output rows",
            "type": "boolean",
            "description": "Off by default. Return only core outreach columns (username, profileUrl, displayName, category, accountType, isVerified, isBusiness, followersCount, email, emailSource, emails, phone, phones, whatsapp, externalUrl, city, country, contactsFound, searchTerm, scrapedAt, plus lastPostAt/engagementRate when computed).",
            "default": false
          },
          "excludeEmptyFields": {
            "title": "Exclude empty fields from output",
            "type": "boolean",
            "description": "Off by default. Strip keys whose value is null, empty string, empty array, or empty object from each output row (boolean false and numeric 0 are kept).",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}