{
  "openapi": "3.0.1",
  "info": {
    "title": "Instagram Email Scraper & Recent Posts",
    "description": "📧 Instagram Email Scraper & Recent Posts finds verified emails from public profiles, bios & contact buttons fast. 🎯 Perfect for lead gen, influencer outreach & CRM enrichment. ⚡ Bulk search, filters & CSV export. ✅ Save time, grow pipelines, stay compliant.",
    "version": "0.1",
    "x-build-id": "TE97deHvV5layitRN"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapebase~instagram-email-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapebase-instagram-email-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/scrapebase~instagram-email-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapebase-instagram-email-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/scrapebase~instagram-email-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapebase-instagram-email-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",
        "required": [
          "keywords"
        ],
        "properties": {
          "keywords": {
            "title": "🔑 Keywords",
            "type": "array",
            "description": "Search terms to find Instagram content (e.g. marketing, founder, business). We search Google for profiles & posts matching these and extract emails.",
            "items": {
              "type": "string"
            }
          },
          "platform": {
            "title": "📱 Platform",
            "enum": [
              "Instagram"
            ],
            "type": "string",
            "description": "Social platform to scrape. Only Instagram is supported right now — this stays a fixed value.",
            "default": "Instagram"
          },
          "location": {
            "title": "📍 Location",
            "type": "string",
            "description": "Narrow results by place (e.g. London, New York). Leave blank for worldwide.",
            "default": ""
          },
          "emailDomains": {
            "title": "📧 Email Domains",
            "type": "array",
            "description": "Only keep emails from these domains (e.g. @gmail.com, @outlook.com). Empty = all domains.",
            "items": {
              "type": "string"
            }
          },
          "maxEmails": {
            "title": "🎯 Max Emails per Keyword",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Cap how many emails we collect PER KEYWORD (1–5000). Default: 20. Total emails for the run ≈ number of keywords × this value (e.g. 10 keywords × 20 = up to 200 charged rows) — each row is a billed result, so size this deliberately for multi-keyword runs. Duplicate URLs/emails are skipped and never double-charged.",
            "default": 20
          },
          "engine": {
            "title": "⚡ Engine",
            "enum": [
              "legacy"
            ],
            "type": "string",
            "description": "Fetch engine used to run the Google search. Only one engine (GOOGLE_SERP proxy group) is available right now — this stays a fixed value.",
            "default": "legacy"
          },
          "fetchRecentPosts": {
            "title": "📸 Fetch Recent Posts",
            "type": "boolean",
            "description": "When ON, looks up each account's public post feed (via instagram.com/api/v1/feed/user/.../username/) and attaches username, lastPostedAt, postsFetched and recentPosts[] to every row. Non-profile result URLs (posts, reels, hashtag pages) are skipped automatically — postsFetched=0, lastPostedAt=null for those. Default: true.",
            "default": true
          },
          "recentPostsCount": {
            "title": "🔢 Recent Posts Count",
            "minimum": 1,
            "maximum": 12,
            "type": "integer",
            "description": "How many of an account's most recent posts to attach to recentPosts[] (1–12). This is a hint, not a hard contract — Instagram's feed may return slightly more or fewer items; whatever arrives is sorted newest-first and truncated to this count. Default: 3.",
            "default": 3
          },
          "postedWithinDays": {
            "title": "📅 Posted Within Days",
            "minimum": 0,
            "maximum": 3650,
            "type": "integer",
            "description": "Drop a row if the account's last post (lastPostedAt) is older than this many days — removes dormant/dead accounts automatically. Set to 0 to disable this filter and keep every row regardless of activity. Rows with no post data to evaluate (non-profile URL, recent-posts lookup off, private account, or past Max Profile Lookups) are never dropped by this filter. Default: 365.",
            "default": 365
          },
          "maxProfileLookups": {
            "title": "🧢 Max Profile Lookups",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Hard ceiling on how many unique Instagram accounts get a recent-posts lookup in this run (a safety valve — this roughly doubles request volume per run on top of the base's Google requests). Rows past this cap still ship with every base field intact; only username/lastPostedAt/postsFetched/recentPosts are null/0/empty for them. Default: 200.",
            "default": 200
          },
          "igSessionId": {
            "title": "🔒 Instagram Session ID",
            "type": "string",
            "description": "Instagram `sessionid` cookie value, required for the 📸 Recent Posts feature to fetch an account's public post feed. Treated as a secret: masked in the Console UI, held only in memory for the run, never logged and never persisted to any dataset row or build artifact. Default: empty (recent-posts lookups are skipped gracefully when empty)."
          },
          "proxyConfiguration": {
            "title": "🌐 Proxy",
            "type": "object",
            "description": "Proxy used for the Google search requests. If left at the default (no proxy selected), the actor automatically uses Apify's GOOGLE_SERP proxy group, which is required for reliable Google results. If you explicitly enable Apify Proxy here with your own groups, your configuration is used as-is instead — there is no automatic datacenter→residential fallback."
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}