旅行信息 API

旅行信息API使用户能够无缝查找大使馆、获取国家详情、探索活动和获得简要的国家概述
通过 MCP 从您的 AI 代理使用此 API
支持 OpenClaw、Claude Code/Desktop、Cursor、Windsurf、Cline 以及任何兼容 MCP 的 AI 客户端。
文档和设置
通过封装此 MCP 创建技能: https://mcp.zylalabs.com/mcp?apikey=YOUR_ZYLA_API_KEY

关于API:  

旅行信息API是一个全面的工具,旨在将必要的国际数据无缝集成到应用程序中,提供定位海外大使馆、检索详细国家信息、探索特定国家活动和获取国家简要概述等功能。该API面向开发人员、企业和寻求统一高效访问多样化全球数据的用户。

大使馆定位器功能使用户能够轻松识别外国的使馆和领事馆。通过提供国家名称,用户可以访问关于使馆位置的重要数据。

通过国家详情功能获取任何国家的详细信息。包括官方语言、首都和人口以及时区。该功能提供全面概览,旨在满足希望深入了解特定国家的用户。

旅行信息API的多功能性使其适用于广泛的应用。旅行平台可以使用大使馆位置服务,从事全球活动的公司可以从详细的国家信息中受益,媒体机构可以通过特定国家的活动丰富报道,而教育平台可以通过准确和最新的数据增强其资源。

旅行信息API是需要无缝访问国际数据的应用程序的统一解决方案。无论是用于旅行协助、商业智能、媒体报道还是教育目的,该API都简化了获取准确和多样化全球信息的过程,为更知情和互联的世界做出贡献。

此API接收什么以及您的API提供什么(输入/输出)?

它将接收参数并提供JSON。

 

此API最常见的用例是什么?

  1. 燃油价格比较应用:使用户能够比较不同加油站的油价,以找到最具成本效益的选择。

    路线规划应用:将实时油价集成到导航应用中,以根据燃料成本优化路线。

    费用跟踪应用:通过提供最新的油价,帮助用户管理和追踪燃料费用。

    预算应用:通过整合当前油价增强预算工具,帮助用户规划和管理交通费用。

    车队管理系统:通过将油价数据集成到车队管理软件中,优化多辆车辆的企业燃料费用。

 

您的计划是否有任何限制?

除了每月的API调用次数之外,没有其他限制。

API 文档

端点


要使用此端点,您必须在参数中指明一个国家的名称



                                                                            
GET https://pr138-testing.zylalabs.com/api/3127/travel+information+api/3318/country+activities
                                                                            
                                                                        

国家活动 - 端点功能

对象 描述
country [必需]
测试端点

API 示例响应

       
                                                                                                        
                                                                                                                                                                                                                                                                                                                                        {"data":{"activities":[{"title":"Admire Alexandria","activity":"Nestling the Mediterranean, Egypt's 'second city' has a French colonial atmosphere and a relaxed Greek influence, a mix of continental patisseries, art deco architecture and crowded sandy beaches in summer. Don't miss the Roman Amphitheatre's mosaics or the modern Bibliotecha and museums. Take a walk along the corniche to work up an appetite for a dinner of freshly-caught fish."},{"title":"Discover the Valley of the Kings","activity":"The Valley of the Kings, in the Theban Hills, is where the mummified remains of many Egyptian pharaohs were interred. Although stripped of their contents centuries ago, the tombs still display fantastic wall paintings depicting the lives of the pharaohs. The most famous tomb is that of Tutankhamun, discovered in pristine condition by Howard Carter in 1922."},{"title":"Dive the Red Sea","activity":"The Red Sea justly deserves its worldwide reputation for underwater adventure. Teeming with colourful marine life, the crystalline waters are landscaped with coral and dramatic drop-offs. The Ras Mohamed National Park, a headland 20 km (12 miles) west of Sharm el-Sheikh, shows off this underwater world at its best."},{"title":"Experience Islamic Cairo","activity":"It's bustling and busy in ancient Islamic Cairo, but the crowds thin out along the serene street of Al-Muezz Al-Din, with spot lit mosques and mausoleums lining the pedestrianised cobbled street. A local will, doubtless, offer to take you up a minaret; ascend the one at Al-Azhar Mosque – home to the world's oldest university – for panoramic views."},{"title":"Explore the temples at Luxor","activity":"Straddling the Nile, Luxor is the site of the ancient city of Thebes. On the east bank lies the spectacular Temple of Karnak featuring epic statues, obelisks and lotus-columned halls. In the city centre is Luxor Temple, spectacular when lit up at night. Make the most of the experience by taking a gods-eye view in a hot-air balloon."},{"title":"Get lost in Khan-el Khalili bazaar","activity":"Take a trip to Cairo's famous labyrinthine, medieval Khan-el Khalili bazaar, where haggling for spices, copper, perfume and trinkets has been refined into an art form. Don't miss Fishawi's teahouse; in business for over 200 years, it is the ultimate place to people watch."},{"title":"Go on pilgrimage to Mount Sinai","activity":"For centuries, Christian pilgrims have made the journey to Mount Sinai to witness the sunrise over the desert landscape. The three-hour trek is breathtaking, but if it sounds too ambitious, stay overnight at the UNESCO-listed 6th-century Saint Catherine's Monastery, hire a camel and walk down in leisure."},{"title":"Kick back in Aswan","activity":"The former frontier town of Aswan is a popular stopping-point for cruise liners, and the feluccas drifting along the Nile at sunset is one of Egypt's enduring sights. Attractions include Elephantine Island and Elnabatat's Island (the 'island of plants'), upon which Lord Kitchener built a beautiful botanical garden in the 1890s that's still open to visitors today."},{"title":"Marvel at the Pyramids of Giza","activity":"Egypt's main tourist attraction has long been the Giza Necropolis on the edge of Cairo. One of the Seven Wonders of the Ancient World, the Great Pyramid dates back to around 2500BC. Wander the site to truly understand the enormity of the building task, or take in the sights by horse or camel, not forgetting to visit the Great Sphinx nearby."},{"title":"Play a round of golf","activity":"While it's not a sport readily associated with Egypt, the country has made quite a golfing name for itself and offers around 20 courses. They range from locations within sight of Cairo's Pyramids – the most famous being the Mena House Oberoi 18-hole course – to settings alongside the Nile and the Red Sea."},{"title":"Relax at Siwa Oasis","activity":"One of six oases in the vast Western Desert, and a good base for desert exploration, Siwa is a peaceful haven of palm-fringed saltwater lakes. Home to the Oracle Temple of Amun visited by Alexander the Great, Siwa is dramatically crowned by the 13th-century fortress ruins of Shali, best climbed at sunrise or sunset to avoid the fierce desert heat."},{"title":"Snorkel in Sharm el-Sheik","activity":"Diving is an ever-popular way to see the dazzling marine life and coral, however Egypt's spectacular coastline is accessible even without a wetsuit. Simply wade out with a mask or snorkel or take a glass-bottomed boat from the shores of Sharm el-Sheik and the fish will come to you."},{"title":"Take in the Old Kingdom at Saqqara and Dahshur","activity":"Few visitors know before arriving in Egypt that the country's Old Kingdom precedes the building of the Pyramids of Giza by many centuries. Acting as the necropolis to the ancient capital of Memphis, Saqqara's crowning glory is the stepped Pyramid of Djoser. Nearby Dahshur is famous for its Bent Pyramid and a huge field of royal tombs."},{"title":"Take to the Nile","activity":"Ply the river between Luxor and Aswan for that quintessential Nile experience. Egrets flock to the water's edge and Egypt's ancient archaeological wonders, including the temple of Kom Ombo, unfold like a storybook along the bank. Lasting between three and five days, take a traditional white-sailed felucca, or splash out on a dahabiya, a luxury furnished wooden barge."},{"title":"Test your skills as a camel trader","activity":"Not the place to buy souvenirs, frenetic (and fragrant) trading takes place most mornings from 0700 at the Camel market (Souq al-Gamaal). An entertaining assault on the senses, Camels are transported from Sudan to Birqash 35 km (20 miles) west of Cairo, before being prodded and poked by potential buyers."},{"title":"Traverse the Suez Canal","activity":"The best way to see this great feat of modern engineering is by boat; the view from the Peace Bridge that crosses the canal near Ismailiya comes a good second. The sight of giant tankers plying the narrow channel between the Red Sea with the Mediterranean is something you don't forget in a hurry."},{"title":"Wander the Abu Simbel temples","activity":"Dedicated to the Pharaoh Ramses II (1304-1237 BC), and his beloved queen Nefertari, the two temples at Abu Simbel stand on the shores of the stunning Lake Nasser. Discovered covered in sand by the Swiss explorer Burckhardt in 1813, they were later moved as part of a massive UNESCO-funded project to save them from the rising water of the lake."}]}}
                                                                                                                                                                                                                    
                                                                                                    

国家活动 - 代码片段


curl --location --request GET 'https://zylalabs.com/api/3127/travel+information+api/3318/country+activities?country=turkey' --header 'Authorization: Bearer YOUR_API_KEY' 


    

要使用此端点,您必须在参数中指明一个国家的名称



                                                                            
GET https://pr138-testing.zylalabs.com/api/3127/travel+information+api/3319/country+details
                                                                            
                                                                        

国家详情 - 端点功能

对象 描述
country [必需]
测试端点

API 示例响应

       
                                                                                                        
                                                                                                                                                                                                                                                                                                                                        {"countryName":"Egypt","continent":"Africa","officialLanguages":"Arabic","capital":"Cairo","government":"Unitary semi-presidential republic","borderLength":"2 665 km / 1 656 miles","population":"97 041 072","surfaceAreaSqMi":"386 874","surfaceAreaKm2":"1 002 000","populationDensitySqMi":"251","populationDensityKm2":"97","neighborsList":["Israel","Libya","Sudan"]}
                                                                                                                                                                                                                    
                                                                                                    

国家详情 - 代码片段


curl --location --request GET 'https://zylalabs.com/api/3127/travel+information+api/3319/country+details?country=turkey' --header 'Authorization: Bearer YOUR_API_KEY' 


    

要使用此端点,您必须在参数中指明一个国家的名称,以接收目的国的领事馆。


                                                                            
GET https://pr138-testing.zylalabs.com/api/3127/travel+information+api/3320/locate+a+consulate+overseas
                                                                            
                                                                        

在海外查找领事馆 - 端点功能

对象 描述
source [必需]
destination [必需]
测试端点

API 示例响应

       
                                                                                                        
                                                                                                                                                                                                                                                                                                                                        {"data":[{"address":"25, EL-FALAKI STR. BAB EL-LOUK Cairo","phone":"local: (02) 2797.8400international: +20.2.2797.8400"},{"address":"11 KAMEL EL KILANI STREET ALEXANDRIA","phone":"local: (03) 393.9086international: +20.3.393.9086"}]}
                                                                                                                                                                                                                    
                                                                                                    

在海外查找领事馆 - 代码片段


curl --location --request GET 'https://zylalabs.com/api/3127/travel+information+api/3320/locate+a+consulate+overseas?source=turkey&destination=usa' --header 'Authorization: Bearer YOUR_API_KEY' 


    

要使用此端点,您必须在参数中指明一个国家的名称



                                                                            
GET https://pr138-testing.zylalabs.com/api/3127/travel+information+api/3321/basic+information+on+a+country
                                                                            
                                                                        

国家基本信息 - 端点功能

对象 描述
country [必需]
测试端点

API 示例响应

       
                                                                                                        
                                                                                                                                                                                                                                                                                                                                        {"data":{"info":"For sheer diversity, Turkey (officially the Republic of Türkiye) is hard to beat. The country is best measured in multitudes – of people, natural landscapes and cultures. It is a land of vast open spaces and massive mountain ranges, fertile valleys and rugged coastline, fast-growing cities and sleepy villages, seaside resorts and remote beaches.Countless waves of invasion, rebellion and immigration have forged a country whose cultural depth and breadth may surprise visitors as they venture not just through major cities, but across the country.","image_url":"https://www.worldtravelguide.net/wp-content/uploads/2017/04/Think-Turkey-Country-Lanterns-485898597-sergeyskleznev-copy.jpg","country_images":[{"imageUrl":"https://www.worldtravelguide.net/wp-content/themes/wtg/images/main-banner1.jpg","title":""},{"imageUrl":"https://worldtravelguide.net/sites/default/files/96990057-753x320.jpg","title":"Hagia Sofia, Istanbul, Turkey"},{"imageUrl":"https://worldtravelguide.net/sites/default/files/new-images/753x320/gulet-boat-cruises-are-po-8379.jpg","title":"Gulet boat cruises are popular in Turkey"},{"imageUrl":"https://worldtravelguide.net/sites/default/files/new-images/753x320/turkey-is-great-for-water-8376.jpg","title":"Turkey is great for watersports"},{"imageUrl":"https://worldtravelguide.net/sites/default/files/new-images/753x320/bathe-in-pamukkales-warm-8373.jpg","title":"Bathe in Pamukkale's warm topaz blue pools"},{"imageUrl":"https://worldtravelguide.net/sites/default/files/new-images/753x320/go-rafting-on-the-emerald-8370.jpg","title":"Go rafting on the emerald Koprulucay River, Turkey"},{"imageUrl":"https://worldtravelguide.net/sites/default/files/new-images/753x320/istanbul-spice-market-8367.jpg","title":"Istanbul Spice Market"},{"imageUrl":"https://worldtravelguide.net/sites/default/files/new-images/753x320/capaddocia-turkey-8361.jpg","title":"Capaddocia, Turkey"}]}}
                                                                                                                                                                                                                    
                                                                                                    

国家基本信息 - 代码片段


curl --location --request GET 'https://zylalabs.com/api/3127/travel+information+api/3321/basic+information+on+a+country?country=Turkey' --header 'Authorization: Bearer YOUR_API_KEY' 


    

API 访问密钥和身份验证

注册后,每个开发者都会被分配一个个人 API 访问密钥,这是一个唯一的字母和数字组合,用于访问我们的 API 端点。要使用 旅行信息 API 进行身份验证,只需在 Authorization 标头中包含您的 bearer token。
标头
标头 描述
授权 [必需] 应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。

简单透明的定价

无长期承诺。随时升级、降级或取消。 免费试用包括最多 50 个请求。

🚀 企业版

起价
$ 10,000/年


  • 自定义数量
  • 自定义速率限制
  • 专业客户支持
  • 实时 API 监控

客户喜爱的功能

  • ✔︎ 仅支付成功请求
  • ✔︎ 7 天免费试用
  • ✔︎ 多语言支持
  • ✔︎ 一个 API 密钥,所有 API。
  • ✔︎ 直观的仪表板
  • ✔︎ 全面的错误处理
  • ✔︎ 开发者友好的文档
  • ✔︎ Postman 集成
  • ✔︎ 安全的 HTTPS 连接
  • ✔︎ 可靠的正常运行时间

旅行信息 API FAQs

要使用旅行信息API,用户可以参考提供的文档进行身份验证、API端点、请求参数和响应处理

旅游信息API是一个强大的工具,提供用户访问一系列与旅行相关的数据,包括目的地、国家和其他基本信息,以增强基于旅行的应用程序

有不同的计划适合每个人,包括对少量请求的免费试用,但其速率有限制以防止滥用服务

Zyla为几乎所有编程语言提供了广泛的集成方法。您可以根据需要使用这些代码与您的项目进行集成

每个端点返回 JSON 数据 “国家活动” 端点提供了活动列表,包含标题和描述 “国家详细信息” 端点返回有关国家的综合信息,包括首都、人口和官方语言 “在海外寻找领事馆” 端点返回大使馆地址和联系信息,而 “国家基本信息” 端点提供与国家相关的摘要和图片

关键字段因终端而异。对于“国家活动”,字段包括“标题”和“活动”。“国家详情”终端包括“国家名称”、“首都”、“人口”和“官方语言”。“查找海外领事馆”终端提供“地址”和“电话”。“国家基本信息”终端包含“信息”、“图片网址”和“国家图片”

每个端点都需要“国家”参数,该参数应为您希望获取信息的国家名称。例如,要检索埃及的活动,您需要在请求中指定“埃及”。确保国家名称拼写正确以接收准确的数据

响应数据采用JSON格式结构化。每个端点返回一个包含相关信息的“data”对象。例如,“国家详细信息”端点返回一个结构化对象,包含“countryName”和“population”等字段,而“国家活动”端点返回一个活动对象数组

旅行信息API从各种可靠来源汇总数据,包括政府数据库、旅行组织和国际机构。这确保了提供的信息准确且最新,从而增强了API对用户的可靠性

典型的使用案例包括需要为用户提供特定国家活动的旅行规划应用程序、需要详细国家信息的教育平台,以及需要查找国际业务大使馆的企业 该API可以通过提供相关和及时的信息来增强用户体验

用户可以解析JSON响应以提取其应用程序的相关信息 例如开发者可以以用户友好的格式显示国家详细信息或列出旅行者的活动 理解响应的结构可以实现高效的数据处理和展示

数据准确性通过定期更新和质量检查得以保持 该API从信誉良好的组织和政府机构获取信息 确保数据反映当前状况 用户可以信任提供的信息用于规划和决策

一般常见问题

Zyla API Hub 就像一个大型 API 商店,您可以在一个地方找到数千个 API。我们还为所有 API 提供专门支持和实时监控。注册后,您可以选择要使用的 API。请记住,每个 API 都需要自己的订阅。但如果您订阅多个 API,您将为所有这些 API 使用相同的密钥,使事情变得更简单。

价格以 USD(美元)、EUR(欧元)、CAD(加元)、AUD(澳元)和 GBP(英镑)列出。我们接受所有主要的借记卡和信用卡。我们的支付系统使用最新的安全技术,由 Stripe 提供支持,Stripe 是世界上最可靠的支付公司之一。如果您在使用卡片付款时遇到任何问题,请通过 [email protected]


此外,如果您已经以这些货币中的任何一种(USD、EUR、CAD、AUD、GBP)拥有有效订阅,该货币将保留用于后续订阅。只要您没有任何有效订阅,您可以随时更改货币。

定价页面上显示的本地货币基于您 IP 地址的国家/地区,仅供参考。实际价格以 USD(美元)为单位。当您付款时,即使您在我们的网站上看到以本地货币显示的等值金额,您的卡片对账单上也会以美元显示费用。这意味着您不能直接使用本地货币付款。

有时,银行可能会因其欺诈保护设置而拒绝收费。我们建议您首先联系您的银行,检查他们是否阻止了我们的收费。此外,您可以访问账单门户并更改关联的卡片以进行付款。如果这些方法不起作用并且您需要进一步帮助,请通过 [email protected]

价格由月度或年度订阅决定,具体取决于所选计划。

API 调用根据成功请求从您的计划中扣除。每个计划都包含您每月可以进行的特定数量的调用。只有成功的调用(由状态 200 响应指示)才会计入您的总数。这确保失败或不完整的请求不会影响您的月度配额。

Zyla API Hub 采用月度订阅系统。您的计费周期将从您购买付费计划的那一天开始,并在下个月的同一日期续订。因此,如果您想避免未来的费用,请提前取消订阅。

要升级您当前的订阅计划,只需转到 API 的定价页面并选择您要升级到的计划。升级将立即生效,让您立即享受新计划的功能。请注意,您之前计划中的任何剩余调用都不会转移到新计划,因此在升级时请注意这一点。您将被收取新计划的全部金额。

要检查您本月剩余多少 API 调用,请参考响应标头中的 "X-Zyla-API-Calls-Monthly-Remaining" 字段。例如,如果您的计划允许每月 1,000 个请求,而您已使用 100 个,则响应标头中的此字段将显示 900 个剩余调用。

要查看您的计划允许的最大 API 请求数,请检查 "X-Zyla-RateLimit-Limit" 响应标头。例如,如果您的计划包括每月 1,000 个请求,此标头将显示 1,000。

"X-Zyla-RateLimit-Reset" 标头显示您的速率限制重置之前的秒数。这告诉您何时您的请求计数将重新开始。例如,如果它显示 3,600,则意味着还有 3,600 秒直到限制重置。

是的,您可以随时通过访问您的账户并在账单页面上选择取消选项来取消您的计划。请注意,升级、降级和取消会立即生效。此外,取消后,您将不再有权访问该服务,即使您的配额中还有剩余调用。

您可以通过我们的聊天渠道联系我们以获得即时帮助。我们始终在线,时间为上午 8 点至下午 5 点(EST)。如果您在该时间之后联系我们,我们将尽快回复您。此外,您可以通过 [email protected]

为了让您有机会在没有任何承诺的情况下体验我们的 API,我们提供 7 天免费试用,允许您免费进行最多 50 次 API 调用。此试用只能使用一次,因此我们建议将其应用于您最感兴趣的 API。虽然我们的大多数 API 都提供免费试用,但有些可能不提供。试用在 7 天后或您进行了 50 次请求后结束,以先发生者为准。如果您在试用期间达到 50 次请求限制,您需要"开始您的付费计划"以继续发出请求。您可以在个人资料中的订阅 -> 选择您订阅的 API -> 定价标签下找到"开始您的付费计划"按钮。或者,如果您在第 7 天之前不取消订阅,您的免费试用将结束,您的计划将自动计费,授予您访问计划中指定的所有 API 调用的权限。请记住这一点以避免不必要的费用。

7 天后,您将被收取试用期间订阅的计划的全额费用。因此,在试用期结束前取消很重要。因忘记及时取消而提出的退款请求不被接受。

当您订阅 API 免费试用时,您可以进行最多 50 次 API 调用。如果您希望超出此限制进行额外的 API 调用,API 将提示您执行"开始您的付费计划"。您可以在个人资料中的订阅 -> 选择您订阅的 API -> 定价标签下找到"开始您的付费计划"按钮。

付款订单在每月 20 日至 30 日之间处理。如果您在 20 日之前提交请求,您的付款将在此时间范围内处理。


相关 API


您可能还喜欢