Maps Census
v1.0.0Statistics on Google Maps businesses by place and business type: counts, shares and online presence.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
create_report Create a Maps Census report
Create a Maps Census report: counts of Google Maps places for business types in a zone, with optional filters, rows split by one dimension and a measure in columns. Returns the report URL at once; call get_report for the figures. Each row costs one count, plus one per column (two for a share).
| Parameter | Type | Description |
|---|---|---|
country_code * | string | ISO 3166-1 alpha-2 country code, e.g. "FR" or "US". |
admin1 | string | Region or state, by name ("Île-de-France", "California") or code ("11", "CA"). |
admin2 | string | Department or county, by name or code. In the United States, give admin1 too. |
breakdown | string | How the rows split the set: none (one row), type (one row per type, two types at least), location (one row per zone, see location_level), rating, reviews or phone (one row per band; phone not in US, C… |
charts | array | Charts on the report page, above its table. Default: bars. |
city | string | City name. |
columns | string | What the columns show: indicator (the share of each row with each indicator), type, rating, reviews or phone (a cross table; phone not in US, CA, DO, PR, MX, CL, DK, where landline and mobile numbers… |
full_report | boolean | true only when the user asks for a written report, a PDF or a page to share: the report then gets a written analysis and a PDF, a minute or two after the counts. Leave it false when the user only want… |
gmap_first_seen_at_gte | string | Only places first indexed on or after this date, YYYY-MM-DD. |
gmap_first_seen_at_lte | string | Only places first indexed on or before this date, YYYY-MM-DD. |
gmap_has_phone | boolean | true: only places with a phone number; false: only places without one. |
gmap_has_website | boolean | true: only places with a website; false: only places without one. |
gmap_is_closed | boolean | true: only places marked permanently closed; false: only places not marked closed. |
gmap_is_main_type | boolean | true: only places whose main type is one of the types; false: only places where it is a secondary type. |
gmap_phone_type | string | Only places with this phone type; not in US, CA, DO, PR, MX, CL, DK, where landline and mobile numbers cannot be told apart. |
gmap_reviews_count_gte | integer | Minimum review count: 0, 50, 200, 500 or 501 (more than 500). |
gmap_reviews_count_lte | integer | Maximum review count: 0, 50, 200, 500 or 501 (more than 500). |
gmap_reviews_rating_gte | number | Minimum rating, 0 to 5. |
gmap_reviews_rating_lte | number | Maximum rating, 0 to 5. |
indicators | array | Indicators of indicator rows or columns, 12 at most. Default: website, email, phone, Facebook, Instagram, LinkedIn, less the filters given. |
locale | string | Language of the report, its labels and its URL. Default: en. |
location_level | string | Zone level of the rows when breakdown is location. Default: the level just under the zone. |
measure | string | For a cross table: count (places per cell) or share (the share of each cell with share_indicator). Default: count. |
share_indicator | string | The indicator a share measure counts. |
title | string | Report title, 120 characters at most. Default: built from the types and the zone. |
types | array | Business types: slugs ("dentist") or names in the report language ("Dentiste"). Omit for all businesses. |
website_has_ad_pixels | boolean | Same, for ad pixels. |
website_has_contact_pages | boolean | Same, for a contact page. |
website_has_emails | boolean | true: only places whose website shows an email; false: only places whose website shows none. |
website_has_facebook | boolean | Same, for a Facebook link. |
website_has_instagram | boolean | Same, for an Instagram link. |
website_has_linkedin | boolean | Same, for a LinkedIn link. |
website_has_tiktok | boolean | Same, for a TikTok link. |
website_has_twitter | boolean | Same, for an X (Twitter) link. |
website_has_youtube | boolean | Same, for a YouTube link. |
get_report Get a Maps Census report
Get a Maps Census report. Once ready: its title, criteria, table (a header line, then one line per group; raw counts, with the legend's marks for hidden figures) and key points, plus the PDF URL for a full report. Until then: the status and when to retry. The status is counting, then for a full report writing (the written analysis) and pdf (the PDF being built), then ready.
| Parameter | Type | Description |
|---|---|---|
report_id * | string | The report_id create_report returned, also the last part of the report URL. |