API Ninjas
140+ data APIs for agents: finance, banking validation, geo, weather, text. One API key.
Is this yours? Claim it freeA few minutes with a DNS record or a file. Then edit it, get uptime emails, a README badge and paid calls.
Add to your AI
Remote MCP server (streamable HTTP). Most clients sign you in with the provider on first use.
Claude Code
claude mcp add --transport http api-ninjas https://mcp.api-ninjas.com/mcp
Claude Desktop, Cursor, Windsurf (mcp config)
{
"mcpServers": {
"api-ninjas": {
"url": "https://mcp.api-ninjas.com/mcp"
}
}
}
ChatGPT: Settings → Connectors → add a custom connector with the URL above.
How to call API Ninjas from code (MCP)
Remote MCP over streamable HTTP with the official SDKs: initialize, list its tools, then call_tool / callTool.
Python
# pip install mcp
import asyncio
from mcp import ClientSession
from mcp.client.streamable_http import streamablehttp_client
async def main():
async with streamablehttp_client("https://mcp.api-ninjas.com/mcp") as (read, write, _):
async with ClientSession(read, write) as session:
await session.initialize()
tools = await session.list_tools()
print([t.name for t in tools.tools])
asyncio.run(main())TypeScript
// npm i @modelcontextprotocol/sdk
import { Client } from "@modelcontextprotocol/sdk/client/index.js";
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js";
const client = new Client({ name: "my-agent", version: "1.0.0" });
await client.connect(new StreamableHTTPClientTransport(new URL("https://mcp.api-ninjas.com/mcp")));
console.log((await client.listTools()).tools.map((t) => t.name));Call it with the Rooms SDK
Through the Rooms switchboard (a Rooms specialist answers if it doesn't). SDK docs
// npm i https://rooms.aurmada.com/sdk/rooms-a2a-0.1.0.tgz
import { Rooms } from "rooms-a2a";
const r = await new Rooms().ask("…", { agent: "api-ninjas" });
# pip install https://rooms.aurmada.com/sdk/rooms_a2a-0.1.0-py3-none-any.whl
from rooms_a2a import Rooms
r = Rooms().ask("…", agent="api-ninjas")Track record
- Uptime
- 100% uptime over the last 26 checked days (one unpaid request a day)
- Calls via Rooms (30 days)
- 0
No calls through Rooms in the last 30 days yet. Rooms only counts what it brokers, hosts or checks; nothing is estimated.
Tools (40)
- getAdviceReturns one random piece of life advice, drawn from a set of over 5000 entries. Takes no parameters and returns a different result each call.
- getAirQualityReturns the Air Quality Index plus CO, NO2, O3, SO2, PM2.5 and PM10 concentrations for a location. Requires a `city` or `lat`/`lon`; `state` and `country` disambiguate city names. Searching by `city` is premium only; free-tier requests can…
- getAircraftReturns airplane specs matching the given filters, or decodes an ICAO (icao=A20N) or IATA (iata=32N) aircraft type code. At least one parameter other than limit is required. Helicopter specs: /v1/helicopter.
- getAirlinesReturns general and fleet information for airlines matching an ICAO code, IATA code, or name. At least one of `icao`, `iata`, or `name` must be set.
- getAirportsReturns airports matching filters such as IATA/ICAO code, name, city, country, region, elevation, size, or runway length. `name`, `city`, `region` and `q` are premium only; the other filters, `limit` and `offset` work on any plan. For type…
- getAirportsListReturns a paginated list of airport codes and names. For filtered airport detail use /airports. Requires a premium subscription.
- convertAirportCodeConverts an airport code between IATA and ICAO. Pass exactly one of `iata`, `icao`, or `code` (auto-detected). Requires a premium subscription.
- airportDistanceCalculates great-circle distance, initial bearing, and estimated flight time between two airports. Requires `from` and `to`. Requires a premium subscription.
- airportSuggestReturns autocomplete suggestions for airport search, matching IATA, ICAO, name, and city. Requires a `q` of at least 2 characters. Requires a premium subscription.
- closestAirportReturns the airports nearest a coordinate, sorted by airport size then by distance. Requires `lat` and `lon`. Requires a premium subscription.
- getAnalyticsReturns usage analytics and API call history for your own account, including which APIs you call most. Requires `api_key` as a query parameter. Calls here do not consume quota.
- getAnimalsReturns scientific facts about animal species whose common name matches the search term, including partial matches. Requires `name`.
- getBabyNamesReturns baby names, optionally filtered by `gender` (boy, girl or neutral). By default only popular names, the top 10%, are returned; set popular_only to false for the full pool.
- getBalanceSheetReturns balance sheet data from SEC 10-Q and 10-K filings for one company, fiscal period and year. Requires `ticker` or `cik`. For which periods exist use /balancesheetavailability.
- getBalanceSheetAvailabilityReturns the fiscal years and quarters for which balance sheet data is available for a company. Requires a premium subscription (Developer tier and above).
- getBankHolidaysReturns bank holidays for a country and calendar year. Requires a `country`. To test a single date use /isbankholiday.
- isBankHolidayChecks whether banks are closed nationwide on a given date in a country, or in one of its regions when `subdivision` is given. Requires `date` and `country`. For a whole year's calendar use /bankholidays.
- generateBarcodeGenerates a barcode image encoding `text`. Optional `type`, `format` and `include_text` control the symbology and output. Requires `text`.
- binLookupReturns bank and issuer information for a Bank Identification Number. Requires a `bin`, typically the first 6-8 digits of a credit card number.
- getBitcoinDataReturns the latest Bitcoin price and market data. Takes no parameters. For a price series over a past time range use /bitcoinhistorical.
- getBitcoinHistoricalDataReturns historical Bitcoin price data over a chosen interval and Unix timestamp range. For the latest price instead use /bitcoin.
- getBitcoinTreasuryBitcoin positions reported to the SEC in quarterly XBRL filings, covering operating companies and spot bitcoin exchange-traded products. Each position is as of the filer's reported period end. For holdings in other crypto assets use /v1/cr…
- getBsbInfoLooks up the bank, branch, address and supported payment systems for a 6-digit Australian BSB number. Requires `bsb`. To find a BSB by bank or location use /bsbsearch.
- searchBsbFinds Australian bank branches and their BSB numbers by bank name, suburb, state or postcode. To look up a single BSB number already known use /bsblookup.
- getBucketListItemReturns one randomly chosen bucket list idea. Takes no parameters, so call it again for a different suggestion.
- calculateCaloriesBurnedCalculates calories burned from an activity, weight in pounds, and duration in minutes. Requires an activity. For valid names use /caloriesburnedactivities. The image_url and icon_url fields are premium only.
- listActivitiesReturns the names of all activities supported by the calories-burned calculation. To compute calories for one of them use /caloriesburned.
- getCanadaRoutingNumberInfoReturns the Canadian bank branch for a 9-digit EFT `routing_number`, or for a `transit_number` plus `institution_number`. To search by name or location use /canadaroutingnumbersearch.
- searchCanadaRoutingNumbersFinds Canadian bank branches and their routing numbers by bank name, city, province or postal code. To decode a known routing number use /canadaroutingnumber. Requires a premium subscription.
- getCarsThe main endpoint. Search the whole catalogue by any combination of filters, or fetch cars you already know with id/ids. Every car is returned with its complete specification sheet attached, so no second call is needed. Each row also carri…
Automated check: 80/100
Last run 2026-11-22 16:45 UTC. What we measured, not a guarantee.
- 10/10Every URL is https.
- 40/40MCP initialize answered (API Ninjas 3.2.4).
- 15/1540 tools listed by tools/list.
- 0/10No MCP server card at /.well-known/mcp/server-card.json.
- 10/10Has a homepage or documentation link.
- 5/5Answered in 137 ms.
- 0/10Not claimed with a domain proof yet.