# Changelog of Google Maps Scraper & Business Leads Extractor (`badr_xba/google-maps-business-leads`) Actor

- **URL**: https://apify.com/badr_xba/google-maps-business-leads/changelog.md
- **Full Actor documentation**: https://apify.com/badr_xba/google-maps-business-leads.md

## Changelog

### 2026-11-22 - no fake e-mails ("lead-email-verified" add-on and the place e-mail fields)

- **Fake e-mails delivered and charged**: pages that carry their text as JSON write `>` as `>`, so
  `>info@site.com` became the address `u003einfo@site.com` (and `mailto:a@b.com\"` kept a backslash); form
  examples and placeholders (`e.g. name@gmail.com`, `<input placeholder="you@outlook.com">`, `"...email.placeholder":
  "pro@gmail.com"`) were read as contacts. JSON escapes are now decoded first, escape residue is removed, and an
  address announced as an example or a placeholder just before it (same tag or text, 60 characters) is dropped,
  except on the website's own domain. Found on https://www.vinted.com/help (3 fake for 3 real). Tests:
  `tests/test_fake_emails_json.py` (real page excerpts in `tests/vinted_help_excerpts.html`).

### Unreleased - 2026-11-11 (c) hotfix city (local only, not pushed, no price / field / event change)

- **City parsing**: a street was saved as `city` when the address had a note or a two-part street before the city
  line (run V1OJqaelrqdutt0qy: `"Av. de Genève"` for a place in Annecy; also `"Rue des Terres au Curé"`,
  `"West Olympic Boulevard"`). The city now comes from Google's structured locality first, then the address line
  that holds it (postal code / locality match), then Google's locality block; postal codes, CEDEX, UK postcodes
  and Paris / Lyon / Marseille arrondissements are stripped; FR / MA street words (rue, av., bd, derb, zankat,
  hay, lot., km, n°, Arabic...), house numbers and plus codes are never a city: `null` rather than a street.
- `postalCode`, `state` and `cityLine` are read on that same line (a street number "11400" was saved as postal code).
- City match filter and report city facet use the corrected value. Tests: 301 (`tests/test_city_parsing.py`).

### Unreleased - 2026-11-11 (b) (local only, not pushed, no price change)

- Input form: **Locations** list (one per line, prefill "Paris, France") replaces "Location (one per run)"; each
  location processed in turn, every term in every location, a place billed once. `locationQuery` hidden, still read,
  merged with `locations` (duplicates removed). "Number of places" is per search term, per location.
- New **All main categories** option (`searchAllMainCategories`, off): 59 common Google Maps categories
  (`src/categories.py`, listed in the README) added to the search terms, duplicates skipped; covers most places, not all.
- **Maximum cost of this run** moved right below the main fields, with a warning and a cost estimate; prefill "5",
  no default (old API inputs are not capped).
- Large-run warning at start (all categories, > 3 locations, region / country-sized area without a number of places):
  searches, maximum places, estimated cost, cap status; also in `RUN_SUMMARY.notes`.
- Empty-input demo keeps the customer's own location. Tests: 250.

### Unreleased - 2026-11-11 (local only, not pushed)

- Input form reorganised: intro, 4 simple fields (search terms, one location, number of places, language), then
  collapsible Add-on sections marked ($) with a pricing link, alternative sections marked \* (geographic area,
  URLs / place IDs), run limits, advanced. Prefill restaurant / Paris, France / 20 / en; the empty-input demo uses
  the same values. `locations`, `maxQuestions`, `emailVerificationProvider` hidden but still read.
- Company contacts: business contacts only - person-like website e-mails dropped (`personalEmailsSkipped`),
  LinkedIn company / school / showcase pages only; social enrichment never visits `/in/` profiles.
- Leads add-on kept: customer Hunter key only (no env / owner key), GDPR note in the form and README.
- Log messages mask e-mail addresses. See `docs/FORM_REDESIGN.md`.

### 0.1 - 2026-11-10 (local only, not published)

First version, built from Google Maps Scraper Pro (FBFPkosKhvCRmdweZ): Google search / detail requests, area
splitting, parsing, website contacts, schema validation and visual report are reused.

#### Added

- Pay-per-event events: place-scraped (primary), filter-applied, place-details-scraped, contact-details-scraped,
  lead-scraped, lead-email-verified, social-profile-scraped, review-scraped, image-scraped, competitor-analyzed
  (+ apify-actor-start). Charges are computed from the delivered row only. Placeholder prices in
  `.actor/pay_per_event.json` / `docs/PRICING_EVENTS.md`.
- Search: multiple locations (`locations`), category search mode (`searchCategories`), radius search on a real
  circle, global dedupe by placeId / cid / fid, global cap `maxCrawledPlaces` (per-search cap stays
  `maxCrawledPlacesPerSearch`).
- Filters: minimum reviews, with phone, open now (unknown state excluded), city match, country match, price
  level; each active filter counted for filter-applied.
- Place details: popular times when Google sends them; detail-only fields delivered (and charged) only with the
  details add-on. Q\&A input accepted, warned, never charged.
- Contacts: phones from tel: links, source page of every e-mail / phone / social link.
- Social profile enrichment (public meta tags, login walls not charged).
- Business leads via the customer's Hunter.io key; e-mail verification (Hunter, provider interface);
  free local e-mail checks (`emailChecks`: syntax, mxFound, disposable, role).
- Reviews: sort of the received reviews, owner reply date; images: photo ID, size suffix, original size, upload
  date, position.
- AI competitor analysis with the customer's Anthropic (claude-haiku-5-5), OpenAI or Gemini key, from collected
  data only, quotes verified against the reviews.
- Budget: `maxCostUsd` and Apify's maximum cost per run, reservations before paid work, clean stop.
- STATE persisted on migration / abort; resume without double charge. Secrets redacted from logs.
- Input schema in 15 sections, every field with its cost; dataset views Overview, Contacts & leads, Reviews,
  Social, AI analysis; visual report badges for leads, social profiles and AI.
- Tests: 176 offline tests (mocked) + 7 real local runs (docs/TESTS.md).

### 2026-11-11 — form redesign release

- New input form (intro + 4 fields, collapsible Add-on sections with ($) and pricing links, alternative \* sections, first-click prefill restaurant / Paris, France / 20 / en).
- Business contacts only on websites (person-like e-mails dropped, LinkedIn company/school/showcase pages only); Business leads add-on kept with the customer's own Hunter key and a GDPR note.
- Reviewer data (scrapeReviewsPersonalData) and photo authors (scrapeImageAuthors) are now OFF by default (GDPR note); explicit true still honoured.
- Start-up memory check (
  otEnoughMemory, nothing charged). Every key field is a secret input; test proves no key reaches logs, rows or FAILED_INPUTS.
- No change to events or prices.
