Field Cleaning
Clean and normalize person fields (email, phone, name, state, country, social URL) and company fields (domain, company name, LinkedIn URL, ticker symbol) to match API format before using search.
Documentation Index
Fetch the complete documentation index at: https://www.datalegion.ai/docs/llms.txt
Use this file to discover all available pages before exploring further.
Supported Fields
Person Fields
| Field | What It Does |
|---|---|
email | Removes plus tags, normalizes Gmail dots, lowercases |
phone | Normalizes to E.164 format (e.g., +15551234567) |
full_name | Strips prefixes/suffixes, normalizes whitespace |
first_name | Strips prefixes, normalizes whitespace |
last_name | Strips suffixes, normalizes whitespace |
state | Normalizes to full state name (e.g., CA → california) |
country | Normalizes to full country name (e.g., US → united states) |
social_url | Normalizes LinkedIn, Twitter/X, GitHub, Facebook URLs |
school | Accepts name, website URL, or domain — detects type and normalizes |
Company Fields
| Field | What It Does |
|---|---|
domain | Extracts domain from URL, removes www. prefix |
company | Accepts name, website URL, or domain — detects type and normalizes |
linkedin_company_url | Normalizes LinkedIn company page URL |
ticker_symbol | Uppercases and strips whitespace |
Authorizations
Body
Request model for batch field cleaning.
Map of field names to values to clean (e.g., {'email': 'John.Doe+tag@gmail.com', 'domain': 'https://www.Google.com/about'}). Supported person fields: email, phone, full_name, first_name, last_name, state, country, social_url, school. Supported company fields: company, domain, linkedin_company_url, ticker_symbol.
Default region for phone number normalization (ISO 3166-1 alpha-2 code)
Response
Success - fields cleaned and normalized
Response model for batch field cleaning.
Map of field names to cleaning results