Package Information
Available Nodes
Documentation
n8n-nodes-namsor
Official Namsor integration for n8n: AI-powered name analysis and demographic predictions.
Namsor predicts gender, origin, ethnicity, and other demographics from personal names using AI.
Supports 190+ countries and multiple name formats.
π§ Table of Contents
- Overview
- Installation
- Authentication & Credentials
- Features
- Supported Operations
- Usage Examples
- Output Reference
- Credits, Limits & Privacy
- Error Handling
- Compatibility
- Resources
- Version History
- License & Support
π§© Overview
This node integrates the Namsor API within n8n, enabling name-based predictions such as:
- Gender detection
- Country or region of origin
- Ethnicity and diaspora classification
- Country of residence estimation
- U.S. race/ethnicity classification (6 classes)
- Indian caste prediction
- Name parsing and name-type recognition
βοΈ Installation
Follow the official community node installation guide.
Steps
- Go to Settings β Community Nodes in n8n
- Click Install
- Enter
n8n-nodes-namsor - Accept the community node risks
- Click Install
The node will then appear in your palette.
π Authentication & Credentials
1. Get Your API Key
- Go to namsor.app β My Account
- Create an account (2,500 free credits/month)
- Copy your API key
2. Add Credentials in n8n
- Open a Namsor node
- Click Credential to connect with β Create New Credential
- Paste your API key
- Save
Each request uses the header X-API-KEY.
π‘ Features
- Batch Processing (up to 200 names per request)
- Geo-aware Endpoints (automatic detection based on
countryIso2) - Country Context improves accuracy (ISO 3166-1 alpha-2)
- Simplified Output Mode
- Support for 190+ countries & 38 Indian subdivisions (ISO 3166-2:IN)
π§ Supported Operations
Gender Prediction
Predict gender from name(s).
- By Name or Full Name
- Output: gender, probability score
Origin
Predict likely country or region of origin.
- Output: Top 10 countries, region/sub-region, probability
Ethnicity / Diaspora
Classify by ethnicity or diaspora group.
- Output: Top 10 ethnicities, probability score
Country of Residence
Estimate current country of residence.
- Output: Top 10 countries, region, sub-region, probability
US Race/Ethnicity (6 Classes)
Classify names according to US Census categories.
- Classes: W_NL, HL, A, B_NL, AI_AN, PI
- Output: classification and probability scores
Indian Caste
Predict caste group based on name + subdivision.
- Output: Top 5 caste groups, probability
Name Parsing
Split a full name into first and last name.
Name Type Recognition
Identify if a name is a person, brand, pseudonym, or place.
- Types: anthroponym, brand-name, pseudonym, toponym
π Usage Examples
Basic Example β Gender Prediction
- Add Namsor node
- Resource: Gender
- Operation: Predict by Name
- Provide first & last name
- Optionally add country code (ISO 3166-1 alpha-2)
- Toggle Simplify for clean output
Batch Example
- Use Set or Code node to prepare an array
- Send to Namsor node
- Process up to 200 names
- Responses maintain order
Country Context Example
First Name: "Andrea"
Last Name: "Rossi"
Country: "IT"
β Correctly predicts male (Italy context)
π Output Reference
| Category | Key Info |
|---|---|
| Gender | likelyGender: male/female β probabilityCalibrated: 0β1 |
| US Race/Ethnicity | Taxonomy: USRACEETHNICITY-6CLASSES β Codes: W_NL, HL, A, B_NL, AI_AN, PI |
| Ethnicity (Diaspora) | Categories: API Enumerators |
| Name Type Recognition | commonType / commonTypeAlt β {anthroponym, brand-name, pseudonym, toponym} |
| Script | ISO 15924 values: Latin, Cyrillic, Arabic, etc. |
| Region/SubRegion | UN statistical regions and subregions |
βοΈ Credits, Limits & Privacy
- Credit system per plan (Pricing)
- Free: 2,500 credits/month
- Paid: scalable quotas
- Batch limit: 200 names/request
- βSoftβ vs βHardβ API usage limits
- Privacy options:
learnable=falseβ donβt store requestsanonymized=trueβ hide raw names
β οΈ Error Handling
| Code | Description |
|---|---|
| 401 | Invalid/missing API key |
| 403 | Credit limit reached |
| 404 | Endpoint not found |
| 500 | Internal server error |
π§© Compatibility
- Minimum n8n version: 1.0.0
- Tested on: 1.60.0+
- API version: 1 (declarative routing)
π Resources
π Version History
0.1.0 β Initial Release
All features implemented:
- Gender, Origin, Ethnicity, Country of Residence, US Race/Ethnicity, Indian Caste
- Name Parsing, Type Recognition
- Geo/classic endpoint auto-switch
- Simplified mode & batch support (200 max)
- Error handling, validation, and full ISO support
π License & Support
- License: MIT
- Author: Namsor
- Support:
Made with β€οΈ for the n8n community