{
  "openapi": "3.0.1",
  "info": {
    "title": "Instagram Lead Finder",
    "description": "Find Instagram leads by hashtag or username. Extract verified emails and phones from bios and websites, score every profile 0-100, classify influencer tiers, and detect niches. Export enriched leads ready for outreach.",
    "version": "1.0",
    "x-build-id": "siZDjEyDB4C82BR0W"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/brilliant_gum~instagram-lead-finder/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-brilliant_gum-instagram-lead-finder",
        "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/brilliant_gum~instagram-lead-finder/runs": {
      "post": {
        "operationId": "runs-sync-brilliant_gum-instagram-lead-finder",
        "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/brilliant_gum~instagram-lead-finder/run-sync": {
      "post": {
        "operationId": "run-sync-brilliant_gum-instagram-lead-finder",
        "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": {
          "hashtags": {
            "title": "Hashtags to Search",
            "type": "array",
            "description": "Instagram hashtags to search for leads (without the # symbol). The actor will visit the hashtag explore page and collect profiles from top posts. Example: ['fitnesscoach', 'socialmediamarketer']",
            "items": {
              "type": "string"
            }
          },
          "usernames": {
            "title": "Direct Usernames",
            "type": "array",
            "description": "Instagram usernames or profile URLs to scrape directly (bypasses hashtag search). Example: ['natgeo', 'https://www.instagram.com/nasa/']",
            "items": {
              "type": "string"
            }
          },
          "maxResultsPerHashtag": {
            "title": "Max Results Per Hashtag",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum number of profiles to collect per hashtag. Profiles come from the top posts on the hashtag explore page.",
            "default": 50
          },
          "minFollowers": {
            "title": "Min Followers",
            "minimum": 0,
            "type": "integer",
            "description": "Only include profiles with at least this many followers. Set to 0 to include all.",
            "default": 0
          },
          "maxFollowers": {
            "title": "Max Followers",
            "minimum": 0,
            "type": "integer",
            "description": "Only include profiles with at most this many followers. Set to 0 for no upper limit. Useful for finding micro-influencers.",
            "default": 0
          },
          "minEngagementRate": {
            "title": "Min Engagement Rate (%)",
            "minimum": 0,
            "type": "number",
            "description": "Only include profiles with an engagement rate above this threshold. Engagement rate = (avg likes + avg comments) / followers * 100. Set to 0 to disable.",
            "default": 0
          },
          "bioKeywords": {
            "title": "Bio Keywords Filter",
            "type": "array",
            "description": "Only include profiles whose bio contains at least one of these keywords (case-insensitive). Leave empty to include all profiles.",
            "items": {
              "type": "string"
            }
          },
          "crawlWebsites": {
            "title": "Crawl Profile Websites for Emails",
            "type": "boolean",
            "description": "If enabled, the actor will visit each profile's linked website and extract email addresses from the homepage and /contact page. This increases emails found by 3-5x compared to bio-only extraction.",
            "default": true
          },
          "verifyEmails": {
            "title": "Verify Emails via MX Check",
            "type": "boolean",
            "description": "If enabled, performs DNS MX record lookup to verify that the email domain can receive mail. Results: 'valid', 'invalid', or 'uncertain'.",
            "default": true
          },
          "minLeadScore": {
            "title": "Min Lead Score (0-100)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Only output profiles that score at or above this threshold. Score is based on: has email (25pts), website email (20pts), has phone (15pts), has website (10pts), engagement rate (15pts), followers (10pts), is business (5pts).",
            "default": 0
          },
          "sessionCookie": {
            "title": "Instagram Session Cookie (sessionid)",
            "type": "string",
            "description": "Your Instagram 'sessionid' cookie value. Required for hashtag explore pages. Without this, hashtag crawling will fail with a login redirect. Get it from your browser: DevTools → Application → Cookies → instagram.com → sessionid."
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Built-in residential proxy is included. Override only if needed."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}