> ## Documentation Index
> Fetch the complete documentation index at: https://docs.webrouter.net/llms.txt
> Use this file to discover all available pages before exploring further.

# API Ninjas

> One key for many small reference-data APIs: WHOIS and DNS, IP geolocation, sanctions screening, earnings call transcripts, geocoding and more.

![](https://mintcdn.com/webrouter/Wx0iBZkUGX_VAFTN/logo/data-apis/apininjas.webp?fit=max\&auto=format\&n=Wx0iBZkUGX_VAFTN\&q=85\&s=3409f88419e59bae1c81f22cf483b7aa)

[Web Catalog · Maps](https://docs.webrouter.net/data-apis.md?category=maps)

Needs&#x20;

`APININJAS_API_KEY`

Endpoints

8

Auth

Key in header

[Vendor docs](https://api-ninjas.com/api)

&#x20;·&#x20;

[Pricing](https://api-ninjas.com/pricing)

## Setup

| Variable | | What it is |
| - | - | - |
| `APININJAS_API_KEY` | required | An API Ninjas key (api-ninjas.com > My Account). One key works for every API; sent in the X-Api-Key header. |

Put them in your environment or `.env`; [Data APIs](https://docs.webrouter.net/vendors.md) covers the other ways.

## Notes

* The free tier is non-commercial only and hides many fields and options; each API's page lists what needs a premium plan (non-.com domains for WHOIS and DNS, most IP lookup fields, sanctions filters beyond name).
* This entry names a handful of the \~150 APIs; any other one is GET [https://api.api-ninjas.com/v1/\&lt;name](https://api.api-ninjas.com/v1/\&lt;name)> with the parameters on its api-ninjas.com/api/\<name> page.

## Endpoints

GET

Look up a domain's WHOIS record

Registrar, creation and expiry dates, name servers and (premium) registrant details.

[Open](#apininjas-whois)

GET

Look up a domain's DNS records

DNS records for a domain.

[Open](#apininjas-dns)

GET

Geolocate an IP address

Country and region for an IPv4 or IPv6 address; premium adds city, ISP, ASN and VPN/Tor/hosting flags.

[Open](#apininjas-ip-lookup)

GET

Screen a name against sanctions lists

Possible matches on OFAC (free) and EU, UK, UN and AU lists (paid), with a confidence score.

[Open](#apininjas-sanctions-screen)

GET

Get an earnings call transcript

A company's earnings call transcript for a quarter, or the latest one.

[Open](#apininjas-earnings-transcript)

GET

List available earnings call transcripts

Transcripts by company or call date, newest first.

[Open](#apininjas-earnings-transcripts-search)

GET

Geocode a city

Coordinates for a city name, optionally narrowed by country, US state or ZIP code.

[Open](#apininjas-geocode)

GET

Reverse-geocode a coordinate

The place names at a latitude and longitude.

[Open](#apininjas-reverse-geocode)

### Look up a domain's WHOIS record

GET

`/v1/whois`

`apininjas.whois`

Registrar, creation and expiry dates, name servers and (premium) registrant details.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`domain` required</td><td>string</td><td>query</td><td>Domain to check. Example `example.com`</td></tr>
  </tbody>
</table>

[Vendor docs](https://api-ninjas.com/api/whois) · Same job: [IP2Location.io](https://docs.webrouter.net/data-apis/ip2location-io.md#ip2location-io-domain-whois), [Public Interest Registry RDAP (.org)](https://docs.webrouter.net/data-apis/pir-rdap.md#pir-rdap-domain-get), [SecurityTrails](https://docs.webrouter.net/data-apis/securitytrails.md#securitytrails-domain-whois), [Verisign RDAP (.com, .net)](https://docs.webrouter.net/data-apis/verisign-rdap.md#verisign-rdap-domain-get), [WhoisXML API](https://docs.webrouter.net/data-apis/whoisxml-api.md#whoisxml-api-whois-get)

```python Python theme={null}
router.call_data_api("apininjas.whois", {'domain': 'example.com'})
```

```text MCP theme={null}
call_data_api(endpoint="apininjas.whois", params={"domain": "example.com"})
```

> [!NOTE]
>
> * TLDs other than .com, and the registrant\_\* and privacy fields, need a premium plan.

### Look up a domain's DNS records

GET

`/v1/dnslookup`

`apininjas.dns`

DNS records for a domain.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`domain` required</td><td>string</td><td>query</td><td>Domain to look up. Example `example.com`</td></tr>
  </tbody>
</table>

[Vendor docs](https://api-ninjas.com/api/dnslookup) · Same job: [InternetData](https://docs.webrouter.net/data-apis/internetdata.md#internetdata-domain-lookup), [Public Interest Registry RDAP (.org)](https://docs.webrouter.net/data-apis/pir-rdap.md#pir-rdap-nameserver-get), [SecurityTrails](https://docs.webrouter.net/data-apis/securitytrails.md#securitytrails-domain-get), [Shodan](https://docs.webrouter.net/data-apis/shodan.md#shodan-dns-domain), [Verisign RDAP (.com, .net)](https://docs.webrouter.net/data-apis/verisign-rdap.md#verisign-rdap-nameserver-get), [WhoisXML API](https://docs.webrouter.net/data-apis/whoisxml-api.md#whoisxml-api-dns-lookup)

```python Python theme={null}
router.call_data_api("apininjas.dns", {'domain': 'example.com'})
```

```text MCP theme={null}
call_data_api(endpoint="apininjas.dns", params={"domain": "example.com"})
```

> [!NOTE]
>
> * Free tier returns NS, PTR, SRV, SOA and CAA only; A, AAAA, CNAME, MX and TXT, and non-.com domains, need a premium plan.

### Geolocate an IP address

GET

`/v1/iplookup`

`apininjas.ip.lookup`

Country and region for an IPv4 or IPv6 address; premium adds city, ISP, ASN and VPN/Tor/hosting flags.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `address`

        required
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        IPv4 or IPv6 address.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://api-ninjas.com/api/iplookup) · Same job: [Abstract API](https://docs.webrouter.net/data-apis/abstract-api.md#abstract-api-ip-lookup), [InternetData](https://docs.webrouter.net/data-apis/internetdata.md#internetdata-ip-lookup), [IP2Location.io](https://docs.webrouter.net/data-apis/ip2location-io.md#ip2location-io-ip-lookup), [ipapi.is](https://docs.webrouter.net/data-apis/ipapiis.md#ipapiis-ip-lookup), [ipdata](https://docs.webrouter.net/data-apis/ipdata.md#ipdata-ip-lookup), [IPinfo](https://docs.webrouter.net/data-apis/ipinfo.md#ipinfo-lite-lookup)

### Screen a name against sanctions lists

GET

`/v1/sanctionsscreening`

`apininjas.sanctions.screen`

Possible matches on OFAC (free) and EU, UK, UN and AU lists (paid), with a confidence score.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`name` required</td><td>string</td><td>query</td><td>Full name; word order does not matter. Example `Vladimir Putin`</td></tr>
    <tr><td>`entity_type`</td><td>string</td><td>query</td><td>Premium. vessel and aircraft need Business tier. One of `individual`, `entity`, `vessel`, `aircraft`</td></tr>

    <tr>
      <td>
        `country`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Premium. ISO 3166-1 alpha-2 nationality or jurisdiction.
      </td>
    </tr>

    <tr>
      <td>
        `dob`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Premium. Date of birth YYYY-MM-DD, matched within a year.
      </td>
    </tr>

    <tr>
      <td>
        `nationality`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Premium. ISO 3166-1 alpha-2 nationality.
      </td>
    </tr>

    <tr>
      <td>
        `sources`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Premium. Comma-separated subset of OFAC,EU,UK,UN,AU.
      </td>
    </tr>

    <tr>
      <td>
        `min_score`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Premium. Minimum confidence 0-100, default 70.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://api-ninjas.com/api/sanctionsscreening) · Same job: [OpenSanctions](https://docs.webrouter.net/data-apis/opensanctions.md#opensanctions-match), [Pappers](https://docs.webrouter.net/data-apis/pappers.md#pappers-compliance-person)

```python Python theme={null}
router.call_data_api("apininjas.sanctions.screen", {'name': 'Vladimir Putin'})
```

```text MCP theme={null}
call_data_api(endpoint="apininjas.sanctions.screen", params={"name": "Vladimir Putin"})
```

> [!NOTE]
>
> * Free tier: OFAC SDN list, individuals only, name only. Developer adds EU and entities; Business adds UK, UN, AU, vessels and aircraft.

### Get an earnings call transcript

GET

`/v1/earningstranscript`

`apininjas.earnings.transcript`

A company's earnings call transcript for a quarter, or the latest one.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`ticker`</td><td>string</td><td>query</td><td>Ticker (one of ticker or cik is required). Example `AAPL`</td></tr>

    <tr>
      <td>
        `cik`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        SEC CIK, instead of ticker.
      </td>
    </tr>

    <tr>
      <td>
        `year`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        2000 to the current year; needs quarter.
      </td>
    </tr>

    <tr><td>`quarter`</td><td>integer</td><td>query</td><td>Needs year. Latest transcript when both are unset. One of `1`, `2`, `3`, `4`</td></tr>

    <tr>
      <td>
        `qa_only`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        true to return only the analyst Q\&A.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://api-ninjas.com/api/earningscalltranscript)

```python Python theme={null}
router.call_data_api("apininjas.earnings.transcript", {'ticker': 'AAPL'})
```

```text MCP theme={null}
call_data_api(endpoint="apininjas.earnings.transcript", params={"ticker": "AAPL"})
```

> [!NOTE]
>
> * Premium only. Developer tier covers the last 5 years; the full archive from 2005 and the summary, guidance and sentiment fields need Business or above.

### List available earnings call transcripts

GET

`/v1/earningstranscriptsearch`

`apininjas.earnings.transcripts_search`

Transcripts by company or call date, newest first.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `ticker`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Ticker.
      </td>
    </tr>

    <tr>
      <td>
        `cik`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        SEC CIK.
      </td>
    </tr>

    <tr>
      <td>
        `date`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Exact call date YYYY-MM-DD; not with start\_date/end\_date.
      </td>
    </tr>

    <tr>
      <td>
        `start_date`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Inclusive range start YYYY-MM-DD, with end\_date; at most 30 days without ticker or cik.
      </td>
    </tr>

    <tr>
      <td>
        `end_date`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Inclusive range end YYYY-MM-DD.
      </td>
    </tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Default 20, max 200.
      </td>
    </tr>

    <tr>
      <td>
        `offset`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Results to skip.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://api-ninjas.com/api/earningscalltranscript)

```python Python theme={null}
router.call_data_api("apininjas.earnings.transcripts_search")
```

```text MCP theme={null}
call_data_api(endpoint="apininjas.earnings.transcripts_search")
```

> [!NOTE]
>
> * Premium only. Needs at least one of ticker, cik, date or start\_date/end\_date.

### Geocode a city

GET

`/v1/geocoding`

`apininjas.geocode`

Coordinates for a city name, optionally narrowed by country, US state or ZIP code.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `city`

        required
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        City name.
      </td>
    </tr>

    <tr>
      <td>
        `state`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        US state (US cities only).
      </td>
    </tr>

    <tr>
      <td>
        `country`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Country name or 2- or 3-letter ISO code.
      </td>
    </tr>

    <tr>
      <td>
        `zipcode`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        5-digit ZIP code (US only).
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://api-ninjas.com/api/geocoding) · Same job: [Amap (Gaode) Web Service](https://docs.webrouter.net/data-apis/amap.md#amap-geocode), [Geoapify](https://docs.webrouter.net/data-apis/geoapify.md#geoapify-geocode-search), [Google Maps Platform](https://docs.webrouter.net/data-apis/google-maps.md#google-maps-geocode-forward), [GraphHopper Directions API](https://docs.webrouter.net/data-apis/graphhopper.md#graphhopper-geocode-forward), [HERE](https://docs.webrouter.net/data-apis/here-maps.md#here-maps-geocode), [OpenCage Geocoding](https://docs.webrouter.net/data-apis/opencage.md#opencage-geocode-forward)

### Reverse-geocode a coordinate

GET

`/v1/reversegeocoding`

`apininjas.reverse_geocode`

The place names at a latitude and longitude.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `lat`

        required
      </td>

      <td>
        number
      </td>

      <td>
        query
      </td>

      <td>
        Latitude.
      </td>
    </tr>

    <tr>
      <td>
        `lon`

        required
      </td>

      <td>
        number
      </td>

      <td>
        query
      </td>

      <td>
        Longitude.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://api-ninjas.com/api/geocoding) · Same job: [Amap (Gaode) Web Service](https://docs.webrouter.net/data-apis/amap.md#amap-reverse-geocode)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.