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
2mo 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 →
worldmonitor.app API
Monitor global events and geopolitical developments in real-time by accessing live conflict reports, military movements, cyber threats, economic indicators, maritime activity, and 15 other critical intelligence categories. Track everything from supply chain disruptions and infrastructure status to market quotes, weather patterns, and displacement data to stay ahead of worldwide geopolitical shifts.
mars.nasa.gov API
Explore real-time images, weather data, and location tracking from NASA's Perseverance and Curiosity rovers on Mars, while discovering mission details, rock sample findings, and the latest news from the Mars Exploration Program. Access rover photos, scientific discoveries, and multimedia content to stay updated on current Mars exploration activities.
geoportal.mp.gov.in API
Access detailed geospatial information about Madhya Pradesh including administrative boundaries at district, tehsil, and village levels, along with forest coverage and road network data. View and analyze geographic layers directly from official government sources to support mapping, planning, and regional analysis projects.
mawaqit.net API
Search for mosques near you and instantly access prayer times, detailed mosque information, calendars, and local weather conditions. Plan your visits with accurate scheduling data all from one convenient service.
zoom.earth API
Search Zoom Earth for places and get live environmental data including weather forecasts by coordinates, satellite imagery timestamps, active tropical storm tracks, active fires, and current platform status.
accuweather.com API
Get real-time weather conditions, multi-day forecasts, and health alerts for any location worldwide. Search cities and access detailed data including allergen information and air quality to plan your activities with confidence.
lightningmaps.org API
Track real-time lightning strikes across the globe with precise coordinates, timestamps, and accuracy measurements from the Blitzortung.org network. Query live strike data and access information about detector stations worldwide to monitor weather patterns and atmospheric activity as it happens.
Sensor.Community API
Monitor real-time and historical air quality data from thousands of sensors across different locations, filtering by area, country, sensor type, or custom criteria. Access current readings and archived datasets to track pollution patterns and analyze air quality trends over time.