← 智能数据整合

旅行费用计算器

GET /mashup/travel/cost

计算两国之间的综合旅行费用估算,结合货币汇率、购买力平价 (PPP) 调整、目的地天气预报和目的地即将到来的假日。将你的预算转换为当地货币并根据当地购买力进行调整,让你了解你的钱实际价值。适用于旅行规划应用、预算计算器和行程比较工具。

参数

from 必填

Origin country

to 必填

Destination

budget 可选 默认: 1000

Budget

请求示例

基本用法
curl "https://nordapi.ee/api/v1/mashup/travel/cost?from=US&to=JP&budget=5000"
US to Japan travel cost with $5000 budget
curl "https://nordapi.ee/api/v1/mashup/travel/cost?from=US&to=JP&budget=5000"
Norway to Thailand on a budget
curl "https://nordapi.ee/api/v1/mashup/travel/cost?from=NO&to=TH&budget=2000"
UK to Spain with default budget
curl "https://nordapi.ee/api/v1/mashup/travel/cost?from=GB&to=ES"

实时响应

{
  "budget": {
    "converted": null,
    "converted_currency": "JPY",
    "original": 5.0e3,
    "original_currency": "USD",
    "rate": null
  },
  "destination_conditions": {
    "timezone": null,
    "weather": null
  },
  "from": {
    "code": "US",
    "country": null,
    "currency": "USD"
  },
  "holiday_alert": null,
  "purchasing_power": {
    "adjusted_budget": 472313.0,
    "interpretation": "Your money goes 9346.3% less far at the destination",
    "ppp_ratio": 94.4626
  },
  "success": true,
  "tax_comparison": {
    "destination_vat": null,
    "origin_vat": null
  },
  "to": {
    "code": "JP",
    "country": null,
    "currency": "JPY"
  },
  "upcoming_holidays": [
    {
      "date": "2026-09-21",
      "name": "Respect for the Aged Day"
    },
    {
      "date": "2026-09-23",
      "name": "Autumnal Equinox Day"
    },
    {
      "date": "2026-10-12",
      "name": "Sports Day"
    },
    {
      "date": "2026-11-03",
      "name": "Culture Day"
    },
    {
      "date": "2026-11-23",
      "name": "Labour Thanksgiving Day"
    }
  ]
}