API v1 Documentation
API v1 is deprecated. Please migrate to the newer API v2, and please do not use API v1 for writing any new code interacting with PronounDB.
While API v1 will contiue to operate, newer features of PronounDB are not available. New platforms
cannot be queried on API v1, and some new sets might not be available on API v1 which will result in
people using these having their sets fallback to other
.
See the API v2 compatibility section of this doc for more details about the compatibility of newer features, and how they are handled by API v1.
API v1 will permanently cease its operations June 1st, 2024.
API endpoints
Lookup an account
GET /api/v1/lookup?platform=[platform]&id=[id]
Query parameters
platform
: A supported platform as described below.id
: Account ID.
Response: A JSON object with a pronouns
property.
Lookup accounts in bulk
GET /api/v1/lookup-bulk?platform=[platform]&ids=[ids...]
Query parameters
platform
: A supported platform as described below.ids
: Comma-separated Account IDs. Maximum 50.
Response: A map of IDs with their corresponding set of pronouns.
API v2 compatibility
No feature from API v2 other than pronouns is available on API v1. Only platforms supported at the time of API v1 deprecation are supported; see the Data Types section for the final list of platforms API v1 will answer queries for.
Pronouns are converted from the API v2 format to the APIv1 identifiers according to the following algorithm:
- Consider
sets
an array of sets: - If
sets[0]
isavoid
, then returnavoid
- If
sets
containsany
, then returnany
- If
sets
containsask
, then returnask
- If
sets[0]
is eitherhe
,it
,she
, orthey
- If
sets[1]
is also either of the above sets, then return the identifier for the combined set - Else, return the legacy identifier for
sets[0]
- Else, fallback to
other
.
Note: only English sets are considered; if the user only has sets for other languages, it will show up
as unspecified
in the responses.
Data types
Pronouns
unspecified
: Unspecifiedhh
: he/himhi
: he/iths
: he/sheht
: he/theyih
: it/himii
: it/itsis
: it/sheit
: it/theyshh
: she/hesh
: she/hersi
: she/itst
: she/theyth
: they/heti
: they/itts
: they/shett
: they/themany
: Any pronounsother
: Other pronounsask
: Ask me my pronounsavoid
: Avoid pronouns, use my name
Platforms
discord
github
minecraft
twitch
twitter