By barkal
Updated 4 months ago
instafly-pro Overview
instafly pro version : Add some magic to your booking site
add first rating
Followers on API
Follow this API
resourcesProvider WebsiteTerms of Service
More Details

Instafly Pro Version
> Add somemagic to your websites and apps with this award winning API

Your users will pass you an instagram link, or an image of a mysterious vacation spot, and your application will call our API to return the name of the vacation spot, and the city and country. But not only that, we will also provide a link to compare flights to the nearest airports to that vacation spot, and a list of hotels in that area to choose from.

To test the api right away with NO code, make sure you're logged in to RapidAapi and head to : (bookmark it now!)

Here's a sample response body that the API will return for the following image :

    "landmarkName": "Rijksmuseum",
    "lmLatitude": "52.370569",
    "lmLongitude": "4.89166259765625",
    "confidence": 80.4652,
    "destinationFlightInfoList": [
            "airport": {
                "airportName": "Amsterdam Airport Schiphol",
                "airportCity": "Amsterdam",
                "airportCountry": "Netherlands",
                "airportIATAcode": "AMS",
                "airportLatitude": "52.308601",
                "airportLongitude": "4.76389",
                "zone": "Europe/Amsterdam"
            "kmDistanceFromLandmark": 11.08,
            "mlDistanceFromLandmark": 6.89,
            "flightBookingLink": "",
            "hotelBookingLink": ""

Most of the elements above are self explantory, the confidence score details how confident the API was in recognizing the location of the image.

To call the API from your application, all you have to do is post this simple request:"")
.header("Content-Type", "application/json")
.end(function (result) {
  console.log(result.status, result.headers, result.body);

Optionally you can add the departure airport code for example JFK (John F Keneddy Airport , New York)
or you can add a latitude and logitude of departure point, as seen below:"")
.header("Content-Type", "application/json")
"originAirportIATACode": "AIRPORT_CODE"
"currentLatitude": 0.0,
"currentLongitude": 0.0,
"travelPayoutsMarker": "123456",
.end(function (result) {
  console.log(result.status, result.headers, result.body);

If no match found the departure location, the API will continue to default to "YYC", Calgary International airport as always.
If you pass all optional values, the departure airport and a latitude and longitude of a departure location, the airport code will override the departure location.

Another default (that will be soon changed) are the dates, the departure date is set to always be 2 weeks in the future, and the return date is set after 2 weeks after the departure date.

TravelPayouts Affiliates can pass in their marker in the request body as a string at "travelPayoutsMarker" and all the flights and hotel links that are returned will have their affiliate marker added to the search url.
To check if the shortened URL has your marker and not the default one, you can chaeck the URL at an online tool like Check Short URL .

The examples above is in Node.JS , but you can find code examples written in the most common Programming languages here

Because instafly API returns all the elements needed to request flight availability, it's easy to integrate with other booking systems

You can include your TravelPayOuts Affiliate Marker to add it to the returned links for flight and hotel search.

here are some test images, and yes, including indoor images :

Quick copy and paste examples :
Eiffel Tower, Paris

Instagram link (Colosseum)

Vasa Mueseum, Stockholm (Indoors image)

Sagrada Familia, Barcelona

Marienplatz, Munich

Romer, Frankfurt

Dancing House, Prague

Freedom Monument, Riga

Victory Column, Berlin

Golden Gate Bridge, San Francisco To find more about the price options for the pro version visit: If you have any questions feel free to reach out at the discussion forum: Happy coding! We're always improving the API, expect frequent updates and iterations .

Have a question about this API?Ask the API Provider.
Developers who viewed instafly-pro also viewed

Install SDK for (Node.js)Unirest

OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication