{
  "openapi": "3.0.1",
  "info": {
    "title": "📇 Contact Details Scraper",
    "description": "📇 Contact Details Scraper extracts emails, phone numbers & addresses from public web profiles fast. ⚡ Perfect for B2B lead gen, outreach, sales & recruitment. ✅ Clean, structured output for smarter targeting.",
    "version": "0.1",
    "x-build-id": "PF3hQgwagf4mt5eOi"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/simpleapi~contact-details-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-simpleapi-contact-details-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/simpleapi~contact-details-scraper/runs": {
      "post": {
        "operationId": "runs-sync-simpleapi-contact-details-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/simpleapi~contact-details-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-simpleapi-contact-details-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": [
          "startUrls"
        ],
        "properties": {
          "startUrls": {
            "title": "🌐 Start URLs",
            "type": "array",
            "description": "The list of websites the scraper will start crawling from. Use **Add** for single URLs, **Bulk** to paste many at once, or **Advanced** to load a list from a file/URL.",
            "items": {
              "type": "string"
            }
          },
          "maxRequestsPerStartUrl": {
            "title": "📄 Maximum pages per start URL",
            "minimum": 1,
            "type": "integer",
            "description": "The maximum number of pages that will be crawled from each start URL you provide.",
            "default": 20
          },
          "mergeContacts": {
            "title": "🧬 Merge contacts",
            "type": "boolean",
            "description": "A more efficient method for data consolidation. When activated, this feature merges all found emails and social profiles from every page of the same start URL into a single result row — eliminating the need to review separate entries for each subpage and streamlining your workflow.",
            "default": true
          },
          "maxDepth": {
            "title": "🔗 Maximum link depth",
            "minimum": 0,
            "type": "integer",
            "description": "How many links away from the Start URLs the scraper may travel. 0 = do not follow any links. Leave empty for unlimited depth.",
            "default": 2
          },
          "maxRequests": {
            "title": "🧮 Maximum pages for whole scrape",
            "minimum": 1,
            "type": "integer",
            "description": "Hard cap on the total number of pages loaded across all start URLs. Keep this sane to control cost and runtime.",
            "default": 1000000
          },
          "sameDomain": {
            "title": "🏠 Stay within domain",
            "type": "boolean",
            "description": "Only follow links that stay on the same domain as the start URL.",
            "default": true
          },
          "considerChildFrames": {
            "title": "🖼️ Probe frames",
            "type": "boolean",
            "description": "Also extract contact information embedded inside iframes/frames.",
            "default": true
          },
          "concurrency": {
            "title": "⚡ Concurrency",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "How many pages to fetch in parallel.",
            "default": 10
          },
          "maximumLeadsEnrichmentRecords": {
            "title": "👥 Add-on: Extract business leads information — Maximum leads per domain ($)",
            "minimum": 0,
            "type": "integer",
            "description": "Enrich your output with detailed leads information for employees working at the business (domain found) — full name, work email address, phone number, job title and LinkedIn profile, plus company data such as industry and number of employees.\n\nThe number you set here is **per domain found**. Setting a high number can significantly increase your costs (example: a search that finds 1,000 domains × 10 leads each = up to 10,000 attempted leads). Leave 0 to disable.",
            "default": 0
          },
          "leadsEnrichmentDepartments": {
            "title": "🏷️ Leads departments selection",
            "type": "array",
            "description": "Optional department filter for the business-leads add-on. Leave empty to include all departments.",
            "items": {
              "type": "string",
              "enum": [
                "c_suite",
                "product",
                "engineering_technical",
                "design",
                "education",
                "finance",
                "human_resources",
                "information_technology",
                "legal",
                "marketing",
                "medical_health",
                "operations",
                "sales",
                "consulting"
              ],
              "enumTitles": [
                "C-Suite",
                "Product",
                "Engineering & Technical",
                "Design",
                "Education",
                "Finance",
                "Human Resources",
                "Information Technology",
                "Legal",
                "Marketing",
                "Medical & Health",
                "Operations",
                "Sales",
                "Consulting"
              ]
            }
          },
          "verifyLeadsEnrichmentEmails": {
            "title": "✅ Add-on: Email verification ($)",
            "type": "boolean",
            "description": "When the business-leads add-on is active, verify each enriched lead email before it is returned.",
            "default": false
          },
          "scrapeFacebookProfile": {
            "title": "👍 Enable Facebook profile scraping",
            "type": "boolean",
            "description": "Highlight and (when the enrichment add-on is active) enrich Facebook profiles discovered on the crawled pages.",
            "default": true
          },
          "scrapeInstagramProfile": {
            "title": "📸 Enable Instagram profile scraping",
            "type": "boolean",
            "description": "Highlight and (when the enrichment add-on is active) enrich Instagram profiles discovered on the crawled pages.",
            "default": true
          },
          "scrapeYoutubeProfile": {
            "title": "▶️ Enable YouTube channel scraping",
            "type": "boolean",
            "description": "Highlight and (when the enrichment add-on is active) enrich YouTube channels discovered on the crawled pages.",
            "default": true
          },
          "scrapeTiktokProfile": {
            "title": "🎵 Enable TikTok profile scraping",
            "type": "boolean",
            "description": "Highlight and (when the enrichment add-on is active) enrich TikTok profiles discovered on the crawled pages.",
            "default": true
          },
          "scrapeTwitterProfile": {
            "title": "🐦 Enable X (Twitter) profile scraping",
            "type": "boolean",
            "description": "Highlight and (when the enrichment add-on is active) enrich X/Twitter profiles discovered on the crawled pages.",
            "default": true
          },
          "useBrowser": {
            "title": "🧭 Use browser for scraping",
            "type": "boolean",
            "description": "Use a real browser (Playwright + Chromium) to crawl the pages. Turn this on when you scrape dynamic content, which wouldn't be otherwise loaded. It can also help as an anti-blocking measure in some cases. When off, the scraper still auto-falls back to a browser for pages that need it.",
            "default": false
          },
          "waitUntil": {
            "title": "⏳ Consider page to be loaded",
            "enum": [
              "commit",
              "domcontentloaded",
              "load",
              "networkidle"
            ],
            "type": "string",
            "description": "When the HTML is loaded, including all dependent resources (stylesheets, scripts, …). Page lifecycle event to wait for when rendering with a browser.",
            "default": "domcontentloaded"
          },
          "proxyConfiguration": {
            "title": "🛡️ Proxy configuration",
            "type": "object",
            "description": "By default the scraper connects directly (no proxy). If a site blocks the request, it automatically falls back to a datacenter proxy, then a residential proxy (with retries) and sticks with it. You can also force a proxy here.",
            "default": {
              "useApifyProxy": 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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}