Get an entry#
get_entry
- Reads only
- No key needed
One entry, by VHID, short name or Wikidata QID: its public record (title, description, handles, image, URL) and, as editing, what the editor would load for this key — the current revision, the editable fields, every handle with who manages it (the Wikidata sync or the site), which fields the sync manages, and whether this key may edit it live. Without an API key, the public record alone.
Arguments
Answer
One entry: its public record and, with an API key, what the editor would load for it.
The entry’s VHID: 11 digits, permanent.
The entry’s public record, as GET /api/v1/entities/{vhid} answers it. Null for a VHID that is not public (a deleted entry):
editingsays more.The 21 fields of it
The entry’s VHID: 11 digits, permanent.
The entry’s short name (
/<short>), if it has one.What it is, from its Wikidata item:
person,organizationorbrand; 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). Each kind belongs to one
entity_type, andperson,organizationandbrandare also the kinds of an entry of that type with no finer one. The kinds, with their type: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),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). New kinds may be added; treat an unknown value as itsentity_type.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 /api/v1/stamps) that differs means the entry has changed. To read an entry past every cache (after your own change, say), ask?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. Whether this account may edit it live is the edit context’s (GET /api/v1/entities/{vhid}/edit-context). A body cached before this field was added may lack it until the entry next changes.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://en.wikipedia.org/w/index.php?title=<title>&oldid=<revision>. Absent on a credit from before revisions were kept.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.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 (
/img/w/1600q75/<id>): what to load when the viewer opens. Null when the image has alink, 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.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 9 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.
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. 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 external identifiers (listed under their own closed heading, unless the entry has nothing else), and for an account the page does not draw.
Present when the key asked for named an entry that was merged into this one: this entry’s VHID.
With an API key: what the editor loads for this key (GET /api/editor/{vhid}):
baseRevisionId,capabilities(whether it may edit live or propose),editable,handles,provenance(which fields the Wikidata sync manages),qid, andplatformswith include_platforms. Where the key may not open the editor, the route’sstatusanderror. Absent with no key.
{
"type": "object",
"properties": {
"entry": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"pattern": "^(?!\\.{1,2}$)",
"description": "The entry: its VHID (11 digits), its short name (as in verifiedhandles.org/<short>), or its Wikidata QID (Q42)."
},
"include_platforms": {
"default": false,
"description": "Also list every platform a handle can be on (id, name, URL prefix). Needs an API key.",
"type": "boolean"
}
},
"required": [
"entry"
]
}{
"type": "object",
"properties": {
"vhid": {
"type": "string",
"pattern": "^\\d{11}$",
"description": "The entry’s VHID: 11 digits, permanent."
},
"entry": {
"anyOf": [
{
"type": "object",
"properties": {
"vhid": {
"type": "string",
"pattern": "^\\d{11}$",
"description": "The entry’s VHID: 11 digits, permanent."
},
"short": {
"description": "The entry’s short name (`/<short>`), if it has one.",
"type": [
"string",
"null"
]
},
"title": {
"type": "string"
},
"subtitle": {
"type": [
"string",
"null"
]
},
"entity_type": {
"description": "What it is, from its Wikidata item: `person`, `organization` or `brand`; null when unknown. `entity_kind` says more.",
"type": [
"string",
"null"
]
},
"entity_kind": {
"anyOf": [
{
"type": "string",
"enum": [
"person",
"musical_group",
"sports_organization",
"broadcaster",
"publisher",
"educational_institution",
"research_organization",
"religious_organization",
"museum",
"financial_institution",
"chain",
"nonprofit",
"company",
"organization",
"show",
"website",
"software",
"brand"
]
},
{
"type": "null"
}
],
"description": "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). Each kind belongs to one `entity_type`, and `person`, `organization` and `brand` are also the kinds of an entry of that type with no finer one. The kinds, with their type: `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), `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). New kinds may be added; treat an unknown value as its `entity_type`."
},
"verified": {
"type": "boolean",
"description": "Verified Handles has verified the entry."
},
"claimed": {
"type": "boolean",
"description": "The person or organisation the entry is about has claimed it. Never who."
},
"rev": {
"type": "string",
"pattern": "^\\d+$",
"description": "The version of the entry this body was made from: a later change’s is a larger number. A stamp (`GET /api/v1/stamps`) that differs means the entry has changed. To read an entry past every cache (after your own change, say), ask `?v=<rev>` with the rev your change returned."
},
"propose_policy": {
"type": "string",
"enum": [
"registered",
"trusted",
"admin",
"closed"
],
"description": "Who may propose a change to the entry, as its page says: `registered`, any signed-in account; `trusted` or `admin`, only accounts with that role, and the page says why; `closed`, nobody, and the entry cannot be claimed. Whether this account may edit it live is the edit context’s (`GET /api/v1/entities/{vhid}/edit-context`). A body cached before this field was added may lack it until the entry next changes."
},
"description": {
"description": "The description as sanitised HTML, links to other entries named as they are today.",
"type": [
"string",
"null"
]
},
"description_source": {
"anyOf": [
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"description": "The source’s kind (`wikipedia`)."
},
"title": {
"type": "string",
"description": "The page’s title, underscored (`Draft:` first for a draft)."
},
"url": {
"type": "string",
"description": "The page."
},
"adapted": {
"description": "Present and true when the text has been edited on the site since.",
"type": "boolean"
},
"revision": {
"description": "The page’s revision the text was taken from: its permalink is `https://en.wikipedia.org/w/index.php?title=<title>&oldid=<revision>`. Absent on a credit from before revisions were kept.",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"draft": {
"description": "Present and true when the page is an English Wikipedia draft (the Draft namespace), not yet an article.",
"type": "boolean",
"const": true
}
},
"required": [
"kind",
"title",
"url"
],
"additionalProperties": {},
"description": "The English Wikipedia page an entry’s description was taken from: an article, or a draft (`draft: true`)."
},
{
"type": "null"
}
]
},
"description_license": {
"anyOf": [
{
"type": "string",
"const": "CC-BY-SA-4.0"
},
{
"type": "null"
}
],
"description": "The description’s licence, as an SPDX id: `CC-BY-SA-4.0` when it was taken from Wikipedia (`description_source` is set), which means crediting the article and sharing alike. Null otherwise: the description is CC0 like the rest of the text."
},
"url": {
"type": "string",
"description": "The entry’s canonical page."
},
"image": {
"description": "The lead image (the same as `images[0].url`), or null.",
"type": [
"string",
"null"
]
},
"thumb": {
"description": "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.",
"type": [
"string",
"null"
]
},
"thumb_plate": {
"anyOf": [
{
"type": "string",
"enum": [
"light",
"dark",
"none"
]
},
{
"type": "null"
}
],
"description": "The plate `thumb` is drawn on (the lead image’s `plate`), and always null when `thumb` is. `light` or `dark`: 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."
},
"image_rights": {
"anyOf": [
{
"type": "object",
"properties": {
"source": {
"type": "string",
"enum": [
"wikimedia_commons",
"upload"
],
"description": "Where the image came from."
},
"license": {
"anyOf": [
{
"type": "string",
"enum": [
"cc0-1.0",
"public-domain",
"cc-by-4.0",
"cc-by-sa-4.0",
"supplied",
"permission",
"none"
]
},
{
"type": "null"
}
],
"description": "An upload’s licence, by id. Null for a Commons image (see `license_name`) or when none was recorded."
},
"license_name": {
"description": "The licence’s name, e.g. \"CC BY-SA 4.0\". Null until it is known.",
"type": [
"string",
"null"
]
},
"license_url": {
"description": "The licence’s text.",
"type": [
"string",
"null"
]
},
"freely_licensed": {
"description": "May be reused under a free licence. Null when no licence is recorded.",
"type": [
"boolean",
"null"
]
},
"credit": {
"description": "The credit line to show when reusing the image.",
"type": [
"string",
"null"
]
},
"source_page": {
"description": "The image’s Wikimedia Commons file page, which states its licence and author.",
"type": [
"string",
"null"
]
},
"details_url": {
"type": "string",
"description": "The entry’s \"About this image\" page."
}
},
"required": [
"source",
"license",
"license_name",
"license_url",
"freely_licensed",
"credit",
"source_page",
"details_url"
],
"additionalProperties": {},
"description": "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."
},
{
"type": "null"
}
],
"description": "The lead image’s rights, or null when there is no image."
},
"images": {
"type": "array",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "The image, as a path on this site (`/img/w/480q75/<id>`)."
},
"main": {
"type": "boolean",
"description": "True for the lead image, false for the gallery images after it."
},
"image_rights": {
"type": "object",
"properties": {
"source": {
"type": "string",
"enum": [
"wikimedia_commons",
"upload"
],
"description": "Where the image came from."
},
"license": {
"anyOf": [
{
"type": "string",
"enum": [
"cc0-1.0",
"public-domain",
"cc-by-4.0",
"cc-by-sa-4.0",
"supplied",
"permission",
"none"
]
},
{
"type": "null"
}
],
"description": "An upload’s licence, by id. Null for a Commons image (see `license_name`) or when none was recorded."
},
"license_name": {
"description": "The licence’s name, e.g. \"CC BY-SA 4.0\". Null until it is known.",
"type": [
"string",
"null"
]
},
"license_url": {
"description": "The licence’s text.",
"type": [
"string",
"null"
]
},
"freely_licensed": {
"description": "May be reused under a free licence. Null when no licence is recorded.",
"type": [
"boolean",
"null"
]
},
"credit": {
"description": "The credit line to show when reusing the image.",
"type": [
"string",
"null"
]
},
"source_page": {
"description": "The image’s Wikimedia Commons file page, which states its licence and author.",
"type": [
"string",
"null"
]
},
"details_url": {
"type": "string",
"description": "The entry’s \"About this image\" page."
}
},
"required": [
"source",
"license",
"license_name",
"license_url",
"freely_licensed",
"credit",
"source_page",
"details_url"
],
"additionalProperties": {},
"description": "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."
},
"link": {
"description": "Where the image links on the entry page instead of opening the full-screen viewer, or null.",
"type": [
"string",
"null"
]
},
"zoom_url": {
"description": "The full-screen viewer’s picture, 1600 pixels wide at most, as a path on this site (`/img/w/1600q75/<id>`): what to load when the viewer opens. Null when the image has a `link`, which opens instead.",
"type": [
"string",
"null"
]
},
"zoom_max_url": {
"description": "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 when `zoom_url` is null.",
"type": [
"string",
"null"
]
},
"width": {
"anyOf": [
{
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991
},
{
"type": "null"
}
],
"description": "The original’s width in pixels, or null when it is not known."
},
"height": {
"anyOf": [
{
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991
},
{
"type": "null"
}
],
"description": "The original’s height in pixels, or null when it is not known."
},
"plate": {
"anyOf": [
{
"type": "string",
"enum": [
"light",
"dark",
"none"
]
},
{
"type": "null"
}
],
"description": "The plate the image is drawn on, as the entry page draws it. `light` or `dark`: 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."
}
},
"required": [
"url",
"main",
"image_rights",
"link",
"zoom_url",
"zoom_max_url",
"width",
"height",
"plate"
],
"additionalProperties": {},
"description": "One image an entry shows."
},
"description": "Every image the entry shows, the lead first. Empty when it shows none."
},
"handles": {
"type": "array",
"items": {
"type": "object",
"properties": {
"platform": {
"type": "string",
"description": "The platform’s id (`twitter`, `instagram`, `wikidata`, …)."
},
"name": {
"type": "string",
"description": "The platform’s display name."
},
"category": {
"type": "string",
"enum": [
"social",
"messaging",
"website",
"identifier"
],
"description": "How the entry page groups it."
},
"value": {
"description": "The handle as stored (a username, an id, a URL). Null for an email address, which is never published as data.",
"type": [
"string",
"null"
]
},
"display": {
"description": "The label the entry page shows instead of the value, if an editor set one. Null for email.",
"type": [
"string",
"null"
]
},
"url": {
"description": "The profile’s address, built from the platform’s URL pattern. Null for email.",
"type": [
"string",
"null"
]
},
"verified": {
"type": "boolean",
"description": "Verified Handles has checked that this account belongs to the entry."
},
"checked": {
"description": "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. Absent otherwise. The entry page shows it only for `dead` (“Not found when checked …”) and `renamed`.",
"type": "object",
"properties": {
"verdict": {
"type": "string",
"enum": [
"live",
"dead",
"renamed",
"unknown"
],
"description": "`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."
},
"at": {
"type": "string",
"description": "When it looked (ISO 8601, UTC)."
},
"now": {
"description": "For `renamed`, the name it answers to now, when the platform gave one. A YouTube handle’s is lowercase.",
"type": "string"
}
},
"required": [
"verdict",
"at"
],
"additionalProperties": {}
},
"shown_first": {
"type": "boolean",
"description": "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 external identifiers (listed under their own closed heading, unless the entry has nothing else), and for an account the page does not draw."
}
},
"required": [
"platform",
"name",
"category",
"value",
"display",
"url",
"verified",
"shown_first"
],
"additionalProperties": {},
"description": "One account or identifier of an entry, in the order the entry page shows them. A Wikidata item linked to the entry comes last, as platform `wikidata`."
}
},
"merged_into": {
"description": "Present when the key asked for named an entry that was merged into this one: this entry’s VHID.",
"type": "string",
"pattern": "^\\d{11}$"
}
},
"required": [
"vhid",
"short",
"title",
"subtitle",
"entity_type",
"entity_kind",
"verified",
"claimed",
"rev",
"propose_policy",
"description",
"description_source",
"description_license",
"url",
"image",
"thumb",
"thumb_plate",
"image_rights",
"images",
"handles"
],
"additionalProperties": {},
"description": "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`)."
},
{
"type": "null"
}
],
"description": "The entry’s public record, as GET /api/v1/entities/{vhid} answers it. Null for a VHID that is not public (a deleted entry): `editing` says more."
},
"editing": {
"description": "With an API key: what the editor loads for this key (GET /api/editor/{vhid}): `baseRevisionId`, `capabilities` (whether it may edit live or propose), `editable`, `handles`, `provenance` (which fields the Wikidata sync manages), `qid`, and `platforms` with include_platforms. Where the key may not open the editor, the route’s `status` and `error`. Absent with no key.",
"type": "object",
"properties": {},
"additionalProperties": {}
}
},
"required": [
"vhid",
"entry"
],
"additionalProperties": {},
"description": "One entry: its public record and, with an API key, what the editor would load for it."
}