Skip to content
Scalekit Docs
Talk to an Engineer Dashboard

Connect AI agents to API Ninjas

Scalekit connector
Open markdown

The API Ninjas connector lets your AI agent act in each user's API Ninjas account. Each user connects their own API Ninjas API key once, and Scalekit sends it with every call, so your agent never handles credentials. It comes with 38 tools.

Tools
38
What they doRead · write · destructive
37 · 1 · 037 read1 write0 destructive
Users sign in with

Setup

  1. Install the SDK

    Terminal window
    npm install @scalekit-sdk/node dotenv
  2. Set your credentials

    Add your Scalekit credentials to your .env file. Find values in app.scalekit.com > Developers > API Credentials.

    .env
    SCALEKIT_ENVIRONMENT_URL=<your-environment-url>
    SCALEKIT_CLIENT_ID=<your-client-id>
    SCALEKIT_CLIENT_SECRET=<your-client-secret>
  3. Create the API Ninjas connection

    In AgentKit > Connections, create an API Ninjas connection. The name you give it is the connection_name your code passes. See Configure connections.

  4. Authorize a user and make your first call

    quickstart.mts
    import { ScalekitClient } from '@scalekit-sdk/node'
    import 'dotenv/config'
    import { createInterface } from 'node:readline/promises'
    const scalekit = new ScalekitClient(
    process.env.SCALEKIT_ENVIRONMENT_URL,
    process.env.SCALEKIT_CLIENT_ID,
    process.env.SCALEKIT_CLIENT_SECRET,
    )
    const actions = scalekit.actions
    const connector = 'apininjas'
    const identifier = 'user_123'
    // Generate an authorization link for the user
    const { link } = await actions.getAuthorizationLink({ connectionName: connector, identifier })
    console.log('Authorize API Ninjas:', link)
    const rl = createInterface({ input: process.stdin, output: process.stdout })
    await rl.question('Press Enter after authorizing...')
    rl.close()
    // Make your first call
    const result = await actions.executeTool({
    connector,
    identifier,
    toolName: 'apininjas_get_inflation',
    toolInput: {},
    })
    console.log(result)
    Terminal window
    npx tsx quickstart.mts

    Each user opens the link once and enters their API Ninjas credentials there. See Authorize a user for the full flow and statuses.

Tools

Pass the exact name to execute_tool
Try in PlaygroundRequest a tool
  • apininjas_analyze_sentimentScore the sentiment of a piece of text.Read-only

    Analyze Sentiment

    Score the sentiment of a piece of text. Returns text, score from -1 (most negative) to 1 (most positive) and sentiment: POSITIVE, WEAK_POSITIVE, NEUTRAL, WEAK_NEGATIVE or NEGATIVE. Use apininjas_analyze_sentiment for tone. Use apininjas_filter_profanity to find offensive words.

    Inputs

    textstringrequired
    Text to analyse, up to 2000 characters. Example: The delivery was late but the support team was fantastic.
  • apininjas_check_domainCheck whether a domain is available to register, with basic registration and risk details.Read-only

    Check Domain Availability

    Check whether a domain is available to register, with basic registration and risk details. Returns domain, available, creation and expiration dates (Unix time), age in days and registrar. Update date, EPP status, MX presence, free-email, disposable and risky-TLD flags are Premium; IP, hosting provider and country need the Business tier. Domains outside .com need a paid (Premium) plan. Use apininjas_check_domain to test availability. Use apininjas_lookup_whois for the full registration record.

    Inputs

    domainstringrequired
    Domain name to check, without a scheme. Example: github.com. Domains outside .com need a paid (Premium) plan.
  • apininjas_check_holidayList the holidays that fall on one date, in one country or worldwide.Read-only

    Check Holiday On Date

    List the holidays that fall on one date, in one country or worldwide. Returns an array of holidays with country, ISO code, year, date, day of week, name and type; an empty array means no holiday. Dates in future calendar years are Premium only. Use apininjas_check_holiday to test a single date. Use apininjas_list_holidays for a full year.

    Inputs

    datestringrequired
    Date in YYYY-MM-DD format. Future calendar years are Premium only. Example: 2026-12-25.
    countrystring
    Country as a 2-letter ISO 3166 code (preferred), a 3-letter code or an English name. Omit for holidays in every country. Example: GB.
  • apininjas_convert_currencyConvert an amount of money from one currency to another at the current rate.Read-only

    Convert Currency

    Convert an amount of money from one currency to another at the current rate. Returns old_amount, old_currency, new_amount, new_currency and a Unix timestamp. Free keys use once-daily rates; paid plans use real-time rates. Use apininjas_convert_currency to convert an amount. Use apininjas_get_exchange_rate for the rate alone.

    Inputs

    amountnumberrequired
    Amount of the from-currency to convert. Example: 250.
    havestringrequired
    3-letter ISO 4217 code of the currency you are converting from. Example: USD.
    wantstringrequired
    3-letter ISO 4217 code of the currency you are converting to. Example: EUR.
  • apininjas_convert_unitsConvert an amount from one unit into every other unit of the same measurement type.Read-only

    Convert Units

    Convert an amount from one unit into every other unit of the same measurement type. Returns type (for example length or temperature), the source unit and amount, and conversions, an object mapping each unit of that type to the converted value. Use apininjas_convert_units for physical units. Use apininjas_convert_currency for money.

    Inputs

    amountnumberrequired
    Value to convert. Example: 5.
    unitstringrequired
    Source unit, lower case with spaces written as underscores. Examples: meter, kilometer, mile, foot, inch, liter, gallon, square_meter, acre, celsius, fahrenheit, kelvin, kilogram, pound, ounce.
  • apininjas_decode_vinDecode a 17-character Vehicle Identification Number, or a Japanese chassis number, into the vehicle's origin and model year.Read-only

    Decode VIN

    Decode a 17-character Vehicle Identification Number, or a Japanese chassis number, into the vehicle's origin and model year. Returns vin, country and region of manufacture, model year and the WMI, VDS and VIS sections. Manufacturer, model and body class are Premium fields. Use apininjas_decode_vin for one specific vehicle. Use apininjas_search_cars to browse model specifications.

    Inputs

    vinstringrequired
    17-character VIN, or a Japanese chassis (frame) number such as ZVW30-1234567. Example: JHMCM56557C404453.
  • apininjas_define_wordLook up the dictionary definition of an English word.Read-only

    Define Word

    Look up the dictionary definition of an English word. Returns word, definition (one text block that can hold several numbered senses) and valid, which is false when the word is not in the dictionary. Use apininjas_define_word for meanings. Use apininjas_get_synonyms for similar and opposite words.

    Inputs

    wordstringrequired
    English word to define. Example: serendipity.
  • apininjas_detect_languageDetect which language a piece of text is written in, across more than 50 languages.Read-only

    Detect Language

    Detect which language a piece of text is written in, across more than 50 languages. Returns iso (2-letter ISO 639-1 code) and language (the language's full name). Use apininjas_detect_language to identify a language.

    Inputs

    textstringrequired
    Text to analyse, up to 1000 characters. Ten words or more gives the best results. Example: Bonjour, comment allez-vous aujourd'hui ?