{
  "openapi": "3.0.1",
  "info": {
    "title": "Manta Scraper - US Small Business Directory & B2B Leads",
    "description": "Scrape US small business listings from Manta.com by industry + city or URL: name, address, phone, website, category — plus email, revenue estimate, employees, SIC/NAICS, year founded, geo, socials & a key contact. Optional website contact enrichment, lead scoring & monitor mode.",
    "version": "0.1",
    "x-build-id": "7UlN5a3OOYrnjLmWl"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapesage~manta-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapesage-manta-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/scrapesage~manta-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapesage-manta-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/scrapesage~manta-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapesage-manta-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": {
          "searchTerms": {
            "title": "Search terms (business type / industry / keyword)",
            "type": "array",
            "description": "What to look for on Manta, e.g. <code>marketing agencies</code>, <code>plumbers</code>, <code>accounting firms</code>, <code>manufacturers</code>, <code>law firms</code>. Combine with a Location to get businesses in one city; leave Location empty for a nationwide search. Each term is a separate saved search.",
            "items": {
              "type": "string"
            }
          },
          "location": {
            "title": "Location (city, state)",
            "type": "string",
            "description": "US city to focus the search on, e.g. <code>Austin, TX</code>, <code>Chicago, IL</code>, <code>Miami, FL</code>. The city is resolved through Manta's own location index. Leave empty for a nationwide search of the term(s) above."
          },
          "startUrls": {
            "title": "Start URLs (optional)",
            "type": "array",
            "description": "Direct Manta URLs to scrape in addition to the searches above: company profiles (<code>manta.com/c/&lt;id&gt;/&lt;slug&gt;</code>), search result pages (<code>manta.com/search?...</code>) or industry category pages (<code>manta.com/mb_.../&lt;industry&gt;</code>). Profile URLs are always fully detailed.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxResults": {
            "title": "Max results (companies)",
            "minimum": 0,
            "type": "integer",
            "description": "Global cap on the number of company records to output across all searches / URLs. Each search or category page returns ~20 companies. Set to <code>0</code> for no limit (bounded only by the run timeout).",
            "default": 100
          },
          "includeDetails": {
            "title": "Include company details (email, revenue, employees, SIC/NAICS, founded, socials, contact)",
            "type": "boolean",
            "description": "Open each company's Manta profile to enrich the listing with its full firmographics: business email, revenue estimate, employee band, SIC & NAICS codes, year founded, latitude/longitude, description, services, social profiles and a key contact. Slower (one page per company) and billed per company (companyDetails event). Leave off for the fast, cheap listing-only run (name, address, phone, website).",
            "default": false
          },
          "enrichContacts": {
            "title": "Enrich contacts from the company website (emails, phones & socials)",
            "type": "boolean",
            "description": "For every company with a website, crawl its home + contact/about pages and extract publicly listed e-mail addresses, phone numbers and social profiles (LinkedIn, Facebook, Instagram, X, YouTube, TikTok) — turning each company into a ready-to-contact B2B lead. Implies 'Include company details' (needed to find the website) and is billed as an enriched lead.",
            "default": false
          },
          "state": {
            "title": "State filter",
            "type": "string",
            "description": "Keep only companies in this US state. Accepts a 2-letter code (e.g. <code>TX</code>) or full name. Leave empty for all."
          },
          "minEmployees": {
            "title": "Minimum employees",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only companies whose employee band starts at or above this number (requires company details). Leave empty for all."
          },
          "withEmailOnly": {
            "title": "Only companies with an email",
            "type": "boolean",
            "description": "Keep only companies for which a business email was found (requires company details or contact enrichment).",
            "default": false
          },
          "withWebsiteOnly": {
            "title": "Only companies with a website",
            "type": "boolean",
            "description": "Keep only companies that have a business website.",
            "default": false
          },
          "withPhoneOnly": {
            "title": "Only companies with a phone",
            "type": "boolean",
            "description": "Keep only companies that have a phone number.",
            "default": false
          },
          "monitorMode": {
            "title": "Monitor mode (only new / changed)",
            "type": "boolean",
            "description": "Remember companies across runs and emit only NEW or CHANGED ones (phone, website, email, revenue or employee-band change). Great for watching an industry + city for new businesses. Works independently of Apify Schedules — pair it with a Schedule to run on a cadence.",
            "default": false
          },
          "monitorKey": {
            "title": "Monitor key",
            "type": "string",
            "description": "Namespace for monitor memory. Use a distinct key per saved search so their states don't collide.",
            "default": "default"
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxies to use. Residential proxies are REQUIRED — Manta is protected by Cloudflare and blocks datacenter IPs. The default (Apify residential, US) is recommended.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "US"
            }
          },
          "debugMode": {
            "title": "Debug mode",
            "type": "boolean",
            "description": "Dump raw page diagnostics to the key-value store for troubleshooting selectors.",
            "default": false
          },
          "headful": {
            "title": "Headful browser",
            "type": "boolean",
            "description": "Run the browser headful (under Xvfb) — clears Cloudflare's challenge far more reliably. On by default.",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}