Build Real Products Using Real Data

Harness the power of  87 unique APIs for your next big idea.

[ { "name": "french fries", "calories": 317.7, "serving_size_g": 100, "fat_total_g": 14.8, "fat_saturated_g": 2.3, "protein_g": 3.4, "sodium_mg": 212, "potassium_mg": 124, "cholesterol_mg": 0, "carbohydrates_total_g": 41.1, "fiber_g": 3.8, "sugar_g": 0.3 } ]
Get a Free API Key

No credit card required!



Trusted by over 300,000 developers, startups and enterprise businesses

Built by Developers for developers

An API is only as good as its documentation - that's why we hired the world's best technical writers to create the most clear and concise API specs.

Sample Request and Response

All our APIs contain example request URLs with parameters and complete sample responses. You can see exactly what data is returned and how to process it.

https://api.api-ninjas.com/v1/iplookup?address=73.9.149.180
{ "is_valid": true, "country": "United States", "country_code": "US", "region_code": "IL", "region": "Illinois", "city": "Chicago", "zip": "60620", "lat": 41.7405, "lon": -87.6587, "timezone": "America/Chicago", "isp": "Comcast Cable Communications, LLC", "address": "73.9.149.180" }
Python
import requests symbol = 'AAPL' api_url = 'https://api.api-ninjas.com/v1/stockprice?ticker={}'.format(symbol) response = requests.get(api_url, 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)

Example Code Snippets

Every API contains example code in 5+ programming languges so you can copy-paste the implementations directly into your projects.

Live Demos

More than 95% of our APIs contain live demos. No API Key required!

https://api.api-ninjas.com/v1/inflation?country=Canada


How we source our data

We know how important high-quality data is. Our rigorous 3-step process to vet all data sources carefully before integrating them into our API products.

1. Data provider audit

We carefully inspect not only the data source itself but also the provider's reliability, reputation, and business history.

In practice, this means that we use official primary sources whenever possible and only work with reputable data vendors.

2. Data quality inspection

Our engineering team manually inspects every data source to verify its accuracy and cleans the data before ingesting it into our systems.

For highly technical APIs we will also bring in industry experts to help validate the data.

3. Data coverage inspection

We also manually check all datasets for sufficient coverage. This often involves benchmarking against industry leaders and working with customers directly to make sure that we can service their use cases.

Want to try our APIs right now?

Get Started For Free

APIs you can rely on

150,000,000+

Requests per month

We use state-of-the-art server architecture to can handle high traffic loads and sporadic bursts of incoming requests.

99.99%

Uptime

Our servers have built-in redundancies against software and hardware failures to ensure that our APIs work without interruption.

< 250ms

Median Latency

With data centers distributed around the world, we serve our customers in over 110 countries with lightning-fast speed.

What will you do?

Whatever your goal is, API Ninjas is here for you.


Build amazing businesses

Design innovative applications and bring them to market with confidence.

Get started by browsing some example apps.

Impress your clients

Make your customers very, very happy by delivering top-quality software.

Check out software development tips from our blog.

Unlock your dream tech job

Create projects to impress tech recruiters and jumpstart your software engineering career.

Ready to Start Building?

Start developing your application with a free API key today.