Age Estimation

Age Estimation

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

What is Age Estimation?

Age Estimation tells you if the person behind an email address, a phone number, or both, is an adult.

Send at least one of email or phone_number.

Response

nametype
phone_is_valid_format?boolean

Whether the phone_number sent can be parsed. Null when no phone_number was sent

Ex: true
email_is_valid_format?boolean

Whether the email sent can be parsed. Null when no email was sent

Ex: true
match?boolean

True when the person can be confirmed as an adult; False when the input data is valid but the person cannot be confirmed as an adult. Null otherwise

Ex: true
is_adult?boolean

True when the person is an adult. Null unless match is true

Ex: true
date_of_birth?string date

A date of birth when available

Ex: 1992-06-27

Example

{
    "phone_is_valid_format": true,
    "email_is_valid_format": true,
    "match": true,
    "is_adult": true,
    "date_of_birth": "1992-06-27"
}

If the person cannot be confirmed as an adult, match is false and all other fields are null.

FAQ

📘

Why do I need to pass a transaction_id?

The transaction_id refers to one specific transaction in the system. The email or the phone number alone can collide when you send the same value twice. The transaction_id must be unique across all the Trustfull API endpoints.

📘

What is the supported phone_number format?

Send the phone_number in international format: the country code, then the national number, without leading zeros. The endpoint also accepts a leading plus, spaces, dashes and brackets, and removes them before the lookup.

📘

What is the supported email format?

The email must follow the HTML email rule, and its domain must have at least one dot. Upper and lower case letters and + tags are accepted. The endpoint does not remove spaces, so " [email protected]" is invalid. Accented letters and other non-ASCII characters are also invalid.

📘

What happens if I pass an invalid phone number or email?

We recommend that you validate the format before the request, or use our Phone Validation endpoint. If the phone_number or the email has an invalid format, the response still contains every field. Only phone_is_valid_format or email_is_valid_format is false (or both), and all other fields are null. The call costs the same as a standard API call.

📘

What is the difference between match false and match null?

match is false when the input is valid but the person cannot be confirmed as an adult. match is null when the email or the phone number has an invalid format. In both cases all fields are null, and the call costs the same as a standard API call.

📘

Can I send both an email and a phone number?

Yes. The endpoint uses both of them to build one answer. Each field is optional, but you must send at least one of them.

Body Params

AgeEstimationRequest

Age estimation request, at least one of email or phone_number is required. Any other field is refused

string
required

The unique identifier of this transaction. Duplicated values are not allowed

string

Email address of the person, required when phone_number is missing

string

Phone number in international format, without + or leading zeros, required when email is missing.

Headers
string
required
Response

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json