1.0.4 • Published 6 months ago

api-ninjas.ts v1.0.4

Weekly downloads
-
License
GPL-3.0
Repository
github
Last release
6 months ago

api-ninjas.ts

unofficial axios based wrapper for api-ninjas.com written in TypeScript

Installation

npm install api-ninjas.ts

Usage

import { Client } from "api-ninjas.ts";

const client = new Client(process.env.KEY as string);
client.get('vinlookup', "vin=JH4KA7561PC008269").then(console.log).catch(console.error);

/* Results:
{
  vin: 'JH4KA7561PC008269',
  country: 'Japan',
  manufacturer: 'Acura',
  region: 'Asia',
  wmi: 'JH4',
  vds: 'KA7561',
  vis: 'PC008269',
  years: [ 2023, 1993 ]
} */

Endpoints

Transportation

  • vinlookup | vin={xxx}

Finance

  • iban | iban={xxx}

Health

  • exercises | name={xxx}
  • nutrition | query={xxx}
  • recipe | query={xxx}

Places

  • zipcode | zip/city/state={xxx}
1.0.4

6 months ago

1.0.3

6 months ago

1.0.2

6 months ago

1.0.1

6 months ago

1.0.0

6 months ago