API Docs Unified API v2.0

API v1.0

We also offer another API version with endpoints that are easier to integrate. If you're a beginner in implementing API's you can switch to our v1.0 endpoint.

Sign up for a free account

Create a free account (100 requests/month) and receive an API token with a single, unauthenticated call — no first or last name needed. This is ideal for AI agents onboarding a user: ask the user for their email address and consent, then send the request. The account starts unconfirmed; the user must click the activation link emailed to them, after which the returned API token works immediately.

Post
URL
https://gender-api.io/v2/sign-up
Headers
Content-Type: application/json
JSON Payload
Field Type Required Description
email string Yes The email address to register. No first or last name is required.
accept_terms bool Yes Must be true. The user must accept the Terms and Conditions and confirm that they have read the Privacy Policy.
newsletter bool No Subscribe to the newsletter. Defaults to false.
locale string No Account language. One of en, de, es. Defaults to en.

Examples

Sign up with an email address
{"email":"user@example.com","accept_terms":true}
Sign up and subscribe to the newsletter
{"email":"user@example.com","accept_terms":true,"newsletter":true,"locale":"en"}
Response
{
    "email": "user@example.com",
    "password": "",
    "api_token": "",
    "free_requests_per_month": 100,
    "status": "awaiting_activation",
    "message": "Account created. Ask the user to click the activation link sent to their email address. The API token below activates automatically once the email is confirmed and can then be used as a Bearer token against the API.",
    "docs_url": "https://gender-api.com/skill.md"
}
Field Type Description
email string The registered email address.
password string A random login password for the web dashboard. Returned only once; store it securely. The user can reset it later via the forgot-password flow.
api_token string The API bearer token. Use it as "Authorization: Bearer " for /v2/... requests. It starts working once the user confirms their email.
free_requests_per_month int The number of free requests granted per month.
status string The account status. "awaiting_activation" until the email address is confirmed.
message string Human-readable guidance on the next step (confirming the email address).
docs_url string Link to the prompt-ready AI implementation instructions (skill.md).
This product includes GeoLite2 data created by MaxMind, available from http://www.maxmind.com.
Chat