Get an entry#
GET /
- No key needed
- Read-only key OK
- Any origin
- ETag
Everything the entry’s page shows, as data: its title, description, images with their rights, and handles. It is built by the same code as the page, so the two never disagree. An old name or a merged entry’s key answers with the entry it now leads to, without a redirect; vhid and url say which entry that is. The same body is served at /{key}.json.
Any origin may read it: Access-Control-Allow-Origin: *, methods GET and OPTIONS, no credentials. An OPTIONS preflight answers 204. No key is needed. A request that sends one (Authorization: Bearer) has it checked, so a wrong, revoked or expired key is refused 401, and is counted against the key’s read limit; it gets the same answer, marked no-store.
Parameters
| Name | In | Type | Required | Default | Limits |
|---|---|---|---|---|---|
vhid# | path | string | Yes | — | 1–255 characters |
The entry’s VHID (11 digits), its short name, or one of its old names. Short names are matched exactly. For example 53500361835. | |||||
v# | query | string | No | — | — |
A rev (the entry’s, or the one a change you made returned): a URL of its own to every cache, so the answer is read from the site itself the first time. The answer is the same as without it. Digits or hex, at most 64. For example 1758283200000.pattern ^[0-9a-fA-F]{1,64}$ | |||||
Responses
200The entry.#
ETag- The version of this representation.
An entry: the same data its page shows, from the same code. Email addresses are masked. The text is CC0, except a description taken from Wikipedia (description_license).
The entry’s VHID: 11 digits, permanent.
The entry’s short name (
/<short>), if it has one.The name in its own script, shown under the title (
川瀬智子): from the Wikidata item’s name in native language when it is not the title, or as an editor gave it; null for none.The language code of
native_name(ja,zh-hant), as Wikidata gives it; null when none is known.Another name the subject is known by, as an editor gave it (
Amaranta Hank): the entry’s search snippet says it after the name, before any alias the Wikidata item states. Never from Wikidata; null for none.What it is, from its Wikidata item; null when unknown.
entity_kindsays more.The finer kind of thing it is, from its Wikidata item’s classes; null when unknown (an organisation or a brand not yet read since kinds were added reads null until the sync next reads its item).
Read the rest
Each kind belongs to one
entity_type, named beside it below, and each type is also the kind of an entry of that type with no finer one. New kinds may be added: treat an unknown value as itsentity_type.One of 19 values
"person"person: person"musical_group"organization: musical group"sports_organization"organization: sports organisation"broadcaster"organization: broadcaster"publisher"organization: publisher"educational_institution"organization: educational institution"research_organization"organization: research organisation"religious_organization"organization: religious organisation"museum"organization: museum"performing_group"organization: performing group"financial_institution"organization: financial institution"chain"organization: retail or hospitality chain"nonprofit"organization: charity or non-profit"company"organization: company"organization"organization: organisation"show"brand: show"website"brand: website or app"software"brand: software"brand"brand: brand
Verified Handles has verified the entry.
The person or organisation the entry is about has claimed it. Never who.
The version of the entry this body was made from: a later change’s is a larger number. A stamp (
GET /) that differs means the entry has changed. To read an entry past every cache (after your own change, say), askapi/ v1/ stamps ?v=<rev>with the rev your change returned.Who may propose a change to the entry, as its page says:
registered, any signed-in account;trustedoradmin, only accounts with that role, and the page says why;closed, nobody, and the entry cannot be claimed.Read the rest
Whether this account may edit it live is the edit context’s (
GET /). A body cached before this field was added may lack it until the entry next changes.api/ v1/ entities/ {vhid}/ edit-context The description as sanitised HTML, links to other entries named as they are today.
The English Wikipedia page an entry’s description was taken from: an article, or a draft (
draft: true).The 6 fields of it
The source’s kind (
wikipedia).The page’s title, underscored (
Draft:first for a draft).The page.
Present and true when the text has been edited on the site since.
The page’s revision the text was taken from: its permalink is
https://. Absent on a credit from before revisions were kept.en.wikipedia.org/ w/ index.php?title=<title>&oldid=<revision> Present and true when the page is an English Wikipedia draft (the Draft namespace), not yet an article.
The description’s licence, as an SPDX id:
CC-BY-SA-4.0when it was taken from Wikipedia (description_sourceis set), which means crediting the article and sharing alike. Null otherwise: the description is CC0 like the rest of the text.The entry’s canonical page.
The lead image (the same as
images[0].url), or null.The lead image at the width a list row draws it (100 CSS pixels), as a path on the site: the width the image is really served at (200 for a Commons picture), never one that redirects. Null when there is no image.
The plate
thumbis drawn on (the lead image’splate), and always null whenthumbis.Read the rest
lightordark: a picture with transparent pixels (a logo, most often), drawn on a plate of that colour so its ink shows in light and dark mode alike.none: an opaque picture (a photo), drawn as it is, with no plate. Null while the site has not yet looked at its pixels: decide from the picture itself, as the site’s pages then do.The lead image’s rights, or null when there is no image.
The 8 fields of it
Where the image came from.
An upload’s licence, by id. Null for a Commons image (see
license_name) or when none was recorded.The licence’s name, e.g. "CC BY-SA 4.0". Null until it is known.
The licence’s text.
May be reused under a free licence. Null when no licence is recorded.
The credit line to show when reusing the image.
The image’s Wikimedia Commons file page, which states its licence and author.
The entry’s "About this image" page.
Every image the entry shows, the lead first. Empty when it shows none.
The 9 fields of each item
The image, as a path on this site (
/).img/ w/ 480q75/ <id> True for the lead image, false for the gallery images after it.
Who owns an image and how it may be reused. An entry’s text is CC0 (bar a description taken from Wikipedia); its images are licensed separately, by their owners.
The 8 fields of it
Where the image came from.
An upload’s licence, by id. Null for a Commons image (see
license_name) or when none was recorded.The licence’s name, e.g. "CC BY-SA 4.0". Null until it is known.
The licence’s text.
May be reused under a free licence. Null when no licence is recorded.
The credit line to show when reusing the image.
The image’s Wikimedia Commons file page, which states its licence and author.
The entry’s "About this image" page.
Where the image links on the entry page instead of opening the full-screen viewer, or null.
The full-screen viewer’s picture, 1600 pixels wide at most, as a path on this site (
/): what to load when the viewer opens. Null when the image has aimg/ w/ 1600q75/ <id> link, which opens instead.The widest picture this site serves of the image, no wider than the original, as a path on this site: what to load once the viewer is zoomed past twice the screen. Null when there is none wider than
zoom_url(always for a Wikimedia Commons image), or whenzoom_urlis null.The original’s width in pixels, or null when it is not known.
The original’s height in pixels, or null when it is not known.
The plate the image is drawn on, as the entry page draws it.
lightordark: a picture with transparent pixels (a logo, most often), drawn on a plate of that colour so its ink shows in light and dark mode alike.Read the rest
none: an opaque picture (a photo), drawn as it is, with no plate. Null while the site has not yet looked at its pixels: decide from the picture itself, as the site’s pages then do.
The 11 fields of each item
The platform’s id (
twitter,instagram,wikidata, …).The platform’s display name.
How the entry page groups it.
The handle as stored (a username, an id, a URL). Null for an email address, which is never published as data.
The label the entry page shows instead of the value, if an editor set one. Null for email.
What the platform calls a handle whose value is an ID, like
Artist page: the entry page shows it as the card’s main line and the value under it, unlessdisplayis set. Null for most platforms.The profile’s address, built from the platform’s URL pattern. Null for email.
Verified Handles has checked that this account belongs to the entry.
What Verified Handles’ own handle checker found when it last looked at this account, from the platform’s official API: only on YouTube (channel and handle), Deezer and GitHub, and only for a look at most 7 days old.
Read the rest
Absent otherwise. The entry page shows it only for
dead(“Not found when checked …”) andrenamed.The 3 fields of it
live: the profile was there.dead: the platform did not find it.renamed: it answers under another name.unknown: the platform gave no answer a rule could read.When it looked (ISO 8601, UTC).
For
renamed, the name it answers to now, when the platform gave one. A YouTube handle’s is lowercase.
The entry page shows it before anyone opens anything: true for the accounts above a long list’s “Show N more accounts”, false for the ones folded under it, for the ones a platform’s own “+ N more” holds (a platform with four accounts or more shows its first), for the external identifiers (listed under their own closed heading, unless the entry has nothing else), and for an account the page does not draw.
The first of the entry’s accounts on its platform, in this order: the one an editor put first, else the one Wikidata marks preferred, else the one whose name is the entry’s, before its regional accounts. Take it as the entry’s main account there.
Present when the key asked for named an entry that was merged into this one: this entry’s VHID.
304Unchanged since the ETag sent in If-None-Match. No body.#
400invalid_v: v is not digits or hex, or is longer than 64.#
What is wrong with the request.
404No public entry answers to that key.#
Nothing public answers to that key, or the part asked for is not public.
429Too many requests from this IP address in the last minute (an admin key’s are counted per key instead, at the limits set on Console → Rate limits). Wait the number of seconds retry_after gives, which Retry-After also gives. Never cached.#
Retry-After- Seconds until the window resets.
503The site is down for maintenance. The body is the maintenance page, as HTML. Try again later: Retry-After gives the seconds.#
Caching, CORS and limits
- Cache
public, max-age=60, s-maxage=2592000, stale-while-revalidate=86400, stale-if-error=604800. Shared caches may keep it for 30 days; an edit to the entry purges it at once (by itsentity:<vhid>surrogate key). Browsers keep it for a minute. A strong ETag: send it back asIf-None-Matchand an unchanged entry answers 304, with no body. On verifiedhandles.org, Google’s edge in front of the site also keeps an answer to a request with no key for up to a minute, and cannot be told to drop it: after a change you made yourself, read the entry with?v=<rev>.- Purged by
entity:<vhid>- ETag
- Yes, strong: send it back as If-None-Match for a 304.
- CORS
- Any origin: Access-Control-Allow-Origin: *, GET and OPTIONS, no credentials.
- Rate limit
- 120 requests a minute per IP address, shared by every route in the
jsongroup. Past it: 429, withRetry-After.
curl 'https://verifiedhandles.org/api/v1/entities/james'const res = await fetch('https://verifiedhandles.org/api/v1/entities/james');
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();import requests
r = requests.get(
"https://verifiedhandles.org/api/v1/entities/james",
timeout=10,
)
r.raise_for_status()
data = r.json()GET /api/v1/entities/james{
"vhid": "53500361835",
"short": "james",
"title": "James Haworth",
"subtitle": null,
"native_name": null,
"native_name_lang": null,
"also_known_as": null,
"entity_type": "person",
"entity_kind": "person",
"verified": true,
"claimed": false,
"rev": "1758283200000",
"propose_policy": "registered",
"description": null,
"description_source": null,
"description_license": null,
"url": "https://verifiedhandles.org/james",
"image": "/img/w/480q75/3",
"thumb": "/img/w/200q75/3",
"thumb_plate": null,
"image_rights": {
"source": "upload",
"license": null,
"license_name": null,
"license_url": null,
"freely_licensed": null,
"credit": null,
"source_page": null,
"details_url": "https://verifiedhandles.org/james/image"
},
"images": [
{
"url": "/img/w/480q75/3",
"main": true,
"image_rights": {
"source": "upload",
"license": null,
"license_name": null,
"license_url": null,
"freely_licensed": null,
"credit": null,
"source_page": null,
"details_url": "https://verifiedhandles.org/james/image"
},
"link": null,
"zoom_url": "/img/w/1600q75/3",
"zoom_max_url": null,
"width": 16,
"height": 16,
"plate": null
}
],
"handles": [
{
"platform": "twitter",
"name": "X (Twitter)",
"category": "social",
"value": "james",
"display": null,
"display_label": null,
"url": "https://x.com/james",
"verified": false,
"shown_first": true,
"platform_first": true
},
{
"platform": "linkedin",
"name": "LinkedIn",
"category": "social",
"value": "james-haworth",
"display": null,
"display_label": null,
"url": "https://www.linkedin.com/in/james-haworth",
"verified": false,
"shown_first": true,
"platform_first": true
},
{
"platform": "instagram",
"name": "Instagram",
"category": "social",
"value": "jameshaworth",
"display": null,
"display_label": null,
"url": "https://instagram.com/jameshaworth",
"verified": false,
"shown_first": true,
"platform_first": true
},
{
"platform": "email",
"name": "Email",
"category": "messaging",
"value": null,
"display": null,
"display_label": null,
"url": null,
"verified": false,
"shown_first": false,
"platform_first": true
}
]
}v that is not a revGET /api/v1/entities/james?v=latest{
"error": "invalid_v"
}GET /api/v1/entities/no-such-entry{
"error": "not_found"
}