Travel Information API

The Travel Information API enables users to find embassies, retrieve country details, explore activities, and obtain brief country overviews seamlessly.

About the API:  

The Travel Information API is a comprehensive tool designed to seamlessly integrate essential international data into applications, offering functionalities such as locating embassies abroad, retrieving detailed country information, exploring country-specific activities and obtaining concise summaries of nations. This API targets developers, businesses and users looking for a unified and efficient approach to accessing diverse global data.

The embassy locator feature allows users to effortlessly identify embassies and consulates in foreign countries. By providing the country name, users can access vital data on embassy locations.

Get detailed information about any country with the Country Details feature. From official languages, capital city and population to time zone. This feature provides a comprehensive overview, aimed at users interested in gaining in-depth knowledge about a specific country.

The versatility of the Travel Information API makes it suitable for a wide range of applications. Travel platforms can use embassy location services, companies engaged in global activities can benefit from detailed country information, media outlets can enrich their coverage with country-specific activities, and educational platforms can enhance their resources with accurate and up-to-date data.

The Travel Information API is a unified solution for applications that require seamless access to international data. Whether for travel assistance, business intelligence, media coverage or educational purposes, this API streamlines the process of obtaining accurate and diverse global information, contributing to a more informed and interconnected world.

What this API receives and what your API provides (input/output)?

It will receive parameters and provide you with a JSON.

 

What are the most common uses cases of this API?

  1. Fuel Price Comparison Apps: Enable users to compare gas prices at different stations to find the most cost-effective option.

    Route Planning Apps: Integrate real-time gas prices into navigation apps to optimize routes based on fuel costs.

    Expense Tracking Apps: Assist users in managing and tracking their fuel expenses by providing up-to-date gas prices.

    Budgeting Apps: Enhance budgeting tools by incorporating current gas prices, helping users plan and manage transportation costs.

    Fleet Management Systems: Optimize fuel expenses for businesses with multiple vehicles by integrating gas price data into fleet management software.

 

Are there any limitations to your plans?

Besides the number of API calls per month, there are no other limitations. 

Documentación de la API

Endpoints


To use this endpoint you must indicate the name of a country in the parameter.



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

Country activities - Características del Endpoint

Objeto Descripción
country [Requerido]
Probar Endpoint

RESPUESTA DE EJEMPLO DE LA 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."}]}}
                                                                                                                                                                                                                    
                                                                                                    

Country activities - CÓDIGOS DE EJEMPLO


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


    

To use this endpoint you must indicate the name of a country in the parameter.



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

Country details - Características del Endpoint

Objeto Descripción
country [Requerido]
Probar Endpoint

RESPUESTA DE EJEMPLO DE LA 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"]}
                                                                                                                                                                                                                    
                                                                                                    

Country details - CÓDIGOS DE EJEMPLO


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


    

To use this endpoint you must indicate the name of a country to receive the embassy of the destination country in the parameters.



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

Locate a Consulate Overseas - Características del Endpoint

Objeto Descripción
source [Requerido]
destination [Requerido]
Probar Endpoint

RESPUESTA DE EJEMPLO DE LA 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"}]}
                                                                                                                                                                                                                    
                                                                                                    

Locate a Consulate Overseas - CÓDIGOS DE EJEMPLO


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' 


    

To use this endpoint you must indicate the name of a country in the parameter.



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

Basic Information on a Country - Características del Endpoint

Objeto Descripción
country [Requerido]
Probar Endpoint

RESPUESTA DE EJEMPLO DE LA 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"}]}}
                                                                                                                                                                                                                    
                                                                                                    

Basic Information on a Country - CÓDIGOS DE EJEMPLO


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' 


    

Clave de Acceso a la API y Autenticación

Después de registrarte, a cada desarrollador se le asigna una clave de acceso a la API personal, una combinación única de letras y dígitos proporcionada para acceder a nuestro endpoint de la API. Para autenticarte con el Travel Information API simplemente incluye tu token de portador en el encabezado de Autorización.
Encabezados
Encabezado Descripción
Autorización [Requerido] Debería ser Bearer access_key. Consulta "Tu Clave de Acceso a la API" arriba cuando estés suscrito.

Precios Simples y Transparentes

Sin compromiso a largo plazo. Mejora, reduce o cancela en cualquier momento. La Prueba Gratuita incluye hasta 50 solicitudes.

🚀 PLAN CORPORATIVO A MEDIDA

Comienza en
$ 10.000/Año


  • Volumen Personalizado
  • Límite de solicitudes personalizado
  • Soporte al Cliente Especializado
  • Monitoreo de API en Tiempo Real

Funciones favoritas de los clientes

  • ✔︎ Paga Solo por Solicitudes Exitosas
  • ✔︎ Prueba Gratuita de 7 Días
  • ✔︎ Soporte Multilenguaje
  • ✔︎ Una Clave API, Todas las APIs.
  • ✔︎ Panel de Control Intuitivo
  • ✔︎ Manejo de Errores Integral
  • ✔︎ Documentación Amigable para Desarrolladores
  • ✔︎ Integración con Postman
  • ✔︎ Conexiones HTTPS Seguras
  • ✔︎ Tiempo de Actividad Fiable

Travel Information API FAQs

To use the Travel Information API, users can follow the documentation provided for authentication, API endpoints, request parameters and response handling.

The Travel Information API is a powerful tool that provides users with access to a range of travel-related data, including details on destinations, countries and other essential information to enhance travel-based applications.

There are different plans suits everyone including a free trial for small amount of requests, but it’s rate is limit to prevent abuse of the service.

Zyla provides a wide range of integration methods for almost all programming languages. You can use these codes to integrate with your project as you need.

Each endpoint returns JSON data. The "Country activities" endpoint provides a list of activities with titles and descriptions. The "Country details" endpoint returns comprehensive information about a country, including its capital, population, and official languages. The "Locate a Consulate Overseas" endpoint returns embassy addresses and contact information, while the "Basic Information on a Country" endpoint offers a summary and images related to the country.

Key fields vary by endpoint. For "Country activities," fields include "title" and "activity." The "Country details" endpoint includes "countryName," "capital," "population," and "officialLanguages." The "Locate a Consulate Overseas" endpoint provides "address" and "phone." The "Basic Information on a Country" endpoint features "info," "image_url," and "country_images."

Each endpoint requires the "country" parameter, which should be the name of the country you want information about. For example, to retrieve activities in Egypt, you would specify "Egypt" in the request. Ensure the country name is correctly spelled to receive accurate data.

The response data is structured in JSON format. Each endpoint returns a "data" object containing relevant information. For instance, the "Country details" endpoint returns a structured object with fields like "countryName" and "population," while the "Country activities" endpoint returns an array of activity objects.

The Travel Information API aggregates data from various reliable sources, including government databases, travel organizations, and international agencies. This ensures that the information provided is accurate and up-to-date, enhancing the reliability of the API for users.

Typical use cases include travel planning applications that need to provide users with country-specific activities, educational platforms requiring detailed country information, and businesses needing to locate embassies for international operations. The API can enhance user experience by delivering relevant and timely information.

Users can parse the JSON response to extract relevant information for their applications. For example, developers can display country details in a user-friendly format or list activities for travelers. Understanding the structure of the response allows for efficient data handling and presentation.

Data accuracy is maintained through regular updates and quality checks. The API sources information from reputable organizations and government entities, ensuring that the data reflects current conditions. Users can trust the information provided for planning and decision-making.

General FAQs

Zyla API Hub es como una gran tienda de APIs, donde puedes encontrar miles de ellas en un solo lugar. También ofrecemos soporte dedicado y monitoreo en tiempo real de todas las APIs. Una vez que te registres, puedes elegir qué APIs quieres usar. Solo recuerda que cada API necesita su propia suscripción. Pero si te suscribes a varias, usarás la misma clave para todas, lo que hace todo más fácil para ti.

Los precios se muestran en USD (dólar estadounidense), EUR (euro), CAD (dólar canadiense), AUD (dólar australiano) y GBP (libra esterlina). Aceptamos todas las principales tarjetas de débito y crédito. Nuestro sistema de pago utiliza la última tecnología de seguridad y está respaldado por Stripe, una de las compañías de pago más confiables del mundo. Si tienes algún problema para pagar con tarjeta, contáctanos en [email protected]


Además, si ya tienes una suscripción activa en cualquiera de estas monedas (USD, EUR, CAD, AUD, GBP), esa moneda se mantendrá para suscripciones posteriores. Puedes cambiar la moneda en cualquier momento siempre que no tengas suscripciones activas.

La moneda local que aparece en la página de precios se basa en el país de tu dirección IP y se proporciona solo como referencia. Los precios reales están en USD (dólar estadounidense). Cuando realices un pago, el cargo aparecerá en tu estado de cuenta en USD, incluso si ves el monto equivalente en tu moneda local en nuestro sitio web. Esto significa que no puedes pagar directamente en tu moneda local.

Ocasionalmente, un banco puede rechazar el cargo debido a sus configuraciones de protección contra fraude. Te sugerimos comunicarte con tu banco primero para verificar si están bloqueando nuestros cargos. También puedes acceder al Portal de Facturación y cambiar la tarjeta asociada para realizar el pago. Si esto no funciona y necesitas más ayuda, por favor contacta a nuestro equipo en [email protected]

Los precios se determinan mediante una suscripción recurrente mensual o anual, dependiendo del plan elegido.

Las llamadas a la API se descuentan de tu plan en base a solicitudes exitosas. Cada plan incluye una cantidad específica de llamadas que puedes realizar por mes. Solo las llamadas exitosas, indicadas por una respuesta con estado 200, se contarán en tu total. Esto asegura que las solicitudes fallidas o incompletas no afecten tu cuota mensual.

Zyla API Hub funciona con un sistema de suscripción mensual recurrente. Tu ciclo de facturación comenzará el día en que compres uno de los planes de pago, y se renovará el mismo día del mes siguiente. Así que recuerda cancelar tu suscripción antes si quieres evitar futuros cargos.

Para actualizar tu plan de suscripción actual, simplemente ve a la página de precios de la API y selecciona el plan al que deseas actualizarte. La actualización será instantánea, permitiéndote disfrutar inmediatamente de las funciones del nuevo plan. Ten en cuenta que las llamadas restantes de tu plan anterior no se transferirán al nuevo plan, por lo que debes considerar esto al actualizar. Se te cobrará el monto total del nuevo plan.

Para verificar cuántas llamadas a la API te quedan en el mes actual, revisa el campo 'X-Zyla-API-Calls-Monthly-Remaining' en el encabezado de la respuesta. Por ejemplo, si tu plan permite 1,000 solicitudes por mes y has usado 100, este campo mostrará 900 llamadas restantes.

Para ver el número máximo de solicitudes a la API que permite tu plan, revisa el encabezado de la respuesta 'X-Zyla-RateLimit-Limit'. Por ejemplo, si tu plan incluye 1,000 solicitudes por mes, este encabezado mostrará 1,000.

El encabezado 'X-Zyla-RateLimit-Reset' muestra el número de segundos hasta que tu límite se restablezca. Esto te indica cuándo tu conteo de solicitudes se reiniciará. Por ejemplo, si muestra 3,600, significa que faltan 3,600 segundos para que el límite se restablezca.

Sí, puedes cancelar tu plan en cualquier momento desde tu cuenta, seleccionando la opción de cancelación en la página de Facturación. Ten en cuenta que las actualizaciones, degradaciones y cancelaciones tienen efecto inmediato. Además, al cancelar ya no tendrás acceso al servicio, incluso si te quedaban llamadas en tu cuota.

Puedes contactarnos a través de nuestro canal de chat para recibir asistencia inmediata. Siempre estamos en línea de 8 a. m. a 5 p. m. (EST). Si nos contactas fuera de ese horario, te responderemos lo antes posible. Además, puedes escribirnos por correo electrónico a [email protected]

Para darte la oportunidad de probar nuestras APIs sin compromiso, ofrecemos una prueba gratuita de 7 días que te permite realizar hasta 50 llamadas a la API sin costo. Esta prueba solo se puede usar una vez, por lo que recomendamos aplicarla a la API que más te interese. Aunque la mayoría de nuestras APIs ofrecen prueba gratuita, algunas pueden no hacerlo. La prueba finaliza después de 7 días o cuando realices 50 solicitudes, lo que ocurra primero. Si alcanzas el límite de 50 solicitudes durante la prueba, deberás "Iniciar tu Plan de Pago" para continuar haciendo solicitudes. Puedes encontrar el botón "Iniciar tu Plan de Pago" en tu perfil bajo Suscripción -> Elige la API a la que estás suscrito -> Pestaña de Precios. Alternativamente, si no cancelas tu suscripción antes del día 7, tu prueba gratuita finalizará y tu plan se cobrará automáticamente, otorgándote acceso a todas las llamadas a la API especificadas en tu plan. Ten esto en cuenta para evitar cargos no deseados.

Después de 7 días, se te cobrará el monto total del plan al que estabas suscrito durante la prueba. Por lo tanto, es importante cancelar antes de que finalice el periodo de prueba. No se aceptan solicitudes de reembolso por olvidar cancelar a tiempo.

Cuando te suscribes a una prueba gratuita de una API, puedes realizar hasta 50 llamadas. Si deseas realizar más llamadas después de este límite, la API te pedirá que "Inicies tu Plan de Pago". Puedes encontrar el botón "Iniciar tu Plan de Pago" en tu perfil bajo Suscripción -> Elige la API a la que estás suscrito -> Pestaña de Precios.

Las Órdenes de Pago se procesan entre el día 20 y el 30 de cada mes. Si envías tu solicitud antes del día 20, tu pago será procesado dentro de ese período.


APIs Relacionadas


También te puede interesar