Helicopter API

The Helicopter API provides detailed technical specs on hundreds of helicopter models.

/v1/helicopter

HTTP GET

Returns a list of helicopter that match the given parameters. This API only supports helicopters - for airplane model specs please use our Aircraft API .

Parameters

At least one of the following parameters (excluding the limit parameter) must be set.

manufacturer - company that designed and built the helicopter.

model - helicopter model name.

min_speed - minimum max. air speed in knots.

max_speed - maximum max. air speed in knots.

min_range - minimum range of the helicopter in nautical miles.

max_range - maximum range of the helicopter in nautical miles.

min_length - minimum length of the helicopter in feet.

max_length - maximum length of the helicopter in feet.

min_height - minimum height of the helicopter in feet.

max_height - maximum height of the helicopter in feet.

limit (optional) - How many results to return. Must be between 1 and 30. Default is 1.

Headers

X-Api-Key (required) - API Key associated with your account.

Sample Request URL

Live Demo!

https://api.api-ninjas.com/v1/helicopter?manufacturer=&model=

Sample Response

[
  {
    "manufacturer": "Bell Helicopter",
    "model": "206L-3",
    "max_speed_sl_knots": "130",
    "cruise_speed_sl_knots": "110",
    "range_nautical_miles": "305",
    "cruise_time_min": "180",
    "fuel_capacity_gallons": "110",
    "gross_external_load_lbs": "4250",
    "external_load_limit_lbs": "2000",
    "main_rotor_diameter_ft": "37.0",
    "num_blades": "2",
    "blade_material": "metal",
    "rotor_type": "SRT",
    "storage_width_ft": "7.333",
    "length_ft": "42.667",
    "height_ft": "10.5"
  }
]

import requests

manufacturer = 'Bell'
model = '206'
api_url = 'https://api.api-ninjas.com/v1/helicopter?manufacturer={}&model={}'.format(manufacturer, model)

response = requests.get(api_url + city, headers={'X-Api-Key': 'YOUR_API_KEY'})
if response.status_code == requests.codes.ok:
    print(response.text)
else:
    print("Error:", response.status_code, response.text)
var manufacturer = 'Bell'
var model = '206'
$.ajax({
    method: 'GET',
    url: 'https://api.api-ninjas.com/v1/helicopter?manufacturer=' + manufacturer + '&model=' + model,
    headers: { 'X-Api-Key': 'YOUR_API_KEY'},
    contentType: 'application/json',
    success: function(result) {
        console.log(result);
    },
    error: function ajaxError(jqXHR) {
        console.error('Error: ', jqXHR.responseText);
    }
});
const request = require('request');

var manufacturer = 'Bell';
var model = '206'
request.get({
  url: 'https://api.api-ninjas.com/v1/helicopter?manufacturer=' + manufacturer + '&model=' + model,
  headers: {
    'X-Api-Key': 'YOUR_API_KEY'
  },
}, function(error, response, body) {
  if(error) return console.error('Request failed:', error);
  else if(response.statusCode != 200) return console.error('Error:', response.statusCode, body.toString('utf8'));
  else console.log(body)
});
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;

import com.fasterxml.jackson.databind.ObjectMapper;

URL url = new URL("https://api.api-ninjas.com/v1/helicopter?manufacturer=Bell&model=206");
HttpURLConnection connection = (HttpURLConnection) url.openConnection();
connection.setRequestProperty("accept", "application/json");
InputStream responseStream = connection.getInputStream();
ObjectMapper mapper = new ObjectMapper();
JsonNode root = mapper.readTree(responseStream);
System.out.println(root.path("fact").asText());
let manufacturer = "Bell".addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed)
let model = "206".addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed)
let url = URL(string: "https://api.api-ninjas.com/v1/helicopter?manufacturer="+manufacturer+"&model="+model!)!
var request = URLRequest(url: url)
request.setValue("YOUR_API_KEY", forHTTPHeaderField: "X-Api-Key")
let task = URLSession.shared.dataTask(with: request) {(data, response, error) in
    guard let data = data else { return }
    print(String(data: data, encoding: .utf8)!)
}
task.resume()
If your programming language is not listed in the Code Example above, you can still make API calls by using a HTTP request library written in your programming language and following the above documentation.