> ## Documentation Index
> Fetch the complete documentation index at: https://lava.so/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Nationalize

> Predicts the likely nationality of a person from their first name, returning a ranked list of countries with probability scores.

Predicts the likely nationality of a person from their first name, returning a ranked list of countries with probability scores. Best for demographic enrichment, localization, or inferring likely origin when only a name is known. Draws on a database of 100M+ names across 200+ countries. A Demografix API, sibling to Genderize (gender) and Agify (age).

1 endpoint available through Lava's AI Gateway. See the [Nationalize API docs](https://nationalize.io/documentation) for full documentation.

<Info>Supports both **managed** (Lava's API keys) and **unmanaged** (bring your own credentials) mode.</Info>

## Endpoints

### Predict the likely nationality of a first name, returned as a ranked list of country codes with probabilities. Accepts a single name or a batch of up to 10 via repeated name query parameters. Billed per name.

**GET** `https://api.nationalize.io?name=nathaniel` — \$0.0008 / request

<Tabs>
  <Tab title="SDK">
    ```typescript theme={null}
    const data = await lava.gateway('https://api.nationalize.io?name=nathaniel', { method: 'GET' });
    ```
  </Tab>

  <Tab title="cURL">
    ```bash theme={null}
    curl "https://api.lava.so/v1/forward?u=https%3A%2F%2Fapi.nationalize.io%3Fname%3Dnathaniel" \
      -H "Authorization: Bearer $LAVA_SECRET_KEY"
    ```
  </Tab>
</Tabs>

## Next Steps

<CardGroup cols={2}>
  <Card title="All Providers" icon="grid" href="/gateway/supported-providers">
    Browse all supported AI providers
  </Card>

  <Card title="Forward Proxy" icon="route" href="/gateway/forward-proxy">
    Learn how to construct proxy URLs and authenticate requests
  </Card>
</CardGroup>
