← 世界数据

检查购物假日

GET /shopping/check

检查今天是否为特定国家的购物假日或促销活动。返回布尔结果以及活动详情(如果有)。适用于触发自动促销横幅、发送关于进行中优惠的推送通知,以及在 Black Friday 等重大购物活动期间调整定价策略。

参数

country 必填

Country

请求示例

基本用法
curl "https://nordapi.ee/api/v1/shopping/check?country=US"
Check US shopping holidays today
curl "https://nordapi.ee/api/v1/shopping/check?country=US"
Check Chinese shopping holidays today
curl "https://nordapi.ee/api/v1/shopping/check?country=CN"
Check UK shopping holidays today
curl "https://nordapi.ee/api/v1/shopping/check?country=GB"

实时响应

{
  "active_events": [
    {
      "category": "seasonal",
      "countries": [
        "GLOBAL"
      ],
      "date": "2026-04-03",
      "days_until": 0,
      "description": "Spring sales event. Fashion, home & garden, chocolate/confectionery.",
      "duration_days": 4,
      "end_date": "2026-04-06",
      "id": "easter_sales",
      "impact": "high",
      "is_active": true,
      "name": "Easter Sales",
      "status": "active_now"
    }
  ],
  "country": "US",
  "date": "2026-04-05",
  "days_until_next": -2,
  "is_shopping_holiday": true,
  "next_event": {
    "category": "seasonal",
    "countries": [
      "GLOBAL"
    ],
    "date": "2026-04-03",
    "days_until": 0,
    "description": "Spring sales event. Fashion, home & garden, chocolate/confectionery.",
    "duration_days": 4,
    "end_date": "2026-04-06",
    "id": "easter_sales",
    "impact": "high",
    "is_active": true,
    "name": "Easter Sales",
    "status": "active_now"
  },
  "success": true
}