PHPackages                             wikibase/javascript-api - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. wikibase/javascript-api

ActiveLibrary[API Development](/categories/api)

wikibase/javascript-api
=======================

DEPRECATED: JavaScript client for the Wikibase Repository web API

3.2.0(6y ago)252.9k↓100%[5 PRs](https://github.com/wikimedia/wikibase-javascript-api/pulls)GPL-2.0+JavaScript

Since Nov 26Pushed 9mo ago16 watchersCompare

[ Source](https://github.com/wikimedia/wikibase-javascript-api)[ Packagist](https://packagist.org/packages/wikibase/javascript-api)[ RSS](/packages/wikibase-javascript-api/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (9)DependenciesVersions (30)Used By (0)

Wikibase JavaScript API
=======================

[](#wikibase-javascript-api)

JavaScript client for the Wikibase Repository web API.

Release notes
-------------

[](#release-notes)

### 4.0.0 (dev)

[](#400-dev)

- These method have been removed from RepoApi.js
    - searchEntities
    - createClaim
    - getClaims
    - setClaimValue
    - setReference
    - removeReferences

### 3.2.0 (2020-05-13)

[](#320-2020-05-13)

- Various improvements to error handling, now requests the `plaintext``errorformat` from the API and explicitly passes a language to use.

### 3.1.1 (2019-04-26)

[](#311-2019-04-26)

- Fix getLocationAgnosticMwApi to use browser location not wgServer to fix bugs on mobile requests.

### 3.1.0 (2018-11-13)

[](#310-2018-11-13)

- Made public method: `wikibase.api.RepoApi.post()`.

### 3.0.2 (2018-11-08)

[](#302-2018-11-08)

- Fixed `wikibase.api.RepoApi` to check whether the user is still logged in before making any POST requests.

### 3.0.1 (2017-11-01)

[](#301-2017-11-01)

- Fixed `wikibase.api.RepoApi.getEntities` to return all properties of the entity by default.

### 3.0.0 (2017-10-13)

[](#300-2017-10-13)

- Fixed certain `wikibase.api.RepoApi` methods failing when passing in empty strings.
- Made the library a pure JavaScript library.
- Removed MediaWiki extension credits registration.
- Removed MediaWiki ResourceLoader module definitions.
- Removed `WIKIBASE_JAVASCRIPT_API_VERSION` constant.
- Raised DataValues JavaScript library version requirement to 0.10.0.

### 2.2.2 (2017-07-10)

[](#222-2017-07-10)

- Fixed inconsistencies in `wikibase.api.RepoApi` introduced in 2.2.1.

### 2.2.1 (2017-07-07)

[](#221-2017-07-07)

- Fixed certain `wikibase.api.RepoApi` methods (most notably `parseValue` and `setAliases`) not properly accepting values that contain pipe characters.
- ECMAScript 5 is now required. This most notably excludes Internet Explorer 8.

### 2.2.0 (2016-10-31)

[](#220-2016-10-31)

- Forward error message parameters in `wikibase.api.RepoApiError`.

### 2.1.1 (2016-08-04)

[](#211-2016-08-04)

- Follow up fix to HTML escaping in `wikibase.api.RepoApiError`.

### 2.1.0 (2016-08-03)

[](#210-2016-08-03)

- Fixed HTML escaping in `wikibase.api.RepoApiError`.
- Fixed forwarding of error messages in `wikibase.api.FormatValueCaller` and `ParseValueCaller`.
- Removed unused `wikibase-error-ui-client-error` message.

### 2.0.0 (2016-05-31)

[](#200-2016-05-31)

- Removed meaningless, unsupported `sort` and `dir` parameters from:
    - `wikibase.api.RepoApi.getEntities`
    - `wikibase.api.RepoApi.getEntitiesByPage`. This only breaks callers using the `normalize` parameter.
- Replaced deprecated "edit" token with "csrf".

### 1.1.1 (2016-05-30)

[](#111-2016-05-30)

- Fix getLocationAgnosticMwApi behavior in Internet Explorer

### 1.1.0 (2016-02-17)

[](#110-2016-02-17)

- Added optional propertyId parameter to RepoApi::formatValue
- Added optional propertyId parameter to FormatValueCaller::formatValue

### 1.0.5 (2016-01-27)

[](#105-2016-01-27)

- Added compatibility with DataValues JavaScript 0.8.0.
- Removed compatibility for Internet Explorer 8 by removing the json polyfill.

### 1.0.4 (2015-09-30)

[](#104-2015-09-30)

- Use mw.ForeignApi for remote API endpoints (T50389)
- Pass `uselang` parameter to `wbsearchentities` api call

### 1.0.3 (2015-05-21)

[](#103-2015-05-21)

- Made installable with DataValues JavaScript 0.7.0.

### 1.0.2 (2015-05-20)

[](#102-2015-05-20)

#### Enhancements

[](#enhancements)

- Updated code documentation to be able to generate documentation using JSDuck.
- `wikibase.api.RepoApi` QUnit tests have been rewritten to not execute actual API requests anymore.
- Added `wikibase.api.RepoApi` QUnit tests for functions not yet tested.
- Added type checks to `wikibase.api.RepoApi` functions to actually reflect parameter documentation in the code instead of relying on the back-end handling.

### Bugfixes

[](#bugfixes)

- An empty `Entity` may be created by omitting the `data` parameter on `wikibase.api.RepoApi.createEntity()` again.
- `wikibase.api.RepoApi` functions explicitly submit default parameters if not set otherwise.

### 1.0.1 (2014-11-28)

[](#101-2014-11-28)

- Bump the data-values/javascript dependency to 0.6.0 so that it matches Wikibase.git's. No changes needed.

### 1.0.0 (2014-11-26)

[](#100-2014-11-26)

Initial release.

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance40

Moderate activity, may be stable

Popularity25

Limited adoption so far

Community28

Small or concentrated contributor base

Maturity74

Established project with proven stability

 Bus Factor3

3 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~117 days

Recently: every ~259 days

Total

18

Last Release

2196d ago

Major Versions

1.1.x-dev → 2.0.02016-05-31

2.2.2 → 3.0.22018-11-08

### Community

Maintainers

![](https://www.gravatar.com/avatar/451bd4039d530fed8f9c3da91bfa519233a397d2182cdfdcad700f6cfea19b7f?d=identicon)[Jeroen De Dauw](/maintainers/Jeroen%20De%20Dauw)

![](https://www.gravatar.com/avatar/054adb441e7ee248ec924bc45fa793835c284710eb31627587fa5de21bab9e96?d=identicon)[wmde](/maintainers/wmde)

![](https://www.gravatar.com/avatar/5406ed1d40d50ffc61d67e9f5149914dbfe0b8a52bdf297299f5ccfab0a73d91?d=identicon)[thiemowmde](/maintainers/thiemowmde)

![](https://www.gravatar.com/avatar/fe4220e5a109212ea1a84969fbcb0795ceaf975145c1f0577bd758d0500e6428?d=identicon)[manicki](/maintainers/manicki)

![](https://www.gravatar.com/avatar/99b03312aa8fcf47db8cbde452192aa5b96c27d1b99c4c1fb22af92ae1dbb0fb?d=identicon)[filbertkm](/maintainers/filbertkm)

![](https://www.gravatar.com/avatar/d6bcf38f15ab0b990ee4f042aa93bfa76e920123b41cc9c62515d5689f6af790?d=identicon)[tobijat](/maintainers/tobijat)

![](https://www.gravatar.com/avatar/fa639dd19c064dd289ce8ad58b0608ef0d8af07d2ca9371d36581068fc0306d0?d=identicon)[lucaswerkmeister](/maintainers/lucaswerkmeister)

![](https://www.gravatar.com/avatar/6bb9749872139793a2d44e16da37ff6840352ffa175b3f9aca230314c95f88c7?d=identicon)[tarrow\_WMDE](/maintainers/tarrow_WMDE)

---

Top Contributors

[![thiemowmde](https://avatars.githubusercontent.com/u/6576639?v=4)](https://github.com/thiemowmde "thiemowmde (28 commits)")[![adrianheine](https://avatars.githubusercontent.com/u/139208?v=4)](https://github.com/adrianheine "adrianheine (27 commits)")[![manicki](https://avatars.githubusercontent.com/u/3524114?v=4)](https://github.com/manicki "manicki (15 commits)")[![edg2s](https://avatars.githubusercontent.com/u/180672?v=4)](https://github.com/edg2s "edg2s (8 commits)")[![mariushoch](https://avatars.githubusercontent.com/u/2446964?v=4)](https://github.com/mariushoch "mariushoch (6 commits)")[![addshore](https://avatars.githubusercontent.com/u/3308769?v=4)](https://github.com/addshore "addshore (6 commits)")[![Ladsgroup](https://avatars.githubusercontent.com/u/5351225?v=4)](https://github.com/Ladsgroup "Ladsgroup (4 commits)")[![tarrow](https://avatars.githubusercontent.com/u/7353563?v=4)](https://github.com/tarrow "tarrow (4 commits)")[![jdforrester](https://avatars.githubusercontent.com/u/881572?v=4)](https://github.com/jdforrester "jdforrester (3 commits)")[![legoktm](https://avatars.githubusercontent.com/u/81392?v=4)](https://github.com/legoktm "legoktm (3 commits)")[![lucaswerkmeister](https://avatars.githubusercontent.com/u/2346599?v=4)](https://github.com/lucaswerkmeister "lucaswerkmeister (3 commits)")[![hashar](https://avatars.githubusercontent.com/u/281689?v=4)](https://github.com/hashar "hashar (3 commits)")[![Silvan-WMDE](https://avatars.githubusercontent.com/u/59574251?v=4)](https://github.com/Silvan-WMDE "Silvan-WMDE (3 commits)")[![itamargiv](https://avatars.githubusercontent.com/u/6132917?v=4)](https://github.com/itamargiv "itamargiv (2 commits)")[![JeroenDeDauw](https://avatars.githubusercontent.com/u/146040?v=4)](https://github.com/JeroenDeDauw "JeroenDeDauw (2 commits)")[![DannyS712](https://avatars.githubusercontent.com/u/46829944?v=4)](https://github.com/DannyS712 "DannyS712 (2 commits)")[![matthiasmullie](https://avatars.githubusercontent.com/u/312776?v=4)](https://github.com/matthiasmullie "matthiasmullie (2 commits)")[![umherirrender](https://avatars.githubusercontent.com/u/1174884?v=4)](https://github.com/umherirrender "umherirrender (2 commits)")[![JanZerebecki](https://avatars.githubusercontent.com/u/7452727?v=4)](https://github.com/JanZerebecki "JanZerebecki (1 commits)")[![outdooracorn](https://avatars.githubusercontent.com/u/43674967?v=4)](https://github.com/outdooracorn "outdooracorn (1 commits)")

### Embed Badge

![Health badge](/badges/wikibase-javascript-api/health.svg)

```
[![Health](https://phpackages.com/badges/wikibase-javascript-api/health.svg)](https://phpackages.com/packages/wikibase-javascript-api)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[facebook/php-business-sdk

PHP SDK for Facebook Business

90821.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

74513.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

265103.1M454](/packages/google-gax)[google/common-protos

Google API Common Protos for PHP

173103.7M50](/packages/google-common-protos)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
