Skip to main content

Setup

Put them in your environment or .env; Data APIs 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> with the parameters on its api-ninjas.com/api/<name> page.

Endpoints

Look up a domain’s WHOIS record

  • TLDs other than .com, and the registrant_* and privacy fields, need a premium plan.

Look up a domain’s DNS records

  • 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

Screen a name against sanctions lists

  • 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

  • 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.
  • Premium only. Needs at least one of ticker, cik, date or start_date/end_date.

Geocode a city

Reverse-geocode a coordinate