{
  "openapi": "3.0.1",
  "info": {
    "title": "Contact Details Scraper: Pay Per Site, Not Page",
    "description": "Extract website emails and contact details, and pay once per site with contacts, not per page read: phones, social profiles, company name, address, contact form and the page each value came from, one row per site. A site with no contacts comes back free and says why.",
    "version": "0.1",
    "x-build-id": "HT0nqnt2gLzOTT0ZJ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/pradio~website-email-phone/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-pradio-website-email-phone",
        "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/pradio~website-email-phone/runs": {
      "post": {
        "operationId": "runs-sync-pradio-website-email-phone",
        "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/pradio~website-email-phone/run-sync": {
      "post": {
        "operationId": "run-sync-pradio-website-email-phone",
        "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 websites to read, one URL per site; each returns a row of contacts or a status saying why. A social-network page is a free bad_input row. In the JSON form an entry may carry userData (your own columns, such as a CRM record ID): it comes back unchanged on that website's rows",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "skipSites": {
            "title": "Sites already enriched",
            "type": "array",
            "description": "websites you already have contacts for, one per line. An entry in Start URLs naming the same site is not read or charged and comes back as a free row saying so. Empty: every site is read",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "skipDatasetId": {
            "title": "Skip sites in an earlier run's dataset",
            "type": "string",
            "description": "the ID or name of an earlier run's dataset. Every website it returned contacts for is skipped in Start URLs: not read, not charged, a free row says so. A site that failed or had no contacts there is read again. Empty: nothing is skipped"
          },
          "maxDepth": {
            "title": "Max Depth",
            "minimum": 0,
            "maximum": 2,
            "type": "integer",
            "description": "how far to follow the site's own links looking for contact pages: 0 the start page alone, 1 the pages it links to (default 1, at most 2)",
            "default": 1
          },
          "maxRequestsPerStartUrl": {
            "title": "Max Requests Per Start URL",
            "minimum": 1,
            "maximum": 25,
            "type": "integer",
            "description": "the most requests made to one site, counting the start page, the contact pages it leads to and, with Find contact pages in the sitemap on, the sitemap (default 8, at most 25)",
            "default": 8
          },
          "maxRequests": {
            "title": "Max Requests",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "a fetch cap shared across the run, robots.txt reads included; unset means 100,000. A site the cap does not reach returns a free aborted row"
          },
          "sameDomain": {
            "title": "Same Domain",
            "type": "boolean",
            "description": "on (default): follow links on the site's own host only; off: also its other subdomains (shop., careers.). Another site is never followed.",
            "default": true
          },
          "considerChildFrames": {
            "title": "Consider Child Frames",
            "type": "boolean",
            "description": "also read same-host embedded frames: contacts living inside an iframe on the page",
            "default": false
          },
          "includeUrlPatterns": {
            "title": "Only visit pages matching",
            "type": "array",
            "description": "page-path regexes, for example /imprint. When set, only matching on-site pages are visited (robots.txt still applies); the start URL is always read.",
            "items": {
              "type": "string"
            }
          },
          "excludeUrlPatterns": {
            "title": "Never visit pages matching",
            "type": "array",
            "description": "Regular expressions matched against each internal page path, for example /careers or /blog/. A matching page is never requested.",
            "items": {
              "type": "string"
            }
          },
          "useSitemap": {
            "title": "Find contact pages in the sitemap",
            "type": "boolean",
            "description": "Off by default. Also read the site's sitemap.xml for contact, about and imprint pages, and visit those first; it counts toward Max Requests Per Start URL.",
            "default": false
          },
          "scrapeSocialMediaProfiles": {
            "title": "Networks to Extract",
            "type": "object",
            "description": "per-network switches for the social links read off each site, for example {\"tiktoks\": false}; {\"enabled\": false} reads none. Unset reads them all."
          },
          "verifyEmails": {
            "title": "Check e-mail domains (MX)",
            "type": "boolean",
            "description": "Off by default; the Console's example ticks it. Check each e-mail found: well formed, and does its domain publish MX records? A DNS lookup only.",
            "default": false
          },
          "defaultCountry": {
            "title": "Default country for phone numbers",
            "type": "string",
            "description": "Two-letter country code (US, GB) for phone numbers written without one. Empty: each site's country is read from its domain and language."
          },
          "mergeContacts": {
            "title": "Merge Contacts",
            "type": "boolean",
            "description": "on: every page a site answers folds into one row per site; off: one row per fetched page",
            "default": true
          },
          "useBrowser": {
            "title": "Render JavaScript sites in a browser",
            "type": "boolean",
            "description": "Off by default. Read an empty app-shell page in a headless browser; a refused or challenge page is never rendered. Slower and needs more memory: run with 2048 MB or more.",
            "default": false
          },
          "waitUntil": {
            "title": "Browser wait",
            "enum": [
              "domcontentloaded",
              "load",
              "networkidle"
            ],
            "type": "string",
            "description": "Only with Render JavaScript sites in a browser on: the load event the browser waits for: domcontentloaded (default), load, or networkidle for late-arriving contacts.",
            "default": "domcontentloaded"
          },
          "maxItems": {
            "title": "Maximum items",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "the most rows one run returns (at most 10,000). RUN_SUMMARY in the key-value store shows rowsFetched beside rowsPushed.",
            "default": 100
          },
          "proxyConfig": {
            "title": "Proxy Config",
            "type": "object",
            "description": "Apify proxy settings for the fetches. The default is Apify's datacenter proxy, so a run sends its first request through it without being configured. A refused site is a free blocked row and is not asked again in the run.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "DATACENTER"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}