Discover/mahsaalert.app API
live

mahsaalert.app APImahsaalert.app

Access MahsaAlert map data via API: danger zones, confirmed attacks, evacuation warnings, military sites, and citizen reports across Iran, filterable by location and category.

Endpoints
4
Updated
1mo ago
Try it

No input parameters required.

api.parse.bot/scraper/2e3f1623-b586-4881-aa92-b57bb2544017/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Use it in your codegrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/2e3f1623-b586-4881-aa92-b57bb2544017/get_layers' \
  -H 'X-API-Key: $PARSE_API_KEY'
All endpoints · 4 totalclick to expand

Get all available map layers with metadata including layer keys, categories, property schemas, and update timestamps. Use the returned layer keys/IDs to query features via get_layer_features or get_map_data.

Input

No input parameters required.

Response
{
  "type": "object",
  "fields": {
    "total": "integer count of layers",
    "layers": "array of layer objects with id, key, name_en, title, enabled, visible, layer_type, date_filter, category, feature_updated_at, and properties"
  },
  "sample": {
    "data": {
      "total": 34,
      "layers": [
        {
          "id": 6,
          "key": "nuclearPrograms",
          "title": "برنامه هسته‌ای",
          "enabled": true,
          "name_en": "Nuclear Program",
          "visible": true,
          "category": {
            "id": 2,
            "title": "مناطق پرخطر",
            "title_en": "Danger Zones"
          },
          "layer_type": "fill",
          "properties": [
            {
              "key": "name:fa",
              "type": "string",
              "label": "نام"
            }
          ],
          "date_filter": false,
          "feature_updated_at": "2026-04-01T05:09:25.749Z"
        }
      ]
    },
    "status": "success"
  }
}

About the mahsaalert.app API

The MahsaAlert API provides access to 4 endpoints covering geolocated map layer data from mahsaalert.app, including danger zones, military infrastructure, evacuation warnings, and citizen-submitted incident reports across Iran. Use get_layers to enumerate all available layer keys and categories, then query individual layers or multi-layer geographic snapshots with bounding box and category filters to retrieve structured feature data including coordinates, province, verification tags, and associated media.

What the API Covers

The MahsaAlert API surfaces structured geographic feature data organized into named map layers. Each layer belongs to a category such as Danger Zones, Monitor, Suppression Sites, Medical sites, or Iran-Israel War, and carries metadata including layer_type, date_filter support, and feature_updated_at timestamps. The get_layers endpoint returns the full list of layers with their key, name_en, title, enabled, and visible fields — essential for knowing which layer_key values to pass downstream.

Querying Features by Layer or Area

get_layer_features accepts either a layer_key (e.g. nuclearPrograms, missilePrograms, antiAirBase, radarBase, newTargets) or a numeric layer_id, with optional bbox filtering in min_lon,min_lat,max_lon,max_lat format. It returns a paginated features array where each item includes coordinates, verification_tag, status, and an info object containing city, province, description, date, mission, geolocates, and sources. The response also surfaces total_in_layer and returned counts for pagination via limit and offset.

get_map_data queries multiple layers simultaneously within a bounding box, defaulting to the Tehran area when no bbox is supplied. You can narrow results using the category parameter or a comma-separated layer_keys string. The response groups features by layer, each with a feature_count, making it useful for area-level situational overviews without pre-knowing which layers contain data.

Feature Detail and Media

get_feature_detail accepts a feature_id from any previous query and returns the fullest record available: bilingual name fields (name:fa, name:en), province, status, mission, sources, and a media array for associated visual attachments. The source_id field links back to the originating layer record, and created_at / updated_at ISO timestamps indicate when the feature was first logged and last modified.

Common use cases
  • Map active danger zones and confirmed attack sites across Iranian provinces using get_layer_features with the newTargets layer key
  • Build an area-level threat overview for a specific city by querying get_map_data with a tight bounding box and filtering by the Danger Zones category
  • List all nuclear and missile program sites by querying the nuclearPrograms and missilePrograms layer keys and extracting coordinates and province fields
  • Track evacuation warning features with verification_tag and status fields to distinguish confirmed from unverified citizen reports
  • Retrieve bilingual (Persian/English) feature names and source citations via get_feature_detail for display in multilingual incident dashboards
  • Paginate through large layers using limit and offset in get_layer_features to sync full datasets for offline analysis
  • Monitor military infrastructure layers such as antiAirBase, radarBase, and areowayBase filtered to a geographic region of interest
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000250 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does MahsaAlert have an official developer API?+
No. MahsaAlert (mahsaalert.app) does not publish a documented public developer API. This Parse API provides structured programmatic access to the map layer data the site displays.
What does `get_layer_features` return versus `get_map_data`?+
get_layer_features targets a single layer by layer_key or layer_id and returns a paginated feature list with full info objects, verification_tag, and total_in_layer count. get_map_data queries all layers (or a filtered subset) simultaneously within a bounding box and groups results by layer, returning feature_count per layer — better suited for area-wide snapshots when you don't know which layers have data in a region.
How current is the feature data, and how do I detect stale layers?+
Each layer object returned by get_layers includes a feature_updated_at timestamp indicating when features in that layer were last updated. Individual features also carry created_at and updated_at ISO timestamps. Freshness depends on when mahsaalert.app updates its source data; there is no guaranteed update interval.
Does the API expose historical incident timelines or trend data over time?+
Not currently. The API returns current feature snapshots with per-feature created_at and updated_at timestamps and an info.date field, but does not provide a time-series or changelog endpoint for tracking how features evolve. You can fork the API on Parse and revise it to add a historical query endpoint if the source data supports it.
Can I filter features by province or city directly?+
Not as a direct query parameter. Geographic filtering is done via the bbox bounding box parameter in get_layer_features and get_map_data. Province and city values are available in the info object of each returned feature and can be filtered client-side. You can fork the API on Parse and revise it to add server-side province or city parameters.
Page content last updated . Spec covers 4 endpoints from mahsaalert.app.
Related APIs in Maps GeoSee all →
angieslist.com API
Search for home service professionals on Angi and access their detailed profiles including reviews, contact information, and photos to find the right contractor for your project. Quickly compare multiple service providers by viewing their ratings, customer feedback, and verified business details all in one place.
yellowpages-uae.com API
Search and discover UAE businesses with instant access to contact details, locations, and branch information from the Yellow Pages UAE directory. Find companies by name, get detailed business profiles, explore multiple branches, and browse available cities all in one place.
api.nasa.gov API
Access NASA's suite of open data APIs — including the Astronomy Picture of the Day, Near Earth Object tracking, DONKI space weather events, EPIC Earth imagery, Mars weather, the NASA Image and Video Library, the Exoplanet Archive, and EONET natural events.
58.com Housing API
Access real-time housing market data from 58.com (58同城), China's largest classifieds platform. Search house price trends across 31+ major Chinese cities at city, district, and neighborhood levels, and browse hot new property developments with prices, floor plans, and location details.
x-kom.pl API
Access product data from x-kom.pl, a major Polish electronics retailer. Search products by keyword or category, retrieve detailed product pages, customer reviews, Q&A, promotions, flash deals, and physical store locations.
opentable.com API
Search for restaurants across the US with ratings, reviews, photos, and pricing information, plus get real-time availability and autocomplete suggestions as you type. Check reservation openings and explore detailed restaurant features to find and book your perfect dining experience.
immobiliare.it API
Search Italian property listings for sale or rent, browse real estate agencies, and explore price trends across Italian cities — all via immobiliare.it.
zapimoveis.com.br API
Search and filter real estate listings across Brazil on ZAP Imóveis — the country's largest property portal. Retrieve listings for sale or rent with detailed attributes including price, location, size, bedrooms, bathrooms, parking, and amenities. Supports location autocomplete, property type discovery, and full listing detail retrieval.
MahsaAlert API – Iran Map Layer Data · Parse