GET /shopping/check
检查今天是否为特定国家的购物假日或促销活动。返回布尔结果以及活动详情(如果有)。适用于触发自动促销横幅、发送关于进行中优惠的推送通知,以及在 Black Friday 等重大购物活动期间调整定价策略。
country
必填
Country
| 名称 | 必填 | 默认值 | 描述 |
|---|---|---|---|
country |
是 | - | Country |
curl "https://nordapi.ee/api/v1/shopping/check?country=US"
curl "https://nordapi.ee/api/v1/shopping/check?country=US"
curl "https://nordapi.ee/api/v1/shopping/check?country=CN"
curl "https://nordapi.ee/api/v1/shopping/check?country=GB"
{
"active_events": [
{
"category": "seasonal",
"countries": [
"US",
"CA",
"GB",
"DE",
"FR"
],
"date": "2026-08-01",
"days_until": 0,
"description": "Extended shopping season. Electronics, clothing, school supplies, dorm furnishings.",
"duration_days": 45,
"end_date": "2026-09-14",
"id": "back_to_school",
"impact": "high",
"is_active": true,
"name": "Back to School",
"status": "active_now"
}
],
"country": "US",
"date": "2026-09-03",
"days_until_next": -33,
"is_shopping_holiday": true,
"next_event": {
"category": "seasonal",
"countries": [
"US",
"CA",
"GB",
"DE",
"FR"
],
"date": "2026-08-01",
"days_until": 0,
"description": "Extended shopping season. Electronics, clothing, school supplies, dorm furnishings.",
"duration_days": 45,
"end_date": "2026-09-14",
"id": "back_to_school",
"impact": "high",
"is_active": true,
"name": "Back to School",
"status": "active_now"
},
"success": true
}