apikey query parameter, which is where the API expects it, not as a header.
Things to know before you call:
- A key is optional. A live probe without one still answered, because Genderize serves a small IP-scoped allowance (10 names per window in a probe on 2026-11-14) before it asks for an account. Passing a key raises the allowance and is what the account is billed against, so configure one for anything beyond a trial. Because a missing key is valid, Corsair does not prompt a tenant for one: connect the key with a connect link or pass
keytogenderize(). On a shared server every keyless tenant draws on the same IP allowance. - A name it does not know is not an error. The answer is HTTP 200 with
gender: null,probability: 0andcount: 0. The name still counts against the monthly quota, so checkgenderrather than relying on the call to fail. - A full name is more accurate than a first name. Every part carries signal: a surname such as Jónsdóttir is used only by women, so
Alex Jónsdóttirresolves as female even thoughAlexalone leans male. Genderize finds the name parts itself, soTanaka HiroshiandHiroshi Tanakagive the same answer. - Country changes the answer.
Kimis mostly female worldwide but overwhelmingly male in Denmark, so passcountry_idwhen the country is known. - A batch counts each name against the monthly quota.
batchsends up to 100 names in one request and answers an array in the same order as the input. Itscountry_idapplies to every name in it, not to one. - 429 means two different things. It is either the exhausted quota (
Request limit reached), which the plugin does not retry because it lasts until the window resets, or a short-term throttle (Request too low to process), which it retries with backoff.
- 2 typed API operations
Setup
1
Install
2
Add the plugin
corsair.ts
multiTenancy: true, scope calls with corsair.withTenant(id). See Quick start for KEK + Hub keys, and Multi-tenancy for account isolation.3
Choose authentication
- API Key (Recommended)
Store the Genderize API key before the first call: More: API Key
pnpm corsair setup --plugin=genderize --tenant=acme api_key=<your-key> (leave out --tenant without multiTenancy), or pass it as key in the plugin options. With Hub, each tenant enters their own key on the connect page. See API key auth.4
Connect a tenant
Mint a connect link and send the tenant to it. Hub hosts the page and delivers the result to your app — see Connect / OAuth.
Example API calls
Predict the gender behind a nameWhat’s next
API reference
Every
genderize.api.* operation with input and output types.Connect / OAuth
createLink, Hub delivery, and tenant connect flows.
Use with agents
Expose this plugin’s operations as MCP tools.