Maptiler Actor
Pricing
$1.00 / 1,000 results
Maptiler Actor
Pricing
$1.00 / 1,000 results
Rating
0.0
(0)
Developer

Nazarii Ovcharchyn
Actor stats
0
Bookmarked
1
Total users
0
Monthly active users
2 months ago
Last modified
Categories
Share
MapTiler Infrastructure Scraper
An Apify actor that scrapes MapTiler v4 tileset data and returns infrastructural features (roads, buildings, POIs, water features, etc.) for a given location. The actor fetches Protocol Buffer Format (PBF) tiles at zoom level 15 and parses vector tile data.
Features
- Fetches PBF tiles from MapTiler API v4
- Parses vector tile data to extract infrastructure features
- Returns GeoJSON-compatible geometries with properties
- Supports filtering by feature/layer types
- Fixed zoom level 15 for detailed feature extraction
Input Parameters
- latitude (required): Latitude of the location (-90 to 90)
- longitude (required): Longitude of the location (-180 to 180)
- feature_types (optional): Array of layer names to filter (e.g.,
["transportation", "building"]). Leave empty to get all features.
Example Input
{"latitude": 40.7128,"longitude": -74.0060,"feature_types": ["transportation", "building", "poi"]}
Environment Variables
You must set the following environment variable in your Actor settings:
- MAPTILER_API_KEY: Your MapTiler API key (get one at https://cloud.maptiler.com/)
Output Format
Each feature is returned as a JSON object with:
{"feature_id": "unique_id","layer": "transportation|building|water|poi|etc","type": "feature_type","geometry": {"type": "Point|LineString|Polygon","coordinates": [[lon, lat], ...]},"properties": {"name": "Feature name","class": "primary|secondary|etc","...": "other attributes from MapTiler schema"},"tile_source": "15/x/y"}
How it works
- Converts lat/lon to tile coordinates at zoom level 15
- Fetches the PBF tile from MapTiler API
- Parses vector tile layers and features
- Converts tile coordinates to geographic coordinates
- Filters by requested feature types (if specified)
- Outputs formatted features to Apify dataset
Resources
- Python tutorials in Academy
- Video guide on getting data using Apify API
- Integration with Make, GitHub, Zapier, Google Drive, and other apps
- A short guide on how to build web scrapers using code templates:
Getting started
For complete information see this article. To run the Actor use the following command:
$apify run
Deploy to Apify
Connect Git repository to Apify
If you've created a Git repository for the project, you can easily connect to Apify:
- Go to Actor creation page
- Click on Link Git Repository button
Push project on your local machine to Apify
You can also deploy the project on your local machine to Apify without the need for the Git repository.
-
Log in to Apify. You will need to provide your Apify API Token to complete this action.
$apify login -
Deploy your Actor. This command will deploy and build the Actor on the Apify Platform. You can find your newly created Actor under Actors -> My Actors.
$apify push
Documentation reference
To learn more about Apify and Actors, take a look at the following resources: