International Space Station Current Location

Location

location

Get Live Location of ISS


/pet

Usage and SDK Samples

curl -X GET "https://api.open-notify.org/open-notify/pet?callback="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LocationApi;

import java.io.File;
import java.util.*;

public class LocationApiExample {

    public static void main(String[] args) {
        
        LocationApi apiInstance = new LocationApi();
        String apiecoKey = apiecoKey_example; // String | 
        String callback = callback_example; // String | Appending a callback request to the query string will return JSONP
        try {
            inline_response_200 result = apiInstance.location(apiecoKey, callback);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LocationApi#location");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LocationApi;

public class LocationApiExample {

    public static void main(String[] args) {
        LocationApi apiInstance = new LocationApi();
        String apiecoKey = apiecoKey_example; // String | 
        String callback = callback_example; // String | Appending a callback request to the query string will return JSONP
        try {
            inline_response_200 result = apiInstance.location(apiecoKey, callback);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LocationApi#location");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; //  (optional)
String *callback = callback_example; // Appending a callback request to the query string will return JSONP (optional)

LocationApi *apiInstance = [[LocationApi alloc] init];

// Get Live Location of ISS
[apiInstance locationWith:apiecoKey
    callback:callback
              completionHandler: ^(inline_response_200 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var InternationalSpaceStationCurrentLocation = require('international_space_station_current_location');

var api = new InternationalSpaceStationCurrentLocation.LocationApi()

var opts = { 
  'apiecoKey': apiecoKey_example, // {String} 
  'callback': callback_example // {String} Appending a callback request to the query string will return JSONP
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.location(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class locationExample
    {
        public void main()
        {
            
            var apiInstance = new LocationApi();
            var apiecoKey = apiecoKey_example;  // String |  (optional) 
            var callback = callback_example;  // String | Appending a callback request to the query string will return JSONP (optional) 

            try
            {
                // Get Live Location of ISS
                inline_response_200 result = apiInstance.location(apiecoKey, callback);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LocationApi.location: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\LocationApi();
$apiecoKey = apiecoKey_example; // String | 
$callback = callback_example; // String | Appending a callback request to the query string will return JSONP

try {
    $result = $api_instance->location($apiecoKey, $callback);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LocationApi->location: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LocationApi;

my $api_instance = WWW::SwaggerClient::LocationApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $callback = callback_example; # String | Appending a callback request to the query string will return JSONP

eval { 
    my $result = $api_instance->location(apiecoKey => $apiecoKey, callback => $callback);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LocationApi->location: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.LocationApi()
apiecoKey = apiecoKey_example # String |  (optional)
callback = callback_example # String | Appending a callback request to the query string will return JSONP (optional)

try: 
    # Get Live Location of ISS
    api_response = api_instance.location(apiecoKey=apiecoKey, callback=callback)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LocationApi->location: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key
String
Query parameters
Name Description
callback
String
Appending a callback request to the query string will return JSONP

Responses

Status: 200 - successful