{
  "data": {
    "id": "ILNdoaAxuBUFCCVPb",
    "actId": "zkXdUIRyq7zgjSEqn",
    "userId": "zq8lKbpLzTjGDayPC",
    "startedAt": "2026-11-21T09:44:46.264Z",
    "finishedAt": "2026-11-21T09:44:50.121Z",
    "status": "SUCCEEDED",
    "meta": {
      "origin": "CLI"
    },
    "stats": {
      "durationMillis": 3769,
      "runTimeSecs": 3.769,
      "computeUnits": 0.004187777777777778,
      "imageSizeBytes": 358918656
    },
    "options": {
      "useCache": true,
      "betaPackages": false,
      "memoryMbytes": 4096,
      "diskMbytes": 8192
    },
    "createdByOrganizationMemberUserId": "GK9YjZRyQZVzOdoH5",
    "exitCode": 0,
    "inputSchema": "{\n  \"title\": \"Better Business Bureau (BBB) Scraper\",\n  \"description\": \"Search the BBB business directory (US and Canada) by keyword and location, with rating, accreditation, sort and detail options.\",\n  \"type\": \"object\",\n  \"schemaVersion\": 1,\n  \"properties\": {\n    \"keywords\": {\n      \"title\": \"Keywords\",\n      \"type\": \"string\",\n      \"description\": \"What to search for on BBB: a business category (plumber, electrician, roofing, auto repair) or a company name. Required unless startUrls is set.\",\n      \"editor\": \"textfield\",\n      \"default\": \"plumber\",\n      \"prefill\": \"plumber\"\n    },\n    \"startUrls\": {\n      \"title\": \"Start URLs (optional)\",\n      \"type\": \"array\",\n      \"description\": \"BBB search or business-profile URLs to scrape instead of a keyword search. Search URLs keep the keyword, location, country, accreditation, sort and state parameters they contain, and every result page is followed. Profile URLs return one fully detailed business each. When this is set, Keywords, Locations, Country, Sort and State are ignored.\",\n      \"editor\": \"stringList\",\n      \"items\": {\n        \"type\": \"string\"\n      }\n    },\n    \"locations\": {\n      \"title\": \"Locations\",\n      \"type\": \"array\",\n      \"description\": \"Optional cities or postal codes, e.g. 'Chicago, IL', '10001', 'Toronto, ON'. Each is searched separately; businesses found twice are returned once. Leave empty for a country-wide search.\",\n      \"editor\": \"stringList\",\n      \"items\": {\n        \"type\": \"string\"\n      }\n    },\n    \"countries\": {\n      \"title\": \"Country\",\n      \"type\": \"string\",\n      \"description\": \"BBB directory to search.\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"US\",\n        \"CA\"\n      ],\n      \"enumTitles\": [\n        \"United States\",\n        \"Canada\"\n      ],\n      \"default\": \"US\",\n      \"prefill\": \"US\"\n    },\n    \"maxRecordsGlobal\": {\n      \"title\": \"Max businesses (total)\",\n      \"type\": \"integer\",\n      \"description\": \"Maximum number of businesses for the whole run, across all locations.\",\n      \"default\": 3,\n      \"prefill\": 3,\n      \"minimum\": 1,\n      \"maximum\": 5000\n    },\n    \"maxRecordsPerLocation\": {\n      \"title\": \"Max businesses per location\",\n      \"type\": \"integer\",\n      \"description\": \"Maximum per location (0 = no per-location limit). BBB shows up to 225 businesses per search, so use several locations for more.\",\n      \"default\": 50,\n      \"minimum\": 0,\n      \"maximum\": 5000\n    },\n    \"includeDetails\": {\n      \"title\": \"Include profile details\",\n      \"type\": \"boolean\",\n      \"description\": \"Also open each business's BBB profile for website, emails, contacts, dates, hours, licences, social links, reviews and complaints. Turn off for faster runs with search-listing data only.\",\n      \"default\": true,\n      \"prefill\": true\n    },\n    \"includeBranchLocations\": {\n      \"title\": \"Include branch locations\",\n      \"type\": \"boolean\",\n      \"description\": \"BBB lists some businesses once per location (branches, franchises, service addresses). Off: one record per business. On: one record per listed location, each with its own address, phone and coordinates.\",\n      \"default\": false,\n      \"prefill\": false\n    },\n    \"minRating\": {\n      \"title\": \"Minimum BBB rating\",\n      \"type\": \"string\",\n      \"description\": \"Only businesses rated at least this grade (businesses without a rating are excluded when set).\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"any\",\n        \"A+\",\n        \"A\",\n        \"A-\",\n        \"B+\",\n        \"B\",\n        \"B-\",\n        \"C+\",\n        \"C\",\n        \"C-\",\n        \"D+\",\n        \"D\",\n        \"D-\",\n        \"F\"\n      ],\n      \"enumTitles\": [\n        \"Any\",\n        \"A+\",\n        \"A or better\",\n        \"A- or better\",\n        \"B+ or better\",\n        \"B or better\",\n        \"B- or better\",\n        \"C+ or better\",\n        \"C or better\",\n        \"C- or better\",\n        \"D+ or better\",\n        \"D or better\",\n        \"D- or better\",\n        \"F or better (any rated)\"\n      ],\n      \"default\": \"any\",\n      \"prefill\": \"any\"\n    },\n    \"accreditedOnly\": {\n      \"title\": \"BBB Accredited businesses only\",\n      \"type\": \"boolean\",\n      \"description\": \"Only return BBB Accredited Businesses.\",\n      \"default\": false,\n      \"prefill\": false\n    },\n    \"sortBy\": {\n      \"title\": \"Sort by\",\n      \"type\": \"string\",\n      \"description\": \"Order of BBB search results.\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"relevance\",\n        \"rating\",\n        \"distance\",\n        \"aToZ\",\n        \"zToA\"\n      ],\n      \"enumTitles\": [\n        \"Best match\",\n        \"Rating\",\n        \"Distance\",\n        \"Name A-Z\",\n        \"Name Z-A\"\n      ],\n      \"default\": \"relevance\"\n    },\n    \"stateFilter\": {\n      \"title\": \"State / province filter\",\n      \"type\": \"string\",\n      \"description\": \"Optional two-letter state or province code (e.g. IL, ON) to keep results from one state when a search area spans several.\",\n      \"editor\": \"textfield\"\n    },\n    \"proxyConfiguration\": {\n      \"title\": \"Proxy configuration\",\n      \"type\": \"object\",\n      \"description\": \"Optional. BBB is fetched directly first; Apify proxies are used automatically only if needed. Choose your own proxy to use it as the fallback, or 'No proxy' to stay direct.\",\n      \"editor\": \"proxy\",\n      \"sectionCaption\": \"Advanced\",\n      \"sectionDescription\": \"Proxy settings.\"\n    }\n  }\n}",
    "readme": "# BBB Business Ratings, Accreditation & Complaints Finder\n\nSearch the Better Business Bureau directory for the United States and Canada and turn any category or company name into structured business records: BBB letter grade, accreditation status, contacts, licences, hours, reviews and complaint counts, straight from bbb.org.\n\n## What this actor does\n\n- Searches BBB by keyword (a trade like \"plumber\" or a company name) across the US or Canadian directory, optionally narrowed to one or more cities or postal codes\n- Also accepts pasted BBB search and business-profile URLs: a search URL keeps its own keyword, location, country, accreditation, sort and state parameters, and a profile URL returns that business fully detailed\n- Opens each matching business's BBB profile to collect accreditation dates, contacts, hours, licences, social links, products/services and review/complaint counts\n- Filters results by minimum BBB letter grade, BBB-accredited-only, or a state/province code\n- Sorts results by relevance, rating, distance, or business name\n- Can return one record per business, or one record per branch/franchise location when a business is listed at multiple addresses\n- Omits any field BBB doesn't publish for a business instead of returning it empty\n\n## Output per business\n\n- `type` — always `bbb_business`\n- `name`, `url` — BBB profile page\n- `id` / `bbbId` — combined bureau-business identifier, `businessId`, `bureauId`\n- `primaryCategory`, `categories[]`\n- `rating` — BBB letter grade (`A+` through `F`), `notRatedReason` when unrated\n- `accreditationStatus`, `bbbMember`, `dateAccredited`\n- `phone`, `phones[]`, `additionalPhones[]`, `website`, `additionalWebsites[]`, `emails[]`\n- `address` (`street`, `city`, `state`, `zipCode`, `country`), `latitude`, `longitude`\n- `contactName`, `contactTitle`, `principalContacts[]`\n- `fileOpenedDate`, `businessStarted`, `businessIncorporatedDate`, `yearsInBusiness`, `businessType`\n- `hoursOfOperation`, `numberOfEmployees`, `description`, `productsAndServices`, `paymentMethods`\n- `licenses` / `licensedBy`\n- `logo`, `bbbBureau`, `socialLinks` (object keyed by platform, e.g. `facebook`/`instagram`), `alternateNames[]`\n- `reviewCount`, `averageReviewRating`, `latestReviews[]`, `reviewsUrl`\n- `complaintCount`, `complaintsClosedLast3Years`, `complaintsClosedLast12Months`, `complaintsUrl`, `ratingReasons[]`\n- `serviceAreaSummary`, `serviceAreaDescription`, `requestQuoteUrl`, `localReportUrl`, `listingId` (branch mode), `hasMultipleLocations`, `outOfBusiness`, `isCharity`, `charitySeal` (when `isCharity` is true)\n- `searchKeywords`, `searchLocation`, `scrapedAt`\n\n## Input\n\n| Field | Type | Default | Description |\n|---|---|---|---|\n| `keywords` | String | `plumber` | Business category or company name to search for (required unless `startUrls` is set) |\n| `startUrls` | Array | – | BBB search or business-profile URLs. Search URLs keep their filters and are paginated; profile URLs return one fully detailed business each. Takes precedence over the keyword search fields |\n| `locations` | Array | – | Cities or postal codes (e.g. `Chicago, IL`, `10001`, `Toronto, ON`), each searched separately; duplicate businesses are merged. Empty searches the whole country |\n| `countries` | String (select) | `US` | `US` or `CA` BBB directory |\n| `maxRecordsGlobal` | Integer | `3` | Maximum businesses for the whole run (1-5,000) |\n| `maxRecordsPerLocation` | Integer | `50` | Maximum per location (0 = no per-location cap; BBB shows up to 225 per search) |\n| `includeDetails` | Boolean | `true` | Open each business's BBB profile for contacts, dates, hours, licences, social links, reviews and complaints |\n| `includeBranchLocations` | Boolean | `false` | One record per listed location instead of one per business |\n| `minRating` | String (select) | `any` | Minimum BBB grade (`A+` down to `F`); businesses without a rating are excluded when set |\n| `accreditedOnly` | Boolean | `false` | Only return BBB Accredited Businesses |\n| `sortBy` | String (select) | `relevance` | `relevance`, `rating`, `distance`, `aToZ`, or `zToA` |\n| `stateFilter` | String | – | Two-letter state/province code to keep results from one state when a search spans several |\n| `proxyConfiguration` | Object | – | Optional proxy configuration; BBB is fetched directly first |\n\n### Example: accredited plumbers in Chicago, A or better\n\n```json\n{\n  \"keywords\": \"plumber\",\n  \"locations\": [\"Chicago, IL\"],\n  \"maxRecordsGlobal\": 100,\n  \"minRating\": \"A\",\n  \"accreditedOnly\": true\n}\n```\n\n### Example: roofers across several Canadian cities, listing data only\n\n```json\n{\n  \"keywords\": \"roofing\",\n  \"countries\": \"CA\",\n  \"locations\": [\"Toronto, ON\", \"Ottawa, ON\", \"Vancouver, BC\"],\n  \"maxRecordsGlobal\": 300,\n  \"maxRecordsPerLocation\": 100,\n  \"includeDetails\": false\n}\n```\n\n### Example: look up one company by name\n\n```json\n{\n  \"keywords\": \"Roto-Rooter\",\n  \"maxRecordsGlobal\": 20\n}\n```\n\n### Example: scrape a saved BBB search and specific profiles\n\n```json\n{\n  \"startUrls\": [\n    \"https://www.bbb.org/search?find_text=roofer&find_loc=Austin%2C+TX&find_country=USA&filter_accredited=1&sort=Rating\",\n    \"https://www.bbb.org/us/tx/austin/profile/roofing-contractors/example-roofing-0654-90000000\"\n  ],\n  \"maxRecordsGlobal\": 40\n}\n```\n\n## Use cases\n\n- Lead generation for local service trades with phones, emails, websites and named contacts\n- Vendor and contractor vetting using BBB rating, accreditation, licences and years in business\n- Reputation monitoring of rating, review count and complaint trends for a watchlist of businesses\n- Market sizing — counting and comparing businesses by category, city or rating tier\n- Enriching an existing company list with BBB accreditation and complaint history\n\n## FAQ\n\n**What does the BBB rating mean?**\nBBB grades businesses from A+ down to F based on complaint history, time in business, transparency and licensing. Some businesses carry no grade; for those `rating` is omitted and `notRatedReason` may explain why.\n\n**What does accreditation mean?**\nAccredited Businesses have agreed to meet BBB's standards. `accreditationStatus` reports `Accredited` or `Not Accredited`, and `dateAccredited` gives the start date when accredited.\n\n**Why did I get fewer businesses than BBB's listed result count?**\nBBB can list one business multiple times — once per branch, franchise, or service address. By default this actor merges those into a single record per business. Turn on `includeBranchLocations` to get one record per listed location instead, each with its own address and `localReportUrl`.\n\n**How many results can one search return?**\nBBB caps a single search at 225 businesses. Add more entries to `locations`, or narrow with `stateFilter`, to collect more across a run, up to the 5,000 cap on `maxRecordsGlobal`.\n\n**Can I search Canada?**\nYes — set `countries` to `CA` and use Canadian cities or postal codes such as `Toronto, ON`.\n\n**Can I start from a BBB URL instead?**\nYes — paste BBB search or business-profile URLs into `startUrls`. A search URL keeps its keyword, location, country, accreditation, sort and state parameters, and every result page is followed; a profile URL returns that business with all profile details. When `startUrls` is set, the keyword search fields are ignored.\n\n**Which search-URL filters are kept?**\nKeyword, location, country, accreditation, sort and state. BBB category and rating facets are not forwarded, so a category-filtered URL returns its keyword/location results across categories.\n\n**Why is a pasted search URL limited to 225 businesses?**\nBBB itself caps one search at 15 result pages of 15 businesses. Split a large search into narrower locations, categories or state filters to collect more.\n\n**Why is `includeDetails` worth turning off?**\nWith it off, you still get name, rating, accreditation, categories, phone, address, coordinates and the BBB profile link, from the search listing alone, which is noticeably faster for large runs.\n\n**Why are `emails` or `website` missing for some businesses?**\nThose fields only appear when the business published them on its own BBB profile; BBB does not require either.\n\n**Does the actor return every review and complaint?**\nIt returns BBB's review and complaint counts plus the three latest review snippets, and links the full `reviewsUrl` and `complaintsUrl` for each business. BBB's full review and complaint pages sit behind the same bot protection as profile pages, so their bodies are not scraped.\n\n**Does this need a BBB account or a proxy?**\nNo — it reads BBB's public directory and profile pages directly, and falls back to a proxy automatically only if a direct request is blocked.\n\n**Why might a run finish with an empty dataset?**\nEither the keyword has no matches in the chosen location, or the rating/accreditation/state filters excluded everything that was found.\n\n**Is this affiliated with the Better Business Bureau?**\nNo. This is an independent tool that reads bbb.org's publicly accessible pages; you're responsible for using the data in line with BBB's own terms.\n",
    "actorDefinition": {
      "actorSpecification": 1,
      "name": "bbb-business-ratings-accreditation-and-complaints",
      "title": "BBB Business Ratings, Accreditation & Complaints Finder",
      "description": "Search the BBB directory for the US and Canada and get each business's rating, accreditation status, contacts, licences, hours, and review and complaint counts.",
      "version": "1.0",
      "buildTag": "latest",
      "dockerfile": "../Dockerfile",
      "readme": "# BBB Business Ratings, Accreditation & Complaints Finder\n\nSearch the Better Business Bureau directory for the United States and Canada and turn any category or company name into structured business records: BBB letter grade, accreditation status, contacts, licences, hours, reviews and complaint counts, straight from bbb.org.\n\n## What this actor does\n\n- Searches BBB by keyword (a trade like \"plumber\" or a company name) across the US or Canadian directory, optionally narrowed to one or more cities or postal codes\n- Also accepts pasted BBB search and business-profile URLs: a search URL keeps its own keyword, location, country, accreditation, sort and state parameters, and a profile URL returns that business fully detailed\n- Opens each matching business's BBB profile to collect accreditation dates, contacts, hours, licences, social links, products/services and review/complaint counts\n- Filters results by minimum BBB letter grade, BBB-accredited-only, or a state/province code\n- Sorts results by relevance, rating, distance, or business name\n- Can return one record per business, or one record per branch/franchise location when a business is listed at multiple addresses\n- Omits any field BBB doesn't publish for a business instead of returning it empty\n\n## Output per business\n\n- `type` — always `bbb_business`\n- `name`, `url` — BBB profile page\n- `id` / `bbbId` — combined bureau-business identifier, `businessId`, `bureauId`\n- `primaryCategory`, `categories[]`\n- `rating` — BBB letter grade (`A+` through `F`), `notRatedReason` when unrated\n- `accreditationStatus`, `bbbMember`, `dateAccredited`\n- `phone`, `phones[]`, `additionalPhones[]`, `website`, `additionalWebsites[]`, `emails[]`\n- `address` (`street`, `city`, `state`, `zipCode`, `country`), `latitude`, `longitude`\n- `contactName`, `contactTitle`, `principalContacts[]`\n- `fileOpenedDate`, `businessStarted`, `businessIncorporatedDate`, `yearsInBusiness`, `businessType`\n- `hoursOfOperation`, `numberOfEmployees`, `description`, `productsAndServices`, `paymentMethods`\n- `licenses` / `licensedBy`\n- `logo`, `bbbBureau`, `socialLinks` (object keyed by platform, e.g. `facebook`/`instagram`), `alternateNames[]`\n- `reviewCount`, `averageReviewRating`, `latestReviews[]`, `reviewsUrl`\n- `complaintCount`, `complaintsClosedLast3Years`, `complaintsClosedLast12Months`, `complaintsUrl`, `ratingReasons[]`\n- `serviceAreaSummary`, `serviceAreaDescription`, `requestQuoteUrl`, `localReportUrl`, `listingId` (branch mode), `hasMultipleLocations`, `outOfBusiness`, `isCharity`, `charitySeal` (when `isCharity` is true)\n- `searchKeywords`, `searchLocation`, `scrapedAt`\n\n## Input\n\n| Field | Type | Default | Description |\n|---|---|---|---|\n| `keywords` | String | `plumber` | Business category or company name to search for (required unless `startUrls` is set) |\n| `startUrls` | Array | – | BBB search or business-profile URLs. Search URLs keep their filters and are paginated; profile URLs return one fully detailed business each. Takes precedence over the keyword search fields |\n| `locations` | Array | – | Cities or postal codes (e.g. `Chicago, IL`, `10001`, `Toronto, ON`), each searched separately; duplicate businesses are merged. Empty searches the whole country |\n| `countries` | String (select) | `US` | `US` or `CA` BBB directory |\n| `maxRecordsGlobal` | Integer | `3` | Maximum businesses for the whole run (1-5,000) |\n| `maxRecordsPerLocation` | Integer | `50` | Maximum per location (0 = no per-location cap; BBB shows up to 225 per search) |\n| `includeDetails` | Boolean | `true` | Open each business's BBB profile for contacts, dates, hours, licences, social links, reviews and complaints |\n| `includeBranchLocations` | Boolean | `false` | One record per listed location instead of one per business |\n| `minRating` | String (select) | `any` | Minimum BBB grade (`A+` down to `F`); businesses without a rating are excluded when set |\n| `accreditedOnly` | Boolean | `false` | Only return BBB Accredited Businesses |\n| `sortBy` | String (select) | `relevance` | `relevance`, `rating`, `distance`, `aToZ`, or `zToA` |\n| `stateFilter` | String | – | Two-letter state/province code to keep results from one state when a search spans several |\n| `proxyConfiguration` | Object | – | Optional proxy configuration; BBB is fetched directly first |\n\n### Example: accredited plumbers in Chicago, A or better\n\n```json\n{\n  \"keywords\": \"plumber\",\n  \"locations\": [\"Chicago, IL\"],\n  \"maxRecordsGlobal\": 100,\n  \"minRating\": \"A\",\n  \"accreditedOnly\": true\n}\n```\n\n### Example: roofers across several Canadian cities, listing data only\n\n```json\n{\n  \"keywords\": \"roofing\",\n  \"countries\": \"CA\",\n  \"locations\": [\"Toronto, ON\", \"Ottawa, ON\", \"Vancouver, BC\"],\n  \"maxRecordsGlobal\": 300,\n  \"maxRecordsPerLocation\": 100,\n  \"includeDetails\": false\n}\n```\n\n### Example: look up one company by name\n\n```json\n{\n  \"keywords\": \"Roto-Rooter\",\n  \"maxRecordsGlobal\": 20\n}\n```\n\n### Example: scrape a saved BBB search and specific profiles\n\n```json\n{\n  \"startUrls\": [\n    \"https://www.bbb.org/search?find_text=roofer&find_loc=Austin%2C+TX&find_country=USA&filter_accredited=1&sort=Rating\",\n    \"https://www.bbb.org/us/tx/austin/profile/roofing-contractors/example-roofing-0654-90000000\"\n  ],\n  \"maxRecordsGlobal\": 40\n}\n```\n\n## Use cases\n\n- Lead generation for local service trades with phones, emails, websites and named contacts\n- Vendor and contractor vetting using BBB rating, accreditation, licences and years in business\n- Reputation monitoring of rating, review count and complaint trends for a watchlist of businesses\n- Market sizing — counting and comparing businesses by category, city or rating tier\n- Enriching an existing company list with BBB accreditation and complaint history\n\n## FAQ\n\n**What does the BBB rating mean?**\nBBB grades businesses from A+ down to F based on complaint history, time in business, transparency and licensing. Some businesses carry no grade; for those `rating` is omitted and `notRatedReason` may explain why.\n\n**What does accreditation mean?**\nAccredited Businesses have agreed to meet BBB's standards. `accreditationStatus` reports `Accredited` or `Not Accredited`, and `dateAccredited` gives the start date when accredited.\n\n**Why did I get fewer businesses than BBB's listed result count?**\nBBB can list one business multiple times — once per branch, franchise, or service address. By default this actor merges those into a single record per business. Turn on `includeBranchLocations` to get one record per listed location instead, each with its own address and `localReportUrl`.\n\n**How many results can one search return?**\nBBB caps a single search at 225 businesses. Add more entries to `locations`, or narrow with `stateFilter`, to collect more across a run, up to the 5,000 cap on `maxRecordsGlobal`.\n\n**Can I search Canada?**\nYes — set `countries` to `CA` and use Canadian cities or postal codes such as `Toronto, ON`.\n\n**Can I start from a BBB URL instead?**\nYes — paste BBB search or business-profile URLs into `startUrls`. A search URL keeps its keyword, location, country, accreditation, sort and state parameters, and every result page is followed; a profile URL returns that business with all profile details. When `startUrls` is set, the keyword search fields are ignored.\n\n**Which search-URL filters are kept?**\nKeyword, location, country, accreditation, sort and state. BBB category and rating facets are not forwarded, so a category-filtered URL returns its keyword/location results across categories.\n\n**Why is a pasted search URL limited to 225 businesses?**\nBBB itself caps one search at 15 result pages of 15 businesses. Split a large search into narrower locations, categories or state filters to collect more.\n\n**Why is `includeDetails` worth turning off?**\nWith it off, you still get name, rating, accreditation, categories, phone, address, coordinates and the BBB profile link, from the search listing alone, which is noticeably faster for large runs.\n\n**Why are `emails` or `website` missing for some businesses?**\nThose fields only appear when the business published them on its own BBB profile; BBB does not require either.\n\n**Does the actor return every review and complaint?**\nIt returns BBB's review and complaint counts plus the three latest review snippets, and links the full `reviewsUrl` and `complaintsUrl` for each business. BBB's full review and complaint pages sit behind the same bot protection as profile pages, so their bodies are not scraped.\n\n**Does this need a BBB account or a proxy?**\nNo — it reads BBB's public directory and profile pages directly, and falls back to a proxy automatically only if a direct request is blocked.\n\n**Why might a run finish with an empty dataset?**\nEither the keyword has no matches in the chosen location, or the rating/accreditation/state filters excluded everything that was found.\n\n**Is this affiliated with the Better Business Bureau?**\nNo. This is an independent tool that reads bbb.org's publicly accessible pages; you're responsible for using the data in line with BBB's own terms.\n",
      "input": {
        "title": "Better Business Bureau (BBB) Scraper",
        "description": "Search the BBB business directory (US and Canada) by keyword and location, with rating, accreditation, sort and detail options.",
        "type": "object",
        "schemaVersion": 1,
        "properties": {
          "keywords": {
            "title": "Keywords",
            "type": "string",
            "description": "What to search for on BBB: a business category (plumber, electrician, roofing, auto repair) or a company name. Required unless startUrls is set.",
            "editor": "textfield",
            "default": "plumber",
            "prefill": "plumber"
          },
          "startUrls": {
            "title": "Start URLs (optional)",
            "type": "array",
            "description": "BBB search or business-profile URLs to scrape instead of a keyword search. Search URLs keep the keyword, location, country, accreditation, sort and state parameters they contain, and every result page is followed. Profile URLs return one fully detailed business each. When this is set, Keywords, Locations, Country, Sort and State are ignored.",
            "editor": "stringList",
            "items": {
              "type": "string"
            }
          },
          "locations": {
            "title": "Locations",
            "type": "array",
            "description": "Optional cities or postal codes, e.g. 'Chicago, IL', '10001', 'Toronto, ON'. Each is searched separately; businesses found twice are returned once. Leave empty for a country-wide search.",
            "editor": "stringList",
            "items": {
              "type": "string"
            }
          },
          "countries": {
            "title": "Country",
            "type": "string",
            "description": "BBB directory to search.",
            "editor": "select",
            "enum": [
              "US",
              "CA"
            ],
            "enumTitles": [
              "United States",
              "Canada"
            ],
            "default": "US",
            "prefill": "US"
          },
          "maxRecordsGlobal": {
            "title": "Max businesses (total)",
            "type": "integer",
            "description": "Maximum number of businesses for the whole run, across all locations.",
            "default": 3,
            "prefill": 3,
            "minimum": 1,
            "maximum": 5000
          },
          "maxRecordsPerLocation": {
            "title": "Max businesses per location",
            "type": "integer",
            "description": "Maximum per location (0 = no per-location limit). BBB shows up to 225 businesses per search, so use several locations for more.",
            "default": 50,
            "minimum": 0,
            "maximum": 5000
          },
          "includeDetails": {
            "title": "Include profile details",
            "type": "boolean",
            "description": "Also open each business's BBB profile for website, emails, contacts, dates, hours, licences, social links, reviews and complaints. Turn off for faster runs with search-listing data only.",
            "default": true,
            "prefill": true
          },
          "includeBranchLocations": {
            "title": "Include branch locations",
            "type": "boolean",
            "description": "BBB lists some businesses once per location (branches, franchises, service addresses). Off: one record per business. On: one record per listed location, each with its own address, phone and coordinates.",
            "default": false,
            "prefill": false
          },
          "minRating": {
            "title": "Minimum BBB rating",
            "type": "string",
            "description": "Only businesses rated at least this grade (businesses without a rating are excluded when set).",
            "editor": "select",
            "enum": [
              "any",
              "A+",
              "A",
              "A-",
              "B+",
              "B",
              "B-",
              "C+",
              "C",
              "C-",
              "D+",
              "D",
              "D-",
              "F"
            ],
            "enumTitles": [
              "Any",
              "A+",
              "A or better",
              "A- or better",
              "B+ or better",
              "B or better",
              "B- or better",
              "C+ or better",
              "C or better",
              "C- or better",
              "D+ or better",
              "D or better",
              "D- or better",
              "F or better (any rated)"
            ],
            "default": "any",
            "prefill": "any"
          },
          "accreditedOnly": {
            "title": "BBB Accredited businesses only",
            "type": "boolean",
            "description": "Only return BBB Accredited Businesses.",
            "default": false,
            "prefill": false
          },
          "sortBy": {
            "title": "Sort by",
            "type": "string",
            "description": "Order of BBB search results.",
            "editor": "select",
            "enum": [
              "relevance",
              "rating",
              "distance",
              "aToZ",
              "zToA"
            ],
            "enumTitles": [
              "Best match",
              "Rating",
              "Distance",
              "Name A-Z",
              "Name Z-A"
            ],
            "default": "relevance"
          },
          "stateFilter": {
            "title": "State / province filter",
            "type": "string",
            "description": "Optional two-letter state or province code (e.g. IL, ON) to keep results from one state when a search area spans several.",
            "editor": "textfield"
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional. BBB is fetched directly first; Apify proxies are used automatically only if needed. Choose your own proxy to use it as the fallback, or 'No proxy' to stay direct.",
            "editor": "proxy",
            "sectionCaption": "Advanced",
            "sectionDescription": "Proxy settings."
          }
        }
      },
      "output": {
        "actorOutputSchemaVersion": 1,
        "title": "BBB Business Ratings, Accreditation & Complaints Finder Output",
        "description": "One record per BBB business with rating, accreditation, contacts, address, licences, hours, and review and complaint counts. Empty fields are omitted.",
        "properties": {
          "businesses": {
            "type": "string",
            "title": "Businesses",
            "description": "All BBB business records.",
            "template": "{{links.apiDefaultDatasetUrl}}/items"
          },
          "contacts": {
            "type": "string",
            "title": "Contacts view",
            "description": "Contact person, phones, emails, website and social links per business.",
            "template": "{{links.apiDefaultDatasetUrl}}/items?view=contacts"
          }
        }
      },
      "defaultRunOptions": {
        "timeoutSecs": 3600,
        "memoryMbytes": 512
      },
      "defaultMemoryMbytes": 512,
      "minMemoryMbytes": 256,
      "maxMemoryMbytes": 2048,
      "storages": {
        "dataset": {
          "actorSpecification": 1,
          "views": {
            "overview": {
              "title": "Businesses",
              "transformation": {
                "fields": [
                  "name",
                  "rating",
                  "accreditationStatus",
                  "primaryCategory",
                  "phone",
                  "emails",
                  "website",
                  "address",
                  "yearsInBusiness",
                  "reviewCount",
                  "complaintCount",
                  "url"
                ]
              },
              "display": {
                "component": "table",
                "properties": {
                  "name": {
                    "label": "Business"
                  },
                  "rating": {
                    "label": "BBB rating"
                  },
                  "accreditationStatus": {
                    "label": "Accreditation"
                  },
                  "primaryCategory": {
                    "label": "Category"
                  },
                  "phone": {
                    "label": "Phone"
                  },
                  "emails": {
                    "label": "Emails"
                  },
                  "website": {
                    "label": "Website",
                    "format": "link"
                  },
                  "address": {
                    "label": "Address"
                  },
                  "yearsInBusiness": {
                    "label": "Years in business"
                  },
                  "reviewCount": {
                    "label": "Reviews"
                  },
                  "complaintCount": {
                    "label": "Complaints"
                  },
                  "url": {
                    "label": "BBB profile",
                    "format": "link"
                  }
                }
              }
            },
            "contacts": {
              "title": "Contacts",
              "transformation": {
                "fields": [
                  "name",
                  "contactName",
                  "contactTitle",
                  "phone",
                  "additionalPhones",
                  "emails",
                  "website",
                  "socialLinks",
                  "address",
                  "url"
                ]
              },
              "display": {
                "component": "table",
                "properties": {
                  "name": {
                    "label": "Business"
                  },
                  "contactName": {
                    "label": "Contact"
                  },
                  "contactTitle": {
                    "label": "Title"
                  },
                  "phone": {
                    "label": "Phone"
                  },
                  "additionalPhones": {
                    "label": "Other phones"
                  },
                  "emails": {
                    "label": "Emails"
                  },
                  "website": {
                    "label": "Website",
                    "format": "link"
                  },
                  "socialLinks": {
                    "label": "Social"
                  },
                  "address": {
                    "label": "Address"
                  },
                  "url": {
                    "label": "BBB profile",
                    "format": "link"
                  }
                }
              }
            }
          }
        }
      },
      "environmentVariables": {}
    },
    "buildNumber": "1.0.2",
    "imageDigest": "b5cc7e5ab8ea80cf07b27809d8bf69fda587463bc561630e9b07b3808bf208c0",
    "actVersion": {
      "sourceType": "SOURCE_FILES",
      "buildTag": "latest",
      "versionNumber": "1.0"
    },
    "usage": {
      "ACTOR_COMPUTE_UNITS": 0.004187777777777778
    }
  }
}