Find an API

Search public APIs with auth details & Postman guides

← All APIs

Agify / Genderize / Nationalize

api.agify.io · Developer Tools

Developer Tools No Auth Free & Open Demographics Names Data

Three free APIs from a single family — predict age (Agify), gender (Genderize), and nationality (Nationalize) from a first name. 1,000 requests/day per API, no key needed.

Authentication

No authentication requiredFree to use with no key needed.

Sample Requests

GET Predict gender

Predict gender for the name Alex.

https://api.agify.io/https:/api.genderize.io?name=alex

Hover any highlighted part to learn what it does

curl -X GET "https://api.agify.iohttps://api.genderize.io?name=alex"
import requests
params = {
    "name": "alex"
}
response = requests.get(
    "https://api.agify.iohttps://api.genderize.io",
    params=params,
)
print(response.json())
const url = new URL('https://api.agify.iohttps://api.genderize.io');
url.searchParams.set('name', 'alex');

const response = await fetch(url); 
const data = await response.json();
console.log(data);
package main

import (
	"fmt"
	"io"
	"net/http"
	"net/url"
)

func main() {
	baseURL, _ := url.Parse("https://api.agify.iohttps://api.genderize.io")
	q := baseURL.Query()
	q.Set("name", "alex")
	baseURL.RawQuery = q.Encode()
	targetURL := baseURL.String()
	req, _ := http.NewRequest("GET", targetURL, nil)

	client := &http.Client{}
	resp, _ := client.Do(req)
	defer resp.Body.Close()
	body, _ := io.ReadAll(resp.Body)
	fmt.Println(string(body))
}
require "net/http"
require "json"

uri = URI("https://api.agify.iohttps://api.genderize.io")
uri.query = URI.encode_www_form({
  "name" => "alex"
})

http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"

req = Net::HTTP::Get.new(uri)

res = http.request(req)
puts JSON.parse(res.body)
<?php
$url = "https://api.agify.iohttps://api.genderize.io?" . http_build_query([
    "name" => "alex"
]);
$opts = ["http" => [
    "method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));
GET Predict nationality

Predict nationality for the surname Müller.

https://api.agify.io/https:/api.nationalize.io?name=müller

Hover any highlighted part to learn what it does

curl -X GET "https://api.agify.iohttps://api.nationalize.io?name=m%C3%BCller"
import requests
params = {
    "name": "müller"
}
response = requests.get(
    "https://api.agify.iohttps://api.nationalize.io",
    params=params,
)
print(response.json())
const url = new URL('https://api.agify.iohttps://api.nationalize.io');
url.searchParams.set('name', 'müller');

const response = await fetch(url); 
const data = await response.json();
console.log(data);
package main

import (
	"fmt"
	"io"
	"net/http"
	"net/url"
)

func main() {
	baseURL, _ := url.Parse("https://api.agify.iohttps://api.nationalize.io")
	q := baseURL.Query()
	q.Set("name", "müller")
	baseURL.RawQuery = q.Encode()
	targetURL := baseURL.String()
	req, _ := http.NewRequest("GET", targetURL, nil)

	client := &http.Client{}
	resp, _ := client.Do(req)
	defer resp.Body.Close()
	body, _ := io.ReadAll(resp.Body)
	fmt.Println(string(body))
}
require "net/http"
require "json"

uri = URI("https://api.agify.iohttps://api.nationalize.io")
uri.query = URI.encode_www_form({
  "name" => "müller"
})

http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"

req = Net::HTTP::Get.new(uri)

res = http.request(req)
puts JSON.parse(res.body)
<?php
$url = "https://api.agify.iohttps://api.nationalize.io?" . http_build_query([
    "name" => "müller"
]);
$opts = ["http" => [
    "method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));

Postman Setup Guide

Get Postman ↗
  1. No API key needed (1,000 req/day each)
  2. Age: GET https://api.agify.io?name=emma
  3. Gender: GET https://api.genderize.io?name=jamie
  4. Nationality: GET https://api.nationalize.io?name=zhang
  5. Batch: GET https://api.agify.io?name[]=peter&name[]=anna&name[]=maria

Open documentation ↗