Tools
This is a reference catalogue. Tools cannot be configured or run from this page.
Analyze Nutrition
API_NINJAS_ANALYZE_NUTRITIONTool to extract nutrition information from text query. Use when you need to parse food-related text (e.g., recipes, menus) to calculate corresponding nutrition data.
Analyze Text Sentiment
API_NINJAS_ANALYZE_SENTIMENTTool to analyze the sentiment of text. Returns a numerical sentiment score from -1 to 1 and a classification (POSITIVE, WEAK_POSITIVE, NEUTRAL, WEAK_NEGATIVE, or NEGATIVE). Use when you need to determine the emotional tone or sentiment of text content.
Assess NAICS Risk
API_NINJAS_ASSESS_NAICS_RISKAssess documented compliance risk indicators for NAICS codes. Requires Business tier and above.
Calculate Airport Distance
API_NINJAS_CALCULATE_AIRPORT_DISTANCECalculate great-circle distance, initial bearing, and estimated flight time between two airports. Requires Premium only.
Calculate Calories Burned
API_NINJAS_CALCULATE_CALORIES_BURNEDTool to calculate calories burned for an activity based on duration and body weight. Use when you need to estimate energy expenditure for physical activities.
Calculate Currency Volatility
API_NINJAS_CALCULATE_CURRENCY_VOLATILITYCalculate realized volatility and percentile context for a currency pair. Requires Premium only.
Calculate Income Tax
API_NINJAS_CALCULATE_INCOME_TAXTool to calculate income taxes for US and Canada. Use when you need detailed breakdown of federal, state/provincial, and FICA taxes. Country and region codes must be correct.
Calculate Mortgage
API_NINJAS_CALCULATE_MORTGAGETool to calculate mortgage payments and breakdowns. Use when you need to determine monthly/annual payments, including mortgage, property tax, HOA, and insurance components.
Calculate Paycheck Withholding
API_NINJAS_CALCULATE_PAYCHECK_WITHHOLDINGCalculate federal, FICA, and optional state paycheck withholding. Requires Premium only.
Calculate Sales Tax
API_NINJAS_CALCULATE_SALES_TAXTool to calculate sales tax for a purchase amount at a US location. Use when you need to determine the sales tax for a purchase based on ZIP code or city/state. Premium features include detailed breakdowns by city, county, and special districts.
Check Bank Holiday
API_NINJAS_CHECK_BANK_HOLIDAYCheck whether banks are closed on a date in a country or subdivision.
Check Disposable Email
API_NINJAS_CHECK_DISPOSABLE_EMAILTool to check whether an email address is from a disposable email provider. Use when validating user emails prior to sending communications.
Check Domain Availability
API_NINJAS_CHECK_DOMAINTool to check domain availability and retrieve registration information. Use when you need to verify if a domain is available for registration or get details about an existing domain.
Check Holiday
API_NINJAS_CHECK_HOLIDAYReturn all documented holiday categories on a date across every country when country is omitted; use Check Is Public Holiday for a country-specific public-holiday boolean or Check Bank Holiday for bank closures.
Check If Date Is Public Holiday
API_NINJAS_CHECK_IS_PUBLIC_HOLIDAYTool to check if a specific date is a public holiday in a given country. Use when you need to verify holiday status for scheduling, planning, or calendar-related tasks. Returns holiday name if applicable.
Check If Date Is Working Day
API_NINJAS_CHECK_IS_WORKING_DAYCheck whether a date is a working day in a country, with configurable weekend days and optional inclusion of public holidays.
Check Lottery Ticket
API_NINJAS_CHECK_LOTTERY_TICKETScore a supported lottery ticket against a draw. Requires Premium only.
Check Sales Tax Nexus
API_NINJAS_CHECK_SALES_TAX_NEXUSEvaluate supplied sales and transaction totals against a state's economic-nexus rules. Requires Premium only.
Check Spelling
API_NINJAS_CHECK_SPELLINGTool to check spelling and get corrections for text. Returns the original text, corrected version, and detailed corrections with alternative suggestions.
Classify Business NAICS
API_NINJAS_CLASSIFY_BUSINESS_NAICSClassify a business description to a NAICS code. Requires Business tier and above.