← 智能数据整合

旅行费用计算器

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": 798004.3384,
    "converted_currency": "JPY",
    "original": 5.0e3,
    "original_currency": "USD",
    "rate": 159.60086768
  },
  "destination_conditions": {
    "timezone": {
      "date": "04/06/2026",
      "datetime": "2026-04-06T05:47:54.0248165",
      "day_of_week": "Monday",
      "time": "05:47",
      "timezone": "Asia/Tokyo",
      "utc_offset": null
    },
    "weather": {
      "humidity": 91,
      "temperature_c": 6.3,
      "wind_speed_kmh": 4.7
    }
  },
  "from": {
    "code": "US",
    "country": "United States",
    "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": "Japan",
    "currency": "JPY"
  },
  "upcoming_holidays": [
    {
      "date": "2026-04-29",
      "name": "Shōwa Day"
    },
    {
      "date": "2026-05-04",
      "name": "Constitution Memorial Day"
    },
    {
      "date": "2026-05-04",
      "name": "Greenery Day"
    },
    {
      "date": "2026-05-05",
      "name": "Children's Day"
    },
    {
      "date": "2026-07-20",
      "name": "Marine Day"
    }
  ]
}