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.
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
The Enrichment endpoints automatically clean inputs before matching. Use this endpoint to clean data before sending to the Search endpoints, which expect pre-normalized values.
Authorizations
API-Key
string
header
required
Body
application/json
Request model for batch field cleaning.
fields
Fields · object
required
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.
Show child attributes
default_region
string
default:US
Default region for phone number normalization (ISO 3166-1 alpha-2 code)
Response
Success - fields cleaned and normalized
Response model for batch field cleaning.
results
Results · object
required
Map of field names to cleaning results
Show child attributes
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/schema.json","name":"Data Legion","colors":{"primary":"#725608","light":"#D4AF37","dark":"#725608"},"logo":{"light":"https://mintcdn.com/datalegion/nIqKzWtucMVcRihE/logo/light.svg?fit=max\u0026auto=format\u0026n=nIqKzWtucMVcRihE\u0026q=85\u0026s=371454c2dea92ea3c1c8dd0761115eae","dark":"https://mintcdn.com/datalegion/nIqKzWtucMVcRihE/logo/dark.svg?fit=max\u0026auto=format\u0026n=nIqKzWtucMVcRihE\u0026q=85\u0026s=876d35bd6f3ef79d540562841b973d3b"},"favicon":"https://mintcdn.com/datalegion/MzAldGspncAER3ZL/favicon.ico?fit=max\u0026auto=format\u0026n=MzAldGspncAER3ZL\u0026q=85\u0026s=463ef63450b0cdd2e6a3ba3a176d606e","api":{"playground":{"display":"interactive"},"mdx":{"auth":{"method":"key","name":"API-Key"},"server":"https://api.datalegion.ai"}},"appearance":{"default":"dark"},"background":{"color":{"dark":"#121212"}},"navbar":{"links":[{"href":"https://www.datalegion.ai/sign-up","label":"Try for Free"},{"href":"https://www.datalegion.ai/get-started","label":"Get Sample Data"}],"primary":{"type":"button","label":"Book a Demo","href":"https://www.datalegion.ai/get-started"}},"footer":{"socials":{"x":"https://x.com/datalegion","linkedin":"https://www.linkedin.com/company/data-legion"}},"seo":{"metatags":{"canonical":"https://www.datalegion.ai/docs","og:image":"https://www.datalegion.ai/api/og/docs?title=Data%20Legion\u0026description=Person%20%26%20Company%20Data%20APIs%20and%20Bulk%20Data%20Feeds","og:image:width":"1200","og:image:height":"630","og:site_name":"Data Legion Docs","og:type":"website","twitter:card":"summary_large_image","twitter:site":"@datalegion"}},"fonts":{"heading":{"family":"Satoshi","weight":600,"source":"https://www.datalegion.ai/fonts/Satoshi-Medium.woff2","format":"woff2"}},"styling":{"codeblocks":"dark","latex":true},"integrations":{"ga4":{"measurementId":"G-NN0TFQYVZL"},"posthog":{"apiKey":"phc_TGMBixRSbJwXmmcI9NctcU9mjmkCaxTnPWJxFrCaFJi","apiHost":"https://t.datalegion.ai"},"cookies":{"key":"dl-tracking-consent","value":"granted"}},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"datalegion","hasAudioNarration":false,"actualSubdomain":"datalegion","customDomains":["www.datalegion.ai"],"gitSource":{"type":"github","owner":"datalegion-ai","repo":"web","deployBranch":"main","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":"","_id":"6b10d3e89ffae5051c40c4ff"},"feedback":{"thumbs":true},"entitlements":{},"buildId":"6b111bb05fc534e2df4eb3b8","clientVersion":"0.0.4436","searchFilterCounts":[{"language":"default","tag":"Documentation","count":40},{"language":"default","tag":"API Reference","count":19},{"language":"default","tag":"Release Notes","count":18},{"language":"default","tag":"Integrations","count":10},{"language":"default","tag":"Company Data","count":6},{"language":"default","tag":"Dashboard","count":6},{"language":"default","tag":"Company","count":5},{"language":"default","tag":"Person","count":5},{"language":"default","tag":"Utilities","count":5},{"language":"default","tag":"Person Data","count":5}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"/docs","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"theme.css","content":"#topbar-cta-button a>span:first-child{background-color:#D4AF37}#topbar-cta-button a .text-white,#topbar-cta-button a svg{color:#000}"}]}
{"page":{"pagePath":"api-reference/utility-clean","slug":"/api-reference/utility-clean","pageMetadata":{"title":"Field Cleaning API","sidebarTitle":"Field Cleaning","keywords":["field cleaning","data normalization","clean api","input cleaning","data formatting"],"description":"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.","og:image":"https://www.datalegion.ai/api/og/docs?title=Field%20Cleaning%20API\u0026description=Normalize%20Person%20%26%20Company%20Fields","openapi":"POST /utility/clean","href":"/api-reference/utility-clean"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"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.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,p:`p`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{Heading,Note,Table}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`supported-fields`,children:`Supported Fields`}),`\n`,_jsx(Heading,{level:`3`,id:`person-fields`,children:`Person Fields`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`What It Does`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`email`})}),_jsx(_components.td,{children:`Lowercases; for Gmail removes dots and plus tags; for Yahoo, Proton, Fastmail and mail.com removes plus tags`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`phone`})}),_jsxs(_components.td,{children:[`Normalizes to E.164 format (e.g., `,_jsx(_components.code,{children:`+15551234567`}),`)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`full_name`})}),_jsx(_components.td,{children:`Strips prefixes/suffixes, normalizes whitespace`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`first_name`})}),_jsx(_components.td,{children:`Strips prefixes, normalizes whitespace`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`last_name`})}),_jsx(_components.td,{children:`Strips suffixes, normalizes whitespace`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`state`})}),_jsxs(_components.td,{children:[`Returns full name and code (e.g., `,_jsx(_components.code,{children:`CA`}),` → `,_jsx(_components.code,{children:`{\"full_name\": \"california\", \"code\": \"CA\"}`}),`); an unrecognized value comes back lowercased with `,_jsx(_components.code,{children:`code`}),` null`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`country`})}),_jsxs(_components.td,{children:[`Returns full name and code (e.g., `,_jsx(_components.code,{children:`US`}),` → `,_jsx(_components.code,{children:`{\"full_name\": \"united states\", \"code\": \"US\"}`}),`); an unrecognized value comes back lowercased with `,_jsx(_components.code,{children:`code`}),` null`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`social_url`})}),_jsx(_components.td,{children:`Normalizes LinkedIn, Twitter/X, GitHub, Facebook URLs`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`school`})}),_jsx(_components.td,{children:`Accepts name, website URL, or domain; detects type and normalizes`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`company-fields`,children:`Company Fields`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`What It Does`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`domain`})}),_jsxs(_components.td,{children:[`Extracts domain from URL, removes `,_jsx(_components.code,{children:`www.`}),` prefix`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`company`})}),_jsx(_components.td,{children:`Accepts name, website URL, or domain; detects type and normalizes`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`linkedin_company_url`})}),_jsx(_components.td,{children:`Normalizes LinkedIn company page URL`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ticker_symbol`})}),_jsx(_components.td,{children:`Uppercases and strips whitespace`})]})]})]}),`\n`,_jsx(Note,{children:_jsx(_components.p,{children:`The Enrichment endpoints automatically clean inputs before matching. Use this endpoint to clean data before sending to the Search endpoints, which expect pre-normalized values.`})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":"dark","config":{},"pageMetadata":{"title":"Field Cleaning API","sidebarTitle":"Field Cleaning","keywords":["field cleaning","data normalization","clean api","input cleaning","data formatting"],"description":"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.","og:image":"https://www.datalegion.ai/api/og/docs?title=Field%20Cleaning%20API\u0026description=Normalize%20Person%20%26%20Company%20Fields","openapi":"POST /utility/clean","href":"/api-reference/utility-clean"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Supported Fields","slug":"supported-fields","depth":2,"children":[{"title":"Person Fields","slug":"person-fields","depth":3,"children":[]},{"title":"Company Fields","slug":"company-fields","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":["/docs/_mintlify/custom/datalegion/50454e5f5dc3aa38/snitcher.js"],"openApiReferenceData":{"operation":{"tags":["utility"],"summary":"Clean and normalize fields","description":"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.","operationId":"clean_fields_utility_clean_post","requestBody":"604c715e-1c5d-4900-a262-f752b79cd7a5","responses":{"200":"b6eb96c8-fc8a-4f81-875f-949dd161ac1e","400":"29366f90-8d9c-4fed-9f9d-6c6513d6adb7","401":"5b51ef13-669c-4160-a170-124e58122feb","422":"b2ac9265-e6df-484e-948e-48f58d55c8c4","429":"4e53e1e5-9cd3-4a54-90a0-f8d2d20d987c"},"method":"post","type":"path","servers":["6d6dafca-50d5-43f8-a40c-5a613ddb334e"],"security":["edfa7c5e-6060-486a-9eea-b8057a4c2631"],"path":"/utility/clean","baseUrlOptions":["https://api.datalegion.ai"],"title":"Clean and normalize fields","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"content":{"application/json":{"schema":{"properties":{"fields":{"additionalProperties":{"type":"string","uniqueKey":"fields.additionalProperties","typeLabel":"string"},"type":"object","minProperties":1,"title":"Fields","description":"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.","isRequired":true,"uniqueKey":"fields","typeLabel":"Fields · object"},"default_region":{"type":"string","title":"Default Region","description":"Default region for phone number normalization (ISO 3166-1 alpha-2 code)","default":"US","uniqueKey":"default_region","typeLabel":"string"}},"type":"object","required":["fields"],"title":"FieldCleanRequest","description":"Request model for batch field cleaning.","example":{"fields":{"email":"John.Doe+tag@gmail.com","phone":"(650) 253-0000","domain":"https://www.Google.com/about","company":"Google LLC"}},"uniqueKey":"","typeLabel":"FieldCleanRequest · object"},"examples":{"Example":{"title":"Example","value":{"fields":{"email":"John.Doe+tag@gmail.com","phone":"(650) 253-0000","domain":"https://www.Google.com/about","company":"Google LLC"}}}},"exampleType":"generated"}},"required":true,"exampleType":"generated"},"responses":{"b6eb96c8-fc8a-4f81-875f-949dd161ac1e":{"description":"Success - fields cleaned and normalized","content":{"application/json":{"schema":{"properties":{"results":{"additionalProperties":{"properties":{"original":{"type":"string","title":"Original","description":"Original input value","isRequired":true,"uniqueKey":"results.additionalProperties.original","typeLabel":"string"},"cleaned":{"oneOf":[{"type":"string","title":"Cleaned","description":"Cleaned/normalized value","isRequired":true,"uniqueKey":"results.additionalProperties.cleaned.oneOf.0","typeLabel":"string"},{"type":"object","title":"Cleaned","description":"Cleaned/normalized value","additionalProperties":true,"isRequired":true,"uniqueKey":"results.additionalProperties.cleaned.oneOf.1","typeLabel":"Cleaned · object"},{"type":"null","title":"Cleaned","description":"Cleaned/normalized value","isRequired":true,"uniqueKey":"results.additionalProperties.cleaned.oneOf.2","typeLabel":"null"}],"isRequired":true,"uniqueKey":"results.additionalProperties.cleaned","typeLabel":"string | Cleaned · object | null"},"normalized":{"type":"boolean","title":"Normalized","description":"Whether normalization was applied","isRequired":true,"uniqueKey":"results.additionalProperties.normalized","typeLabel":"boolean"}},"type":"object","required":["original","cleaned","normalized"],"title":"FieldCleanResult","description":"Result for a single cleaned field.","uniqueKey":"results.additionalProperties","typeLabel":"FieldCleanResult · object"},"type":"object","title":"Results","description":"Map of field names to cleaning results","isRequired":true,"uniqueKey":"results","typeLabel":"Results · object"}},"type":"object","required":["results"],"title":"FieldCleanResponse","description":"Response model for batch field cleaning.","uniqueKey":"","typeLabel":"FieldCleanResponse · object"},"example":{"results":{"email":{"original":"John.Doe+tag@gmail.com","cleaned":"johndoe@gmail.com","normalized":true},"phone":{"original":"(650) 253-0000","cleaned":"+16502530000","normalized":true},"domain":{"original":"https://www.Google.com/about","cleaned":"google.com","normalized":true},"company":{"original":"Google LLC","cleaned":{"name":"google","type":"name"},"normalized":true}}},"examples":{"Example":{"title":"Example","value":{"results":{"email":{"original":"John.Doe+tag@gmail.com","cleaned":"johndoe@gmail.com","normalized":true},"phone":{"original":"(650) 253-0000","cleaned":"+16502530000","normalized":true},"domain":{"original":"https://www.Google.com/about","cleaned":"google.com","normalized":true},"company":{"original":"Google LLC","cleaned":{"name":"google","type":"name"},"normalized":true}}}}},"exampleType":"examples"}},"exampleType":"examples"},"29366f90-8d9c-4fed-9f9d-6c6513d6adb7":{"description":"Bad request - invalid field or value","content":{"application/json":{"schema":{"properties":{"error":{"type":"string","title":"Error","description":"Error type/code","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","title":"Message","description":"Human-readable error message","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"details":{"oneOf":[{"type":"object","title":"Details","description":"Additional error details (for validation errors)","additionalProperties":true,"uniqueKey":"details.oneOf.0","typeLabel":"Details · object"},{"type":"array","items":{"oneOf":[{}],"uniqueKey":"details.oneOf.1.items.[INDEX]","typeLabel":"any"},"title":"Details","description":"Additional error details (for validation errors)","uniqueKey":"details.oneOf.1","typeLabel":"any[]"},{"type":"null","title":"Details","description":"Additional error details (for validation errors)","uniqueKey":"details.oneOf.2","typeLabel":"null"}],"uniqueKey":"details","typeLabel":"Details · object | any[] | null"}},"type":"object","required":["error","message"],"title":"ErrorResponse","description":"Error response model for customer-facing API.","uniqueKey":"","typeLabel":"ErrorResponse · object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","message":"\u003cstring>","details":{}}}},"exampleType":"generated"}},"exampleType":"generated"},"5b51ef13-669c-4160-a170-124e58122feb":{"description":"Unauthorized - invalid or missing API key","content":{"application/json":{"schema":{"properties":{"error":{"type":"string","title":"Error","description":"Error type/code","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","title":"Message","description":"Human-readable error message","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"details":{"oneOf":[{"type":"object","title":"Details","description":"Additional error details (for validation errors)","additionalProperties":true,"uniqueKey":"details.oneOf.0","typeLabel":"Details · object"},{"type":"array","items":{"oneOf":[{}],"uniqueKey":"details.oneOf.1.items.[INDEX]","typeLabel":"any"},"title":"Details","description":"Additional error details (for validation errors)","uniqueKey":"details.oneOf.1","typeLabel":"any[]"},{"type":"null","title":"Details","description":"Additional error details (for validation errors)","uniqueKey":"details.oneOf.2","typeLabel":"null"}],"uniqueKey":"details","typeLabel":"Details · object | any[] | null"}},"type":"object","required":["error","message"],"title":"ErrorResponse","description":"Error response model for customer-facing API.","uniqueKey":"","typeLabel":"ErrorResponse · object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","message":"\u003cstring>","details":{}}}},"exampleType":"generated"}},"exampleType":"generated"},"b2ac9265-e6df-484e-948e-48f58d55c8c4":{"description":"Validation error","content":{"application/json":{"schema":{"properties":{"error":{"type":"string","title":"Error","description":"Error type/code","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","title":"Message","description":"Human-readable error message","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"details":{"oneOf":[{"type":"object","title":"Details","description":"Additional error details (for validation errors)","additionalProperties":true,"uniqueKey":"details.oneOf.0","typeLabel":"Details · object"},{"type":"array","items":{"oneOf":[{}],"uniqueKey":"details.oneOf.1.items.[INDEX]","typeLabel":"any"},"title":"Details","description":"Additional error details (for validation errors)","uniqueKey":"details.oneOf.1","typeLabel":"any[]"},{"type":"null","title":"Details","description":"Additional error details (for validation errors)","uniqueKey":"details.oneOf.2","typeLabel":"null"}],"uniqueKey":"details","typeLabel":"Details · object | any[] | null"}},"type":"object","required":["error","message"],"title":"ErrorResponse","description":"Error response model for customer-facing API.","uniqueKey":"","typeLabel":"ErrorResponse · object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","message":"\u003cstring>","details":{}}}},"exampleType":"generated"}},"exampleType":"generated"},"4e53e1e5-9cd3-4a54-90a0-f8d2d20d987c":{"description":"Too many requests - rate limit exceeded (100 requests per minute)","content":{"application/json":{"schema":{"properties":{"error":{"type":"string","title":"Error","description":"Error type/code","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","title":"Message","description":"Human-readable error message","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"details":{"oneOf":[{"type":"object","title":"Details","description":"Additional error details (for validation errors)","additionalProperties":true,"uniqueKey":"details.oneOf.0","typeLabel":"Details · object"},{"type":"array","items":{"oneOf":[{}],"uniqueKey":"details.oneOf.1.items.[INDEX]","typeLabel":"any"},"title":"Details","description":"Additional error details (for validation errors)","uniqueKey":"details.oneOf.1","typeLabel":"any[]"},{"type":"null","title":"Details","description":"Additional error details (for validation errors)","uniqueKey":"details.oneOf.2","typeLabel":"null"}],"uniqueKey":"details","typeLabel":"Details · object | any[] | null"}},"type":"object","required":["error","message"],"title":"ErrorResponse","description":"Error response model for customer-facing API.","uniqueKey":"","typeLabel":"ErrorResponse · object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","message":"\u003cstring>","details":{}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"edfa7c5e-6060-486a-9eea-b8057a4c2631":{"APIKeyHeader":{"type":"apiKey","in":"header","name":"API-Key","scopes":[],"schemeName":"APIKeyHeader"}}},"servers":{"6d6dafca-50d5-43f8-a40c-5a613ddb334e":{"url":"https://api.datalegion.ai"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"API-Key","scopes":[],"schemeName":"APIKeyHeader"},"schema":{"title":"API-Key","type":"string","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"APIKeyHeader","name":"API-Key"}],"title":"APIKeyHeader"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"datalegion","siteName":"Data Legion","title":"Field Cleaning API - Data Legion","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-13T18:59:18.147Z","originalFileLocation":"api-reference/utility-clean.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"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.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Data Legion\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/datalegion/BQx2T-NOXda48GGl/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/datalegion/BQx2T-NOXda48GGl/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/datalegion/BQx2T-NOXda48GGl/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/datalegion/BQx2T-NOXda48GGl/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/datalegion/BQx2T-NOXda48GGl/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/datalegion/BQx2T-NOXda48GGl/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/datalegion/BQx2T-NOXda48GGl/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/datalegion/BQx2T-NOXda48GGl/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/datalegion/BQx2T-NOXda48GGl/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Field Cleaning API - Data Legion\">\u003cmeta data-mint-head property=\"og:description\" content=\"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.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Data Legion Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://www.datalegion.ai/docs/api-reference/utility-clean\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://www.datalegion.ai/api/og/docs?title=Field%20Cleaning%20API\u0026amp;description=Normalize%20Person%20%26%20Company%20Fields\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Field Cleaning API - Data Legion\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"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.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://www.datalegion.ai/api/og/docs?title=Field%20Cleaning%20API\u0026amp;description=Normalize%20Person%20%26%20Company%20Fields\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/datalegion/BQx2T-NOXda48GGl/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Data Legion\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#725608\">\u003clink data-mint-head rel=\"canonical\" href=\"https://www.datalegion.ai/docs/api-reference/utility-clean\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/api-reference/utility-clean.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://www.datalegion.ai/#organization\",\"name\":\"Data Legion\",\"url\":\"https://www.datalegion.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/datalegion/nIqKzWtucMVcRihE/logo/light.svg?fit=max\u0026auto=format\u0026n=nIqKzWtucMVcRihE\u0026q=85\u0026s=371454c2dea92ea3c1c8dd0761115eae\"}},{\"@type\":\"WebSite\",\"@id\":\"https://www.datalegion.ai/docs#website\",\"name\":\"Data Legion\",\"url\":\"https://www.datalegion.ai/docs\",\"publisher\":{\"@id\":\"https://www.datalegion.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://www.datalegion.ai/docs/api-reference/utility-clean#webpage\",\"url\":\"https://www.datalegion.ai/docs/api-reference/utility-clean\",\"name\":\"Field Cleaning API\",\"description\":\"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.\",\"dateModified\":\"2026-11-13T18:59:18.147Z\",\"isPartOf\":{\"@id\":\"https://www.datalegion.ai/docs#website\"},\"breadcrumb\":{\"@id\":\"https://www.datalegion.ai/docs/api-reference/utility-clean#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://www.datalegion.ai/docs/api-reference/utility-clean#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Data Legion\",\"item\":\"https://www.datalegion.ai/docs\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Field Cleaning API\",\"item\":\"https://www.datalegion.ai/docs/api-reference/utility-clean\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://www.datalegion.ai/docs/api-reference/utility-clean#apireference\",\"headline\":\"Field Cleaning API\",\"name\":\"Field Cleaning API\",\"description\":\"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.\",\"url\":\"https://www.datalegion.ai/docs/api-reference/utility-clean\",\"mainEntityOfPage\":{\"@id\":\"https://www.datalegion.ai/docs/api-reference/utility-clean#webpage\"},\"image\":\"https://www.datalegion.ai/api/og/docs?title=Field%20Cleaning%20API\u0026description=Normalize%20Person%20%26%20Company%20Fields\",\"dateModified\":\"2026-11-13T18:59:18.147Z\",\"keywords\":\"field cleaning, data normalization, clean api, input cleaning, data formatting\",\"publisher\":{\"@id\":\"https://www.datalegion.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://www.datalegion.ai/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Data Legion\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Data Legion\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/api-reference/utility-clean.md","siteName":"Data Legion","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"Release Notes","pages":[{"title":"Release Notes","href":"/release-notes/1.6.0_2026-11-12"}]},{"tab":"API Reference","groups":[{"group":"API Reference","pages":[{"title":"API Reference: Person and Company Data","sidebarTitle":"API Overview","href":"/api-reference/overview"},{"title":"API Sandbox: Test Without Credits","sidebarTitle":"Sandbox","href":"/api-reference/sandbox"}]},{"group":"Person","pages":[{"title":"Person Enrichment API","sidebarTitle":"Person Enrichment","openapi":"POST /person/enrich","href":"/api-reference/person-enrichment"},{"title":"Person Bulk Enrichment API","sidebarTitle":"Person Bulk Enrichment","openapi":"api-reference/bulk-spec.json POST /person/enrich/bulk","href":"/api-reference/person-bulk-enrichment"},{"title":"Person Search API","sidebarTitle":"Person Search","openapi":"POST /person/search","href":"/api-reference/person-search"},{"title":"Person Search Count API","sidebarTitle":"Person Search Count","openapi":"POST /person/search/count","href":"/api-reference/person-search-count"},{"title":"Person Discover API (Beta)","sidebarTitle":"Person Discover (Beta)","openapi":"POST /person/discover","href":"/api-reference/person-discovery"}]},{"group":"Company","pages":[{"title":"Company Enrichment API","sidebarTitle":"Company Enrichment","openapi":"POST /company/enrich","href":"/api-reference/company-enrichment"},{"title":"Company Bulk Enrichment API","sidebarTitle":"Company Bulk Enrichment","openapi":"api-reference/bulk-spec.json POST /company/enrich/bulk","href":"/api-reference/company-bulk-enrichment"},{"title":"Company Search API","sidebarTitle":"Company Search","openapi":"POST /company/search","href":"/api-reference/company-search"},{"title":"Company Search Count API","sidebarTitle":"Company Search Count","openapi":"POST /company/search/count","href":"/api-reference/company-search-count"},{"title":"Company Discover API (Beta)","sidebarTitle":"Company Discover (Beta)","description":"Company Discover API (Beta) endpoint: find companies using natural language queries across 72M+ company profiles.","openapi":"POST /company/discover","href":"/api-reference/company-discovery"}]},{"group":"Utilities","pages":[{"title":"Field Cleaning API","sidebarTitle":"Field Cleaning","openapi":"POST /utility/clean","href":"/api-reference/utility-clean"},{"title":"Email Hashing API: SHA-256, SHA-1 and MD5","sidebarTitle":"Email Hashing","description":"Hash email addresses to SHA-256, SHA-1, and MD5, then enrich hashed emails through the email_hash parameter without sending the plaintext address.","openapi":"POST /utility/hash/email","href":"/api-reference/utility-hash-email"},{"title":"Data Validation API","sidebarTitle":"Data Validation","openapi":"POST /utility/validate","href":"/api-reference/utility-validate"},{"title":"Opt-Out List API","sidebarTitle":"Opt-Out List","openapi":"POST /utility/opt-outs","href":"/api-reference/utility-opt-outs"},{"title":"Report a Data Issue API","sidebarTitle":"Report a Data Issue","openapi":"POST /utility/report/person","href":"/api-reference/utility-report"}]}]}]},"basePath":"","title":"Field Cleaning API - Data Legion","deploymentId":"dpl_BventAZFrf621XW89Bu9nGboqkDb","buildId":"dpl_BventAZFrf621XW89Bu9nGboqkDb","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-ZxYP-wTJ.js","snippetPresets-DXIYDwaF.js","utils-DJec5Fj3.js","style-to-object-BY3JEAdk.js","utils-Dw_FkvI9.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-Tc7S7GS1.js","conditional-requirements-CFM0id0Q.js","cloneDeep-DY2hEBN3.js","_Uint8Array-BDAIEp76.js","isObject-FP1Yky1u.js","ApiExamples-5YlneKul.js","usePlaygroundInputsStore-Bz8aVmqR.js","shallow-WIpDuKn-.js","isEqual-Ch7LCAW8.js","CodeSnippets-B22t4F1Y.js","CodeSnippet-ZvtUdxOr.js","use-playground-group-access-Cz0nz2kQ.js","Page-0DTRfU5p.js","api-description-markdown-DOMtR5JT.js","DynamicMarkdown-CMNDdb22.js","SectionHeading-BB2VUbaM.js","MethodPill-DXTIzkMa.js","getPastedJson-BOXmo28_.js","Check2Icon-DGqsl92w.js","axios-CsQoIw0U.js","Markdown-tM7iE2Da.js","AssistantPageLink-D8_cgK8o.js","dist-CGJlJrEl.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}