Upstream quirks
Findings from the live study of Wikidata's three read interfaces on 2026-11-27, at about 60 paced requests, with the Action API self-documentation, the Wikibase REST OpenAPI document, and the data access guides as references. Where a quirk affects quiddita, the behavior of the client is noted.
Read modules that exist
The module index of action=help lists these read modules: wbgetentities, wbsearchentities, wbgetclaims, wbformatentities, wbformatvalue, wbparsevalue, wbavailablebadges, wbcheckconstraints, and wbsgetsuggestions, plus the write modules. The modules wbsearchbytitle and wbformatentitiesdata do not exist on Wikidata; both answer Unrecognized value for parameter "action".
Action API error reporting
All Action API errors, soft and hard, answer with HTTP 200 and an {"error": {code, info}} body. Unknown module, unknown parameter value, too many ids, and no-such-entity all came back with 200. quiddita raises on that shape in the unwrapper: no-such-entity becomes NotFoundError, everything else ConfigurationError.
Parameter facts
wbgetentitiesaccepts at most 50 ids per request (toomanyvalues, lowlimit 50).batch_get()anditerate_ids()chunk at 50.- Unknown ids answer in two ways (verified 2026-11-28). An item id above the highest item number, and an unknown form or sense id, fail the whole
wbgetentitiesrequest withno-such-entity, and the error body names the id asid. A deleted or never-used item id below that number (Q54446106), and an unknown lexeme or property id, answer with success and a{"id": ..., "missing": ""}stub.get()raisesNotFoundErrorfor both.batch_get()leaves stub ids out of its result and raises for a rejected request;iterate_ids()withon_error="skip"drops and records both kinds. redirectsacceptsyesandno(defaultyes); the values0,1, and the empty string answerbadvalue. Withredirects=noa redirect id answers as a stub entity (infoonly).wbgetclaims'srankacceptsdeprecated,normal, andpreferred. The valuevalidanswersbadvalue, soClaimsClientrejects it before sending.wbsearchentitiesreports no total:searchinfocarriessearchandoffsetonly.count()is therefore not supported, anditerate()walkscontinueoffsets until an empty page.wbformatentitiesreturns HTML links per id;wbparsevalueparses values against adatatype;wbavailablebadgestakes notitlesorsiteparameters (it warns and returns all badges).- Multi-value parameters accept pipe-joined values (
ids=Q42|P31); quiddita joins sequences with|.
Special:EntityData (verified 2026-11-28)
wiki/Special:EntityData/{id}.{format}serves the full entity per format:json(200application/json, same shape aswbgetentities),jsonld,rdf,nt,ttl, andn3. The suffixesnquads,trig, andsvganswer 415.revision=<old revid>serves that revision; an unknown revision answers 404 with an HTML page, an invalid id answers 400 withInvalid ID: .... The route works for items, properties, and lexemes (L2.json).Special:EntityData?ids=Q42|Q5&format=jsonanswers HTML: theidsparameter is not a JSON route, so the client fetches one entity per request.https://www.wikidata.org/entity/Q42answers 303 toSpecial:EntityData/Q42.ttlunderAccept: text/turtle;client.entity_data.negotiate()follows that redirect.https://query.wikidata.org/bigdata/ld/wd/Q42,.ttl, and.jsonldall answer 404 (verified 2026-11-28): the linked-data endpoint of the query service is gone.
REST suggest and lexeme routes (verified 2026-11-28)
/suggest/itemsand/suggest/propertiesanswer the same result shape as/search/items(match type can bealias). The query parameter isq;search=answers 400parameter-validation-failed.- The lexeme routes live only under
/w/rest.php/wikibaselexeme/v0:/entities/lexemes/L2answers 200 with{id, lemmas, lexical_category, language, statements, forms, senses}, wherelexical_categoryandlanguageare bare item ids. The same path underwikibase/v1answers 404, and/entities/forms/{id}and/entities/senses/{id}answerrest-no-match.
Action utility modules (verified 2026-11-27/28)
wbavailablebadgesanswers{"badges": [...]}with no parameters.wbformatentitiesanswerswbformatentities: {id: html}; thepropsandlanguagesparameters are ignored with a warning, so the client does not offer them.wbformatvaluetakesdatavalueas the JSON{"type": ..., "value": ...}object anddatatype; without thetypekey it answersbaddatavalue.wbparsevalueanswersresults: [{raw, value, type}]forvaluesanddatatype.wbsgetsuggestionsanswerssearch: [{id, url, rating, label, description}]and requiresentityorproperties; without both it answerspropertysuggester-wbsgetsuggestions-either-entity-or-properties. Withentity=Q42the suggester answered an empty list on 2026-11-27.wbcheckconstraintstakes the entities in anidparameter (maximum 50, pipe-joined);entityandentityidanswer theno-dataerror. The report is keyed by entity, then property, with per-claimmainsnak.resultsentries carrying status, constraint, and message HTML.
Term data on 2026-11-27
The item Q42 answered with no English label in any read shape (Action API with and without languages=en, REST item payload, and the REST /labels/en route answering resource-not-found), while wbsearchentities still matched it on the English label and the English description answered normally. The client's label() helpers return None in that case; they never fall back silently.
REST API paths
The Wikibase REST API on Wikidata lives at https://www.wikidata.org/w/rest.php/wikibase/v1/. The bare https://wikidata.org/... spelling 301-redirects to www, and /items/Q42 answers rest-no-match; the real entity routes are /entities/items/{id}, /entities/properties/{id}, and /statements/{statement_id}. The read routes are the entity GETs, the per-language labels, descriptions, aliases (plus *_with_language_fallback), sitelinks (plus per-site), statements (plus per-statement), property-data-types, and search/items and search/properties.
The _fields query parameter that the OpenAPI document lists for the entity GET is rejected by the live API with invalid-query-parameter (HTTP 400). The client therefore always fetches full payloads.
The labels_with_language_fallback and descriptions_with_language_fallback routes answer HTTP 307 when another language serves the term (a request for simple redirected to the fallback chain). The term methods follow redirects.
The REST statement payload differs from the Action API claim: property arrives as a {id, data_type} object in entity payloads and as a string in the per-statement route, and value content is absent for somevalue and novalue snaks. The models accept both shapes. Lexemes live under a separate prefix (/w/rest.php/wikibaselexeme/v0), where client.lexemes.get() reads one lexeme. wbgetentities reads lexemes by id too.
SPARQL query service
GETandPOSTboth answerformat=jsonwith the SPARQL 1.1 JSON result (head.vars,results.bindings, typed terms withuri/literal,xml:lang, anddatatype).- Without an
Acceptheader, the default answer is a SPARQL-result XML document. A non-JSONformatquery parameter is ignored; other representations (csv,tsv,turtle) are selected throughAccept(verified 2026-11-27). - A malformed query answers with HTTP 400 and a plain-text Java stack trace starting with
SPARQL-QUERY: queryStr=..., not a JSON error envelope. - Under load the service answers HTTP 429 with a Wikimedia error page instead of its usual error shapes; the framework maps that to
RateLimitErrorand honorsRetry-After. The live smoke set observed 429s on 2026-11-27 after several consecutive runs. - The service requires a descriptive
User-Agentwith contact information and asks readers to run one query at a time; thesparqlrate class defaults to one query every 2 seconds.
Rate defaults and sources
- Action API and REST: the guides at
Wikidata:Data_accessandWikidata:Data_access/Large_volumeask readers to make requests in series with a delay, roughly one request every 500 milliseconds. Default:max_requests_per_second=2.0,max_concurrency=1. - SPARQL:
Wikidata:SPARQL_query_serviceasks readers to run one query at a time and cancels overlong queries. Default:rate_limits={"sparql": 0.5}(one query every 2 seconds) under the shared concurrency bound. - All three services ask for a descriptive
User-Agentwith contact information;effective_user_agent()builds it fromuser_agentor the package metadata, andmailtois appended when set.