Tools
This is a reference catalogue. Tools cannot be configured or run from this page.
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.
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 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 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 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.
Compute Text Similarity
API_NINJAS_COMPUTE_TEXT_SIMILARITYTool to compute semantic similarity between two texts. Returns a similarity score from 0 to 1 using NLP embeddings and cosine similarity. Use when comparing text content, detecting duplicates, or measuring semantic relatedness.
Convert Currency
API_NINJAS_CONVERT_CURRENCYConvert between currencies using current exchange rates. Returns the converted amount with both source and target currency details. Use this when you need to know how much a specific amount in one currency is worth in another currency.
Convert Unit
API_NINJAS_CONVERT_UNITConvert between measurement units across different categories. Returns converted values for all units in the same category. Use this when you need to convert measurements (length, weight, temperature, volume, area, time, speed, etc.) from one unit to another.
Detect Text Language
API_NINJAS_DETECT_TEXT_LANGUAGETool to detect the language of input text. Returns the ISO language code and full language name. For best accuracy, use text with 10 or more words.
Filter Profanity from Text
API_NINJAS_FILTER_PROFANITYTool to detect and censor profanity in text. Returns the original text, censored version with profane words replaced by asterisks, and whether profanity was detected.
Generate Barcode Image
API_NINJAS_GENERATE_BARCODEGenerate a barcode image for specified text in PNG or SVG format. Returns the image data as a base64-encoded string.
Generate Lorem Ipsum Text
API_NINJAS_GENERATE_LOREM_IPSUMTool to generate Lorem Ipsum placeholder text. Use when you need dummy text for design mockups, testing, or content placeholders.
Generate Secure Password
API_NINJAS_GENERATE_PASSWORDTool to generate secure random passwords with configurable length and character types. Use when you need to create strong passwords with a chosen length and optional exclusion of numbers or special characters. Uppercase and lowercase exclusions are not supported by the provider.
Generate QR Code
API_NINJAS_GENERATE_QR_CODETool to generate QR code images for encoding data. Use when you need to create scannable QR codes for URLs, text, or other data. Returns the QR code as a PNG or SVG image file.
Generate Random User Profiles
API_NINJAS_GENERATE_RANDOM_USERTool to generate fake random user profiles with realistic data. Returns user profiles with names, addresses, contact info, job details, and technical data. Use when you need realistic test data, demo users, or placeholder profiles for development and testing purposes.
Generate Sudoku Puzzle
API_NINJAS_GENERATE_SUDOKUTool to generate a new Sudoku puzzle with a specified difficulty level. Use when you need to create Sudoku puzzles for games or educational purposes. Returns both the puzzle grid (with empty cells) and the complete solution.
Generate Text Embeddings
API_NINJAS_GENERATE_TEXT_EMBEDDINGSTool to encode text into vector embeddings using NLP models. Use when you need to generate semantic vectors for text comparison, search, or recommendation systems.
Generate User Agent String
API_NINJAS_GENERATE_USER_AGENTTool to generate realistic random user agent strings with optional filters for brand, model, OS, and browser. Use when you need authentic-looking user agent strings for web scraping, testing, or browser simulation.
Solve Sudoku Puzzle
API_NINJAS_SOLVE_SUDOKUTool to solve a Sudoku puzzle using the API Ninjas Sudoku Solver. Takes a partially filled puzzle grid and returns the complete solution if one exists. Use when you need to solve standard or custom-sized Sudoku puzzles (2x2, 3x3, or 4x4 box dimensions).