All URIs are relative to https://v2.namsor.com/NamSorAPIv2
Method | HTTP request | Description |
---|---|---|
country | GET /api2/json/country/{personalNameFull} | [USES 10 UNITS PER NAME] Infer the likely country of residence of a personal full name, or one surname. Assumes names as they are in the country of residence OR the country of origin. |
countryBatch | POST /api2/json/countryBatch | [USES 10 UNITS PER NAME] Infer the likely country of residence of up to 100 personal full names, or surnames. Assumes names as they are in the country of residence OR the country of origin. |
diaspora | GET /api2/json/diaspora/{countryIso2}/{firstName}/{lastName} | [USES 20 UNITS PER NAME] Infer the likely ethnicity/diaspora of a personal name, given a country of residence ISO2 code (ex. US, CA, AU, NZ etc.) |
diasporaBatch | POST /api2/json/diasporaBatch | [USES 20 UNITS PER NAME] Infer the likely ethnicity/diaspora of up to 100 personal names, given a country of residence ISO2 code (ex. US, CA, AU, NZ etc.) |
gender | GET /api2/json/gender/{firstName}/{lastName} | Infer the likely gender of a name. |
genderBatch | POST /api2/json/genderBatch | Infer the likely gender of up to 100 names, detecting automatically the cultural context. |
genderFull | GET /api2/json/genderFull/{fullName} | Infer the likely gender of a full name, ex. John H. Smith |
genderFullBatch | POST /api2/json/genderFullBatch | Infer the likely gender of up to 100 full names, detecting automatically the cultural context. |
genderFullGeo | GET /api2/json/genderFullGeo/{fullName}/{countryIso2} | Infer the likely gender of a full name, given a local context (ISO2 country code). |
genderFullGeoBatch | POST /api2/json/genderFullGeoBatch | Infer the likely gender of up to 100 full names, with a given cultural context (country ISO2 code). |
genderGeo | GET /api2/json/genderGeo/{firstName}/{lastName}/{countryIso2} | Infer the likely gender of a name, given a local context (ISO2 country code). |
genderGeoBatch | POST /api2/json/genderGeoBatch | Infer the likely gender of up to 100 names, each given a local context (ISO2 country code). |
origin | GET /api2/json/origin/{firstName}/{lastName} | [USES 10 UNITS PER NAME] Infer the likely country of origin of a personal name. Assumes names as they are in the country of origin. For US, CA, AU, NZ and other melting-pots : use 'diaspora' instead. |
originBatch | POST /api2/json/originBatch | [USES 10 UNITS PER NAME] Infer the likely country of origin of up to 100 names, detecting automatically the cultural context. |
parseName | GET /api2/json/parseName/{nameFull} | Infer the likely first/last name structure of a name, ex. John Smith or SMITH, John or SMITH; John. |
parseNameBatch | POST /api2/json/parseNameBatch | Infer the likely first/last name structure of a name, ex. John Smith or SMITH, John or SMITH; John. |
parseNameGeo | GET /api2/json/parseName/{nameFull}/{countryIso2} | Infer the likely first/last name structure of a name, ex. John Smith or SMITH, John or SMITH; John. For better accuracy, provide a geographic context. |
parseNameGeoBatch | POST /api2/json/parseNameGeoBatch | Infer the likely first/last name structure of a name, ex. John Smith or SMITH, John or SMITH; John. Giving a local context improves precision. |
parsedGenderBatch | POST /api2/json/parsedGenderBatch | Infer the likely gender of up to 100 fully parsed names, detecting automatically the cultural context. |
parsedGenderGeoBatch | POST /api2/json/parsedGenderGeoBatch | Infer the likely gender of up to 100 fully parsed names, detecting automatically the cultural context. |
usRaceEthnicity | GET /api2/json/usRaceEthnicity/{firstName}/{lastName} | [USES 10 UNITS PER NAME] Infer a US resident's likely race/ethnicity according to US Census taxonomy W_NL (white, non latino), HL (hispano latino), A (asian, non latino), B_NL (black, non latino). |
usRaceEthnicityBatch | POST /api2/json/usRaceEthnicityBatch | [USES 10 UNITS PER NAME] Infer up-to 100 US resident's likely race/ethnicity according to US Census taxonomy. |
usRaceEthnicityZIP5 | GET /api2/json/usRaceEthnicityZIP5/{firstName}/{lastName}/{zip5Code} | [USES 10 UNITS PER NAME] Infer a US resident's likely race/ethnicity according to US Census taxonomy, using (optional) ZIP5 code info. Output is W_NL (white, non latino), HL (hispano latino), A (asian, non latino), B_NL (black, non latino). |
usZipRaceEthnicityBatch | POST /api2/json/usZipRaceEthnicityBatch | [USES 10 UNITS PER NAME] Infer up-to 100 US resident's likely race/ethnicity according to US Census taxonomy, with (optional) ZIP code. |
PersonalNameGeoOut country(personalNameFull)
[USES 10 UNITS PER NAME] Infer the likely country of residence of a personal full name, or one surname. Assumes names as they are in the country of residence OR the country of origin.
// Import classes:
//import com.namsor.sdk2.invoke.ApiClient;
//import com.namsor.sdk2.invoke.ApiException;
//import com.namsor.sdk2.invoke.Configuration;
//import com.namsor.sdk2.invoke.auth.*;
//import com.namsor.sdk2.api.PersonalApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.setApiKeyPrefix("Token");
PersonalApi apiInstance = new PersonalApi();
String personalNameFull = "personalNameFull_example"; // String |
try {
PersonalNameGeoOut result = apiInstance.country(personalNameFull);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PersonalApi#country");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
personalNameFull | String |
- Content-Type: Not defined
- Accept: application/json
BatchPersonalNameGeoOut countryBatch(batchPersonalNameIn)
[USES 10 UNITS PER NAME] Infer the likely country of residence of up to 100 personal full names, or surnames. Assumes names as they are in the country of residence OR the country of origin.
// Import classes:
//import com.namsor.sdk2.invoke.ApiClient;
//import com.namsor.sdk2.invoke.ApiException;
//import com.namsor.sdk2.invoke.Configuration;
//import com.namsor.sdk2.invoke.auth.*;
//import com.namsor.sdk2.api.PersonalApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.setApiKeyPrefix("Token");
PersonalApi apiInstance = new PersonalApi();
BatchPersonalNameIn batchPersonalNameIn = new BatchPersonalNameIn(); // BatchPersonalNameIn | A list of personal names
try {
BatchPersonalNameGeoOut result = apiInstance.countryBatch(batchPersonalNameIn);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PersonalApi#countryBatch");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
batchPersonalNameIn | BatchPersonalNameIn | A list of personal names | [optional] |
- Content-Type: application/json
- Accept: application/json
FirstLastNameDiasporaedOut diaspora(countryIso2, firstName, lastName)
[USES 20 UNITS PER NAME] Infer the likely ethnicity/diaspora of a personal name, given a country of residence ISO2 code (ex. US, CA, AU, NZ etc.)
// Import classes:
//import com.namsor.sdk2.invoke.ApiClient;
//import com.namsor.sdk2.invoke.ApiException;
//import com.namsor.sdk2.invoke.Configuration;
//import com.namsor.sdk2.invoke.auth.*;
//import com.namsor.sdk2.api.PersonalApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.setApiKeyPrefix("Token");
PersonalApi apiInstance = new PersonalApi();
String countryIso2 = "countryIso2_example"; // String |
String firstName = "firstName_example"; // String |
String lastName = "lastName_example"; // String |
try {
FirstLastNameDiasporaedOut result = apiInstance.diaspora(countryIso2, firstName, lastName);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PersonalApi#diaspora");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
countryIso2 | String | ||
firstName | String | ||
lastName | String |
- Content-Type: Not defined
- Accept: application/json
BatchFirstLastNameDiasporaedOut diasporaBatch(batchFirstLastNameGeoIn)
[USES 20 UNITS PER NAME] Infer the likely ethnicity/diaspora of up to 100 personal names, given a country of residence ISO2 code (ex. US, CA, AU, NZ etc.)
// Import classes:
//import com.namsor.sdk2.invoke.ApiClient;
//import com.namsor.sdk2.invoke.ApiException;
//import com.namsor.sdk2.invoke.Configuration;
//import com.namsor.sdk2.invoke.auth.*;
//import com.namsor.sdk2.api.PersonalApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.setApiKeyPrefix("Token");
PersonalApi apiInstance = new PersonalApi();
BatchFirstLastNameGeoIn batchFirstLastNameGeoIn = new BatchFirstLastNameGeoIn(); // BatchFirstLastNameGeoIn | A list of personal names
try {
BatchFirstLastNameDiasporaedOut result = apiInstance.diasporaBatch(batchFirstLastNameGeoIn);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PersonalApi#diasporaBatch");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
batchFirstLastNameGeoIn | BatchFirstLastNameGeoIn | A list of personal names | [optional] |
BatchFirstLastNameDiasporaedOut
- Content-Type: application/json
- Accept: application/json
FirstLastNameGenderedOut gender(firstName, lastName)
Infer the likely gender of a name.
// Import classes:
//import com.namsor.sdk2.invoke.ApiClient;
//import com.namsor.sdk2.invoke.ApiException;
//import com.namsor.sdk2.invoke.Configuration;
//import com.namsor.sdk2.invoke.auth.*;
//import com.namsor.sdk2.api.PersonalApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.setApiKeyPrefix("Token");
PersonalApi apiInstance = new PersonalApi();
String firstName = "firstName_example"; // String |
String lastName = "lastName_example"; // String |
try {
FirstLastNameGenderedOut result = apiInstance.gender(firstName, lastName);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PersonalApi#gender");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
firstName | String | ||
lastName | String |
- Content-Type: Not defined
- Accept: application/json
BatchFirstLastNameGenderedOut genderBatch(batchFirstLastNameIn)
Infer the likely gender of up to 100 names, detecting automatically the cultural context.
// Import classes:
//import com.namsor.sdk2.invoke.ApiClient;
//import com.namsor.sdk2.invoke.ApiException;
//import com.namsor.sdk2.invoke.Configuration;
//import com.namsor.sdk2.invoke.auth.*;
//import com.namsor.sdk2.api.PersonalApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.setApiKeyPrefix("Token");
PersonalApi apiInstance = new PersonalApi();
BatchFirstLastNameIn batchFirstLastNameIn = new BatchFirstLastNameIn(); // BatchFirstLastNameIn | A list of personal names
try {
BatchFirstLastNameGenderedOut result = apiInstance.genderBatch(batchFirstLastNameIn);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PersonalApi#genderBatch");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
batchFirstLastNameIn | BatchFirstLastNameIn | A list of personal names | [optional] |
- Content-Type: application/json
- Accept: application/json
PersonalNameGenderedOut genderFull(fullName)
Infer the likely gender of a full name, ex. John H. Smith
// Import classes:
//import com.namsor.sdk2.invoke.ApiClient;
//import com.namsor.sdk2.invoke.ApiException;
//import com.namsor.sdk2.invoke.Configuration;
//import com.namsor.sdk2.invoke.auth.*;
//import com.namsor.sdk2.api.PersonalApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.setApiKeyPrefix("Token");
PersonalApi apiInstance = new PersonalApi();
String fullName = "fullName_example"; // String |
try {
PersonalNameGenderedOut result = apiInstance.genderFull(fullName);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PersonalApi#genderFull");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
fullName | String |
- Content-Type: Not defined
- Accept: application/json
BatchPersonalNameGenderedOut genderFullBatch(batchPersonalNameIn)
Infer the likely gender of up to 100 full names, detecting automatically the cultural context.
// Import classes:
//import com.namsor.sdk2.invoke.ApiClient;
//import com.namsor.sdk2.invoke.ApiException;
//import com.namsor.sdk2.invoke.Configuration;
//import com.namsor.sdk2.invoke.auth.*;
//import com.namsor.sdk2.api.PersonalApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.setApiKeyPrefix("Token");
PersonalApi apiInstance = new PersonalApi();
BatchPersonalNameIn batchPersonalNameIn = new BatchPersonalNameIn(); // BatchPersonalNameIn | A list of personal names
try {
BatchPersonalNameGenderedOut result = apiInstance.genderFullBatch(batchPersonalNameIn);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PersonalApi#genderFullBatch");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
batchPersonalNameIn | BatchPersonalNameIn | A list of personal names | [optional] |
- Content-Type: application/json
- Accept: application/json
PersonalNameGenderedOut genderFullGeo(fullName, countryIso2)
Infer the likely gender of a full name, given a local context (ISO2 country code).
// Import classes:
//import com.namsor.sdk2.invoke.ApiClient;
//import com.namsor.sdk2.invoke.ApiException;
//import com.namsor.sdk2.invoke.Configuration;
//import com.namsor.sdk2.invoke.auth.*;
//import com.namsor.sdk2.api.PersonalApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.setApiKeyPrefix("Token");
PersonalApi apiInstance = new PersonalApi();
String fullName = "fullName_example"; // String |
String countryIso2 = "countryIso2_example"; // String |
try {
PersonalNameGenderedOut result = apiInstance.genderFullGeo(fullName, countryIso2);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PersonalApi#genderFullGeo");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
fullName | String | ||
countryIso2 | String |
- Content-Type: Not defined
- Accept: application/json
BatchPersonalNameGenderedOut genderFullGeoBatch(batchPersonalNameGeoIn)
Infer the likely gender of up to 100 full names, with a given cultural context (country ISO2 code).
// Import classes:
//import com.namsor.sdk2.invoke.ApiClient;
//import com.namsor.sdk2.invoke.ApiException;
//import com.namsor.sdk2.invoke.Configuration;
//import com.namsor.sdk2.invoke.auth.*;
//import com.namsor.sdk2.api.PersonalApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.setApiKeyPrefix("Token");
PersonalApi apiInstance = new PersonalApi();
BatchPersonalNameGeoIn batchPersonalNameGeoIn = new BatchPersonalNameGeoIn(); // BatchPersonalNameGeoIn | A list of personal names, with a country ISO2 code
try {
BatchPersonalNameGenderedOut result = apiInstance.genderFullGeoBatch(batchPersonalNameGeoIn);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PersonalApi#genderFullGeoBatch");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
batchPersonalNameGeoIn | BatchPersonalNameGeoIn | A list of personal names, with a country ISO2 code | [optional] |
- Content-Type: application/json
- Accept: application/json
FirstLastNameGenderedOut genderGeo(firstName, lastName, countryIso2)
Infer the likely gender of a name, given a local context (ISO2 country code).
// Import classes:
//import com.namsor.sdk2.invoke.ApiClient;
//import com.namsor.sdk2.invoke.ApiException;
//import com.namsor.sdk2.invoke.Configuration;
//import com.namsor.sdk2.invoke.auth.*;
//import com.namsor.sdk2.api.PersonalApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.setApiKeyPrefix("Token");
PersonalApi apiInstance = new PersonalApi();
String firstName = "firstName_example"; // String |
String lastName = "lastName_example"; // String |
String countryIso2 = "countryIso2_example"; // String |
try {
FirstLastNameGenderedOut result = apiInstance.genderGeo(firstName, lastName, countryIso2);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PersonalApi#genderGeo");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
firstName | String | ||
lastName | String | ||
countryIso2 | String |
- Content-Type: Not defined
- Accept: application/json
BatchFirstLastNameGenderedOut genderGeoBatch(batchFirstLastNameGeoIn)
Infer the likely gender of up to 100 names, each given a local context (ISO2 country code).
// Import classes:
//import com.namsor.sdk2.invoke.ApiClient;
//import com.namsor.sdk2.invoke.ApiException;
//import com.namsor.sdk2.invoke.Configuration;
//import com.namsor.sdk2.invoke.auth.*;
//import com.namsor.sdk2.api.PersonalApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.setApiKeyPrefix("Token");
PersonalApi apiInstance = new PersonalApi();
BatchFirstLastNameGeoIn batchFirstLastNameGeoIn = new BatchFirstLastNameGeoIn(); // BatchFirstLastNameGeoIn | A list of names, with country code.
try {
BatchFirstLastNameGenderedOut result = apiInstance.genderGeoBatch(batchFirstLastNameGeoIn);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PersonalApi#genderGeoBatch");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
batchFirstLastNameGeoIn | BatchFirstLastNameGeoIn | A list of names, with country code. | [optional] |
- Content-Type: application/json
- Accept: application/json
FirstLastNameOriginedOut origin(firstName, lastName)
[USES 10 UNITS PER NAME] Infer the likely country of origin of a personal name. Assumes names as they are in the country of origin. For US, CA, AU, NZ and other melting-pots : use 'diaspora' instead.
// Import classes:
//import com.namsor.sdk2.invoke.ApiClient;
//import com.namsor.sdk2.invoke.ApiException;
//import com.namsor.sdk2.invoke.Configuration;
//import com.namsor.sdk2.invoke.auth.*;
//import com.namsor.sdk2.api.PersonalApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.setApiKeyPrefix("Token");
PersonalApi apiInstance = new PersonalApi();
String firstName = "firstName_example"; // String |
String lastName = "lastName_example"; // String |
try {
FirstLastNameOriginedOut result = apiInstance.origin(firstName, lastName);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PersonalApi#origin");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
firstName | String | ||
lastName | String |
- Content-Type: Not defined
- Accept: application/json
BatchFirstLastNameOriginedOut originBatch(batchFirstLastNameIn)
[USES 10 UNITS PER NAME] Infer the likely country of origin of up to 100 names, detecting automatically the cultural context.
// Import classes:
//import com.namsor.sdk2.invoke.ApiClient;
//import com.namsor.sdk2.invoke.ApiException;
//import com.namsor.sdk2.invoke.Configuration;
//import com.namsor.sdk2.invoke.auth.*;
//import com.namsor.sdk2.api.PersonalApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.setApiKeyPrefix("Token");
PersonalApi apiInstance = new PersonalApi();
BatchFirstLastNameIn batchFirstLastNameIn = new BatchFirstLastNameIn(); // BatchFirstLastNameIn | A list of personal names
try {
BatchFirstLastNameOriginedOut result = apiInstance.originBatch(batchFirstLastNameIn);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PersonalApi#originBatch");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
batchFirstLastNameIn | BatchFirstLastNameIn | A list of personal names | [optional] |
- Content-Type: application/json
- Accept: application/json
PersonalNameParsedOut parseName(nameFull)
Infer the likely first/last name structure of a name, ex. John Smith or SMITH, John or SMITH; John.
// Import classes:
//import com.namsor.sdk2.invoke.ApiClient;
//import com.namsor.sdk2.invoke.ApiException;
//import com.namsor.sdk2.invoke.Configuration;
//import com.namsor.sdk2.invoke.auth.*;
//import com.namsor.sdk2.api.PersonalApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.setApiKeyPrefix("Token");
PersonalApi apiInstance = new PersonalApi();
String nameFull = "nameFull_example"; // String |
try {
PersonalNameParsedOut result = apiInstance.parseName(nameFull);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PersonalApi#parseName");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
nameFull | String |
- Content-Type: Not defined
- Accept: application/json
BatchPersonalNameParsedOut parseNameBatch(batchPersonalNameIn)
Infer the likely first/last name structure of a name, ex. John Smith or SMITH, John or SMITH; John.
// Import classes:
//import com.namsor.sdk2.invoke.ApiClient;
//import com.namsor.sdk2.invoke.ApiException;
//import com.namsor.sdk2.invoke.Configuration;
//import com.namsor.sdk2.invoke.auth.*;
//import com.namsor.sdk2.api.PersonalApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.setApiKeyPrefix("Token");
PersonalApi apiInstance = new PersonalApi();
BatchPersonalNameIn batchPersonalNameIn = new BatchPersonalNameIn(); // BatchPersonalNameIn | A list of personal names
try {
BatchPersonalNameParsedOut result = apiInstance.parseNameBatch(batchPersonalNameIn);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PersonalApi#parseNameBatch");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
batchPersonalNameIn | BatchPersonalNameIn | A list of personal names | [optional] |
- Content-Type: application/json
- Accept: application/json
PersonalNameParsedOut parseNameGeo(nameFull, countryIso2)
Infer the likely first/last name structure of a name, ex. John Smith or SMITH, John or SMITH; John. For better accuracy, provide a geographic context.
// Import classes:
//import com.namsor.sdk2.invoke.ApiClient;
//import com.namsor.sdk2.invoke.ApiException;
//import com.namsor.sdk2.invoke.Configuration;
//import com.namsor.sdk2.invoke.auth.*;
//import com.namsor.sdk2.api.PersonalApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.setApiKeyPrefix("Token");
PersonalApi apiInstance = new PersonalApi();
String nameFull = "nameFull_example"; // String |
String countryIso2 = "countryIso2_example"; // String |
try {
PersonalNameParsedOut result = apiInstance.parseNameGeo(nameFull, countryIso2);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PersonalApi#parseNameGeo");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
nameFull | String | ||
countryIso2 | String |
- Content-Type: Not defined
- Accept: application/json
BatchPersonalNameParsedOut parseNameGeoBatch(batchPersonalNameGeoIn)
Infer the likely first/last name structure of a name, ex. John Smith or SMITH, John or SMITH; John. Giving a local context improves precision.
// Import classes:
//import com.namsor.sdk2.invoke.ApiClient;
//import com.namsor.sdk2.invoke.ApiException;
//import com.namsor.sdk2.invoke.Configuration;
//import com.namsor.sdk2.invoke.auth.*;
//import com.namsor.sdk2.api.PersonalApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.setApiKeyPrefix("Token");
PersonalApi apiInstance = new PersonalApi();
BatchPersonalNameGeoIn batchPersonalNameGeoIn = new BatchPersonalNameGeoIn(); // BatchPersonalNameGeoIn | A list of personal names
try {
BatchPersonalNameParsedOut result = apiInstance.parseNameGeoBatch(batchPersonalNameGeoIn);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PersonalApi#parseNameGeoBatch");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
batchPersonalNameGeoIn | BatchPersonalNameGeoIn | A list of personal names | [optional] |
- Content-Type: application/json
- Accept: application/json
BatchFirstLastNameGenderedOut parsedGenderBatch(batchParsedFullNameIn)
Infer the likely gender of up to 100 fully parsed names, detecting automatically the cultural context.
// Import classes:
//import com.namsor.sdk2.invoke.ApiClient;
//import com.namsor.sdk2.invoke.ApiException;
//import com.namsor.sdk2.invoke.Configuration;
//import com.namsor.sdk2.invoke.auth.*;
//import com.namsor.sdk2.api.PersonalApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.setApiKeyPrefix("Token");
PersonalApi apiInstance = new PersonalApi();
BatchParsedFullNameIn batchParsedFullNameIn = new BatchParsedFullNameIn(); // BatchParsedFullNameIn | A list of personal names
try {
BatchFirstLastNameGenderedOut result = apiInstance.parsedGenderBatch(batchParsedFullNameIn);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PersonalApi#parsedGenderBatch");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
batchParsedFullNameIn | BatchParsedFullNameIn | A list of personal names | [optional] |
- Content-Type: application/json
- Accept: application/json
BatchFirstLastNameGenderedOut parsedGenderGeoBatch(batchParsedFullNameGeoIn)
Infer the likely gender of up to 100 fully parsed names, detecting automatically the cultural context.
// Import classes:
//import com.namsor.sdk2.invoke.ApiClient;
//import com.namsor.sdk2.invoke.ApiException;
//import com.namsor.sdk2.invoke.Configuration;
//import com.namsor.sdk2.invoke.auth.*;
//import com.namsor.sdk2.api.PersonalApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.setApiKeyPrefix("Token");
PersonalApi apiInstance = new PersonalApi();
BatchParsedFullNameGeoIn batchParsedFullNameGeoIn = new BatchParsedFullNameGeoIn(); // BatchParsedFullNameGeoIn | A list of personal names
try {
BatchFirstLastNameGenderedOut result = apiInstance.parsedGenderGeoBatch(batchParsedFullNameGeoIn);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PersonalApi#parsedGenderGeoBatch");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
batchParsedFullNameGeoIn | BatchParsedFullNameGeoIn | A list of personal names | [optional] |
- Content-Type: application/json
- Accept: application/json
FirstLastNameUSRaceEthnicityOut usRaceEthnicity(firstName, lastName)
[USES 10 UNITS PER NAME] Infer a US resident's likely race/ethnicity according to US Census taxonomy W_NL (white, non latino), HL (hispano latino), A (asian, non latino), B_NL (black, non latino).
// Import classes:
//import com.namsor.sdk2.invoke.ApiClient;
//import com.namsor.sdk2.invoke.ApiException;
//import com.namsor.sdk2.invoke.Configuration;
//import com.namsor.sdk2.invoke.auth.*;
//import com.namsor.sdk2.api.PersonalApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.setApiKeyPrefix("Token");
PersonalApi apiInstance = new PersonalApi();
String firstName = "firstName_example"; // String |
String lastName = "lastName_example"; // String |
try {
FirstLastNameUSRaceEthnicityOut result = apiInstance.usRaceEthnicity(firstName, lastName);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PersonalApi#usRaceEthnicity");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
firstName | String | ||
lastName | String |
FirstLastNameUSRaceEthnicityOut
- Content-Type: Not defined
- Accept: application/json
BatchFirstLastNameUSRaceEthnicityOut usRaceEthnicityBatch(batchFirstLastNameGeoIn)
[USES 10 UNITS PER NAME] Infer up-to 100 US resident's likely race/ethnicity according to US Census taxonomy.
// Import classes:
//import com.namsor.sdk2.invoke.ApiClient;
//import com.namsor.sdk2.invoke.ApiException;
//import com.namsor.sdk2.invoke.Configuration;
//import com.namsor.sdk2.invoke.auth.*;
//import com.namsor.sdk2.api.PersonalApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.setApiKeyPrefix("Token");
PersonalApi apiInstance = new PersonalApi();
BatchFirstLastNameGeoIn batchFirstLastNameGeoIn = new BatchFirstLastNameGeoIn(); // BatchFirstLastNameGeoIn | A list of personal names
try {
BatchFirstLastNameUSRaceEthnicityOut result = apiInstance.usRaceEthnicityBatch(batchFirstLastNameGeoIn);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PersonalApi#usRaceEthnicityBatch");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
batchFirstLastNameGeoIn | BatchFirstLastNameGeoIn | A list of personal names | [optional] |
BatchFirstLastNameUSRaceEthnicityOut
- Content-Type: application/json
- Accept: application/json
FirstLastNameUSRaceEthnicityOut usRaceEthnicityZIP5(firstName, lastName, zip5Code)
[USES 10 UNITS PER NAME] Infer a US resident's likely race/ethnicity according to US Census taxonomy, using (optional) ZIP5 code info. Output is W_NL (white, non latino), HL (hispano latino), A (asian, non latino), B_NL (black, non latino).
// Import classes:
//import com.namsor.sdk2.invoke.ApiClient;
//import com.namsor.sdk2.invoke.ApiException;
//import com.namsor.sdk2.invoke.Configuration;
//import com.namsor.sdk2.invoke.auth.*;
//import com.namsor.sdk2.api.PersonalApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.setApiKeyPrefix("Token");
PersonalApi apiInstance = new PersonalApi();
String firstName = "firstName_example"; // String |
String lastName = "lastName_example"; // String |
String zip5Code = "zip5Code_example"; // String |
try {
FirstLastNameUSRaceEthnicityOut result = apiInstance.usRaceEthnicityZIP5(firstName, lastName, zip5Code);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PersonalApi#usRaceEthnicityZIP5");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
firstName | String | ||
lastName | String | ||
zip5Code | String |
FirstLastNameUSRaceEthnicityOut
- Content-Type: Not defined
- Accept: application/json
BatchFirstLastNameUSRaceEthnicityOut usZipRaceEthnicityBatch(batchFirstLastNameGeoZippedIn)
[USES 10 UNITS PER NAME] Infer up-to 100 US resident's likely race/ethnicity according to US Census taxonomy, with (optional) ZIP code.
// Import classes:
//import com.namsor.sdk2.invoke.ApiClient;
//import com.namsor.sdk2.invoke.ApiException;
//import com.namsor.sdk2.invoke.Configuration;
//import com.namsor.sdk2.invoke.auth.*;
//import com.namsor.sdk2.api.PersonalApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.setApiKeyPrefix("Token");
PersonalApi apiInstance = new PersonalApi();
BatchFirstLastNameGeoZippedIn batchFirstLastNameGeoZippedIn = new BatchFirstLastNameGeoZippedIn(); // BatchFirstLastNameGeoZippedIn | A list of personal names
try {
BatchFirstLastNameUSRaceEthnicityOut result = apiInstance.usZipRaceEthnicityBatch(batchFirstLastNameGeoZippedIn);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PersonalApi#usZipRaceEthnicityBatch");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
batchFirstLastNameGeoZippedIn | BatchFirstLastNameGeoZippedIn | A list of personal names | [optional] |
BatchFirstLastNameUSRaceEthnicityOut
- Content-Type: application/json
- Accept: application/json