Google My Maps Layer & Placemark Exporter avatar

Google My Maps Layer & Placemark Exporter

Pricing

from $0.49 / 1,000 results

Go to Apify Store
Google My Maps Layer & Placemark Exporter

Google My Maps Layer & Placemark Exporter

Export any public Google My Maps map without a login: layer list, placemark names and descriptions, points, routes, polygons, full coordinates, centroids, icons and colours, custom fields, embedded media and Google Maps links. Optional GeoJSON and KML files.

Pricing

from $0.49 / 1,000 results

Rating

0.0

(0)

Developer

crawlyth forge

crawlyth forge

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

2 hours ago

Last modified

Features

Limited permissions

Share

Turn a public Google My Maps map into a structured dataset. Paste a viewer, edit or embed link (or the bare map ID) and the actor returns the map's layers, every placemark, full route and polygon coordinates, centroids, icon colours, custom fields, embedded media links and a Google Maps link for each feature. Optionally save GeoJSON and the original KML to the run's key-value store.

Google My Maps is the custom-map layer in Google Maps: food trails, festival grounds, store locators, walking routes, ward boundaries, research maps and community projects. The map owner can share one with "Anyone with the link"; that public map is what this actor reads. No account, cookie, API key or Google Cloud project is involved.

What it does

  • Accepts https://www.google.com/maps/d/viewer?mid=..., /edit?mid=..., /embed?mid=..., /maps/d/u/0/viewer?mid=..., Drive open?id=... links, old msid= links and bare map IDs.
  • Reads the same public KML/KMZ payload that Google serves from its map export endpoint.
  • Writes one map summary row per map and one placemark row per point, route, polygon or multi-geometry (plus one overlay row for each image overlay).
  • Keeps every custom field the owner added to a placemark (ExtendedData key/value pairs).
  • Extracts image and video URLs embedded in a placemark description.
  • Filters by layer, geometry type and keyword.
  • Optionally writes map-<id>.kml, map-<id>.geojson and my-maps-all.geojson files.

Private or deleted maps return a dataset row with status: "inaccessible" and the HTTP status, so a batch run reports them without stopping the rest.

How to use

  1. Open the map in Google My Maps and use Share to set link sharing to Anyone with the link (or use a map that is already public).
  2. Copy the share URL, or take the mid value from it.
  3. Paste one or more links into Public My Maps URLs or map IDs.
  4. Optionally narrow the export with Layers, Geometry types and Keyword.
  5. Run. The dataset opens on the All rows, Maps and Placemarks tabs.

Example input:

{
"mapUrls": [
"https://www.google.com/maps/d/viewer?mid=1DpJu2DbYssvxH0XsK6f6iXV6BN4"
],
"maxItems": 10000,
"includeMapRecords": true,
"includeGeoJson": true,
"includeKml": true
}

The daily test uses the same map ID with maxItems: 3; it returns a map row and placemark rows. The default cap is 10,000 rows, enough for the largest My Maps exports; raise it up to 100,000 for bigger batches.

Input

FieldTypeDefaultDescription
mapUrlsstring list["1DpJu2DbYssvxH0XsK6f6iXV6BN4"]Required. 1–50 public My Maps viewer/edit/embed/KML links, Drive links, short links, old msid links or bare map IDs (mid).
maxItemsinteger10000Hard cap on dataset rows, including map summary rows (1–100,000).
includeMapRecordsbooleantrueWrite one map summary row per map before its placemark rows.
includeGeoJsonbooleanfalseSave per-map GeoJSON and my-maps-all.geojson to the key-value store.
includeKmlbooleanfalseSave the KML Google served for each map to the key-value store.
layersstring list–Keep features whose layer name or full path contains any value (case-insensitive).
geometryTypesmulti-select–Keep point, line, polygon, multigeometry and/or overlay features.
keywordstring–Keep features whose name, description, layer, address, phone or custom-field value contains this text.
proxyConfigurationproxy–Optional. The actor uses direct access with an automatic Apify datacenter fallback; set this only to force a proxy group or country.

Modes and rows

This is a single-purpose exporter; the "mode" is the kind of row requested:

RowrecordTypeWhat it contains
Map summarymapTitle, description (HTML and plain text), viewer URL, layer list with per-layer counts, placemark/overlay counts, geometry counts, author and view information.
PlacemarkplacemarkLayer and full layer path, name, description, geometry type, GeoJSON geometry, every coordinate, centroid and bounding box, icon/colour, custom fields, media URLs, Google Maps link.
Image overlayoverlayName, image URL, north/south/east/west box, rotation, draw order and Google Maps link.
Unavailable mapmap + statusinaccessible (private/deleted/HTTP error) or invalid (no map ID in the input), with an error message.

Map summary fields

mapId, mapTitle, mapDescriptionHtml, mapDescription, mapUrl, sourceUrl, inputUrl, layerCount, placemarkCount, overlayCount, featureCount, geometryCounts, layers (name, path, index, placemark/overlay counts, geometry counts), mapAuthor, mapLink, viewLatitude, viewLongitude, viewRange, networkLinkCount, status, scrapedAt.

Placemark fields

name, descriptionHtml, description, geometryType, geometry, latitude, longitude, coordinates, coordinateCount, centroidLat, centroidLng, bbox, googleMapsUrl, layer, layerPath, layerIndex, featureId, styleId, styleColor, styleColorAbgr, styleAlpha, iconUrl, iconScale, lineColor, lineWidth, polyColor, polyFill, polyOutline, labelScale, customData, customFieldCount, imageUrls, videoUrls, mediaUrls, address, phoneNumber, snippet, visibility, timestamp, timespanBegin, timespanEnd, sourceUrl, scrapedAt.

Points get exact latitude/longitude; every geometry gets a centroid and bounding box. Lines and polygons include the full coordinates list in order. The geometry object is GeoJSON-ready (longitude, latitude order).

Filters

  • Layers — matches the layer name or full nested path, case-insensitive substring. Useful for exporting one day of a festival itinerary or one category of a directory map.
  • Geometry types — point, line, polygon, multigeometry, overlay. A multi-geometry matches when any of its parts matches.
  • Keyword — searches the name, description, layer, address, phone and custom-field values.

Filtering never drops the map summary row; it describes the whole map. maxItems caps total dataset rows, including map summaries, and stops fetching new maps when reached.

GeoJSON and KML files

When Save GeoJSON files is on, the key-value store gets one map-<id>.geojson per map and my-maps-all.geojson for all filtered features. Points, routes, polygons, multi-geometries and overlay rectangles use standard GeoJSON geometry; properties carry the record fields.

When Save original KML files is on, the KML Google served is stored as map-<id>.kml. A KMZ archive is unpacked to its KML document first. The files are the unfiltered map; the dataset and GeoJSON apply your filters.

Data source and access

The KML/KMZ endpoint is the map's own public export: https://www.google.com/maps/d/kml?forcekml=1&mid=<id>. It needs no login and no Google API key. The actor tries direct access first. If a datacenter IP is blocked, it retries with Apify's datacenter proxy automatically. You never have to configure a proxy, but an optional proxy setting is available if you want to force a group or country.

Limits

  • Private maps cannot be read. A map must be shared with "Anyone with the link". Private, deleted and permission-restricted maps return status: "inaccessible". The actor does not use cookies, so it cannot read a map on someone's private account.
  • Media is linked, not copied. Images and videos inside descriptions are third-party files owned by the map author. Their URLs are passed through. If the owner deletes or restricts an image later, its URL can return 404; the actor does not rehost other people's media.
  • Network links are reported, not followed. If a map contains a KML NetworkLink, its count and URL appear in the map summary, but the remote file is not fetched.
  • Google's view. The KML is Google's own export of the map. Hidden layers, Google's basemap, directions and satellite imagery are not part of the exported data.
  • KML is the unfiltered map. Filters apply to dataset and GeoJSON rows only.
  • Very large maps are capped by maxItems; the run stops fetching new maps once the cap is reached.

FAQ

Do I need a Google account? No. The map must be public, but the actor never signs in.

Can it read a map that is only shared with specific people? No. Ask the owner to use "Anyone with the link" or export the KML from their own My Maps account.

Does it work with an edit URL? Yes. Viewer, edit, embed and Drive links all resolve to the same public map ID.

What is a mid? The map ID in the share URL, for example 1DpJu2DbYssvxH0XsK6f6iXV6BN4. You can paste it on its own.

Why is a placemark missing? Check your layer, geometry-type and keyword filters. A map's empty layers are listed in the map summary with zero counts.