Infer country location from email addresses and phone numbers
.co.uk, .fr, .detrue: Non-US country detectedfalse: US country detectednull: No country could be determined from the provided informationnull if no country could be determined.null if no countries could be inferred.true: Non-US TLD detected (e.g., .co.uk, .fr, .de)false: US TLD detected or generic TLD with no country inferencenull: Email is invalid or no country could be determinednull if no country-specific TLD detected or email is invalid.null if no country-specific TLD detected or email is invalid.true: Non-US country code detectedfalse: US country code detected (+1)null: Phone is invalid or country could not be determinednull if the phone number is invalid.null if the phone number is invalid or country could not be determined.null if the phone number is invalid or country could not be determined.400 - Bad Request: Invalid input format401 - Unauthorized: Invalid API key404 - Not Found: This endpoint only supports v2 API version (calling /v1/infer_record_country will return this error)413 - Payload Too Large: More than 1000 records in request422 - Unprocessable Entity: Invalid data format, including:
records keyrecords field is not a listrecord_id)500 - Internal Server Error/v2/infer_record_country).co.uk → United Kingdom, .fr → France, .de → Germany)
.com, .org, .net do not provide country informationnull values for country fieldsis_intl: Determined by checking if any non-US country was inferred
true: At least one non-US country detectedfalse: Only US detectednull: No country information could be extractedmost_likely_country: Returns the first country from the inferred_countries list
inferred_countries: Contains unique country names from all emails and phones analyzed
null if empty (no countries inferred)is_valid: false and null country fieldsis_valid: false and null country fieldsfirst_name, last_name, middle_name, full_name, name_suffix) are accepted for API compatibility with the resolve endpoint but are not used in country inference logicResolveInput model as the resolve endpoint, allowing seamless integration