Allergy Data API Service

Standardized, high-availability allergy data API to help enterprises integrate allergy alerting capabilities

Get your API key

200+ Countries

Global coverage with grid-level precision

Hourly refresh

Concentrations updated every hour

10×10 km Grid

High-resolution spatial granularity

Multi-Allergen

Pollen, dust mite, fungi & more

Quick start

Three steps to your first call. Most integrations are live in under a day.

STEP 01

Create an API key

Register at the developer portal and generate a key. The free tier allows 150 requests per day and needs no payment method.

STEP 02

Choose an endpoint

Every endpoint shares the same host, the same X-API-Key header, and the same response envelope — only the path and parameters change.

STEP 03

Make the call

Copy the cURL example below, replace the placeholder key, and you get structured allergen data back in a single request.

Authentication

Every request must carry an API key in the X-API-Key request header. Keys are scoped to the endpoints your account is subscribed to, so a valid key can still be rejected on an endpoint you have not subscribed to.

HTTP header required
X-API-Key: YOUR_API_KEY

Error responses

JSON 401 Unauthorized
{
  "code": 401,
  "msg": "API Key 无效或已停用",
  "data": null
}

The example above is the verbatim response — error messages are currently returned in Chinese. A localized msg is on the roadmap; branch on the numeric code field, not on the message text.

Core API Interfaces

GET

Multi-Allergen Concentration

Returns the concentration and allergy index for one allergen type at a given coordinate, resolved to the 10×10 km grid cell containing that point. The {type} path segment selects the allergen — pollen and dustmite are the most widely used; the full list is available in the developer portal.

10×10 km 3 Days
Endpoint https://api.allercast.cn/v1/global/grid/allergens/pollen?longitude=116.4074&latitude=39.9042&lang=en

Parameters

Parameter Name Type Required Description
type String Yes Allergen type, supplied as a path segment. pollen and dustmite are the most widely used.
longitude Number Yes Longitude, range -180 ~ 180
latitude Number Yes Latitude, range -90 ~ 90
lang String Yes Response language. v1 supports en only.

Response Example

JSON 200 OK
{
  "code": 0,
  "msg": "success",
  "data": {
    "regionCode": "CHN",
    "dailyInfo": [
      {
        "date": { "year": 2026, "month": 10, "day": 19 },
        "todayAllergy": {
          "level": 3,
          "precision": 2.4,
          "prompt": "Likely to trigger pollen allergy symptoms",
          "suggestList": [
            "Wear a mask outdoors",
            "Keep windows closed"
          ],
          "populationDensity": 112.346,
          "unit": "grains/m³",
          "allergyList": [
            {
              "code": "P01",
              "name": "Pine",
              "latinName": "Pinus",
              "value": 2,
              "populationDensity": 56.173,
              "unit": "grains/m³",
              "category": "Low"
            }
          ]
        }
      }
    ]
  }
}

Real-Time Allergen Data API

Get designated city/country allergy risk level, core allergen concentration and influencing factors

Covers 200+ countries globally 24 hours

Quick Start

Copy the endpoint, paste into your request, and receive structured allergen data in seconds.

GET /v1/global/grid/allergens/pollen
# Pollen concentration for a coordinate in Beijing
curl -X GET "https://api.allercast.cn/v1/global/grid/allergens/pollen?longitude=116.4074&latitude=39.9042&lang=en" \\
  -H "X-API-Key: YOUR_API_KEY"
import requests

url = "https://api.allercast.cn/v1/global/grid/allergens/pollen"
params = {
    "longitude": 116.4074,
    "latitude": 39.9042,
    "lang": "en"
}
headers = {
    "X-API-Key": "YOUR_API_KEY"
}

resp = requests.get(url, params=params, headers=headers)
print(resp.json())
const url = "https://api.allercast.cn/v1/global/grid/allergens/pollen?longitude=116.4074&latitude=39.9042&lang=en";

const resp = await fetch(url, {
  method: "GET",
  headers: {
    "X-API-Key": "YOUR_API_KEY"
  }
});

const data = await resp.json();
console.log(data);

Developer Portal

Full API reference, interactive documentation, and real-time testing tools.

Volume Pricing

Tiered progressive pricing — each tier rate applies only to requests within that tier. The more you use, the lower the marginal rate.

Free tier: 150 requests per day, per user (~4,500/month) — no credit card required. Overage is billed at the rates below.

Starter
50,000 requests / month
  • 50k × $6.00/1k (Tier 1) $300
Monthly total $300
Growth
300,000 requests / month
  • 100k × $6.00/1k (Tier 1) $600
  • 200k × $5.00/1k (Tier 2) $1,000
Monthly total $1,600
Enterprise
2,000,000 requests / month
  • 100k × $6.00/1k (Tier 1) $600
  • 400k × $5.00/1k (Tier 2) $2,000
  • 500k × $2.50/1k (Tier 3) $1,250
  • 1,000k × $0.60/1k (Tier 4) $600
Monthly total $4,450
Monthly Requests (per tier) Rate (per 1,000 requests) Cumulative Monthly Cost
0 – 100,000 $6.00 $0 – $600
100,001 – 500,000 $5.00 $600 – $2,600
500,001 – 1,000,000 $2.50 $2,600 – $3,850
1,000,001 – 5,000,000 $0.60 $3,850 – $6,250
5,000,000+ $0.30 $6,250+

Pricing is progressive: each tier rate applies only to the requests that fall within that tier — not to your entire volume. Need a custom plan? Contact our sales team for enterprise pricing.