{"id":18221674,"url":"https://github.com/johnnythetank/aping-plugin-wikipedia","last_synced_at":"2026-04-30T09:38:05.808Z","repository":{"id":57182155,"uuid":"61480404","full_name":"JohnnyTheTank/apiNG-plugin-wikipedia","owner":"JohnnyTheTank","description":"Wikipedia Plugin for apiNG","archived":false,"fork":false,"pushed_at":"2017-09-13T13:58:57.000Z","size":16,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-07T23:42:11.353Z","etag":null,"topics":["angular","api","aping","aping-plugin","social-wall","wiki","wikimedia","wikipedia","wikipedia-api"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JohnnyTheTank.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-06-19T13:00:25.000Z","updated_at":"2016-10-26T12:01:12.000Z","dependencies_parsed_at":"2022-09-08T11:51:14.453Z","dependency_job_id":null,"html_url":"https://github.com/JohnnyTheTank/apiNG-plugin-wikipedia","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JohnnyTheTank%2FapiNG-plugin-wikipedia","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JohnnyTheTank%2FapiNG-plugin-wikipedia/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JohnnyTheTank%2FapiNG-plugin-wikipedia/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JohnnyTheTank%2FapiNG-plugin-wikipedia/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JohnnyTheTank","download_url":"https://codeload.github.com/JohnnyTheTank/apiNG-plugin-wikipedia/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247749973,"owners_count":20989712,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["angular","api","aping","aping-plugin","social-wall","wiki","wikimedia","wikipedia","wikipedia-api"],"created_at":"2024-11-03T22:03:49.842Z","updated_at":"2026-04-30T09:38:05.770Z","avatar_url":"https://github.com/JohnnyTheTank.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[logo]: http://aping.io/logo/320/aping-plugin.png \"apiNG Plugin\"\n![apiNG][logo]\n\n[![Join the chat at https://gitter.im/JohnnyTheTank/apiNG](https://img.shields.io/badge/GITTER-join%20chat-green.svg)](https://gitter.im/JohnnyTheTank/apiNG?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n[![npm version](https://badge.fury.io/js/aping-plugin-wikipedia.svg)](https://badge.fury.io/js/aping-plugin-wikipedia)\n[![Bower version](https://badge.fury.io/bo/apiNG-plugin-wikipedia.svg)](https://badge.fury.io/bo/apiNG-plugin-wikipedia)\n\n**_apiNG-plugin-wikipedia_** is a [wikipedia API](https://www.mediawiki.org/wiki/API:Main_page/en) plugin for [**apiNG**](https://github.com/JohnnyTheTank/apiNG).\n\n# Information\n* **Supported apiNG models: `social`**\n* This plugin supports the [`get-native-data` parameter](https://aping.readme.io/docs/advanced#parameters)\n* Used promise library: [angular-wikipedia-api-factory](https://github.com/JohnnyTheTank/angular-wikipedia-api-factory) _(included in distribution files)_\n\n# Documentation\n1. [INSTALLATION](#1-installation)\n    1. Get file\n    2. Include file\n    3. Add dependency\n    4. Add plugin\n2. [USAGE](#2-usage)\n    1. Models\n    2. Requests\n\n## 1. INSTALLATION\n\n### I. Get file\nInstall via either [bower](http://bower.io/), [npm](https://www.npmjs.com/), CDN (jsDelivr) or downloaded files:\n\n* `bower install apiNG-plugin-wikipedia --save`\n* `npm install aping-plugin-wikipedia --save`\n* use [CDN file](https://www.jsdelivr.com/projects/aping.plugin-wikipedia)\n* download [apiNG-plugin-wikipedia.zip](https://github.com/JohnnyTheTank/apiNG-plugin-wikipedia/zipball/master)\n\n### II. Include file\nInclude `aping-plugin-wikipedia.min.js` in your apiNG application\n\n```html\n\u003c!-- when using bower --\u003e\n\u003cscript src=\"bower_components/apiNG-plugin-wikipedia/dist/aping-plugin-wikipedia.min.js\"\u003e\u003c/script\u003e\n\n\u003c!-- when using npm --\u003e\n\u003cscript src=\"node_modules/aping-plugin-wikipedia/dist/aping-plugin-wikipedia.min.js\"\u003e\u003c/script\u003e\n\n\u003c!-- when using cdn file --\u003e\n\u003cscript src=\"//cdn.jsdelivr.net/npm/aping-plugin-wikipedia@latest/dist/aping-plugin-wikipedia.min.js\"\u003e\u003c/script\u003e\n\n\u003c!-- when using downloaded files --\u003e\n\u003cscript src=\"aping-plugin-wikipedia.min.js\"\u003e\u003c/script\u003e\n```\n\n\n### III. Add dependency\nAdd the module `jtt_aping_wikipedia` as a dependency to your app module:\n```js\nangular.module('app', ['jtt_aping', 'jtt_aping_wikipedia']);\n```\n\n### IV. Add the plugin\nAdd the plugin's directive `aping-wikipedia=\"[]\"` to your apiNG directive and [configure your requests](#ii-requests)\n```html\n\u003caping\n    template-url=\"templates/social.html\"\n    model=\"social\"\n    items=\"20\"\n    aping-wikipedia=\"[{'search':'germany'}]\"\u003e\n\u003c/aping\u003e\n```\n\n## 2. USAGE\n\n### I. Models\nSupported apiNG models\n\n|  model   | content | support | max items\u003cbr\u003eper request | (native) default items\u003cbr\u003eper request |\n|----------|---------|---------|--------|---------|\n| `social` | **articles** | full    | `500`   | `10`   |\n\n**support:**\n* full: _the source platform provides a full list with usable results_ \u003cbr\u003e\n* partly: _the source platfrom provides just partly usable results_\n\n\n### II. Requests\nEvery **apiNG plugin** expects an array of **requests** as html attribute.\n\n#### Get Article by Name\n|  parameter  | sample | default | description | optional |\n|----------|---------|---------|---------|---------|\n| **`title`** | `Association football` |  | Existing wikipedia page | no |\n| **`language`**  | `de` | `en` | Shorthandle of existing wikipedia project |  yes  |\n\nSample requests:\n* `[{'title':'International System of Units'}, {'title':'Metrication in the United States'}]`\n* `[{'title':'Metrologie', 'language':'de'}]`\n\n#### Search Articles\n|  parameter  | sample | default | description | optional |\n|----------|---------|---------|---------|---------|\n| **`search`** | `soccer` |  | Text to search | no |\n| **`textSearch`**  | `true` | `false` | Search in title and content |  yes  |\n| **`items`**  | `25` | `10` | Items per request (`0`-`500`) |  yes  |\n| **`language`**  | `de` | `en` | Shorthandle of existing wikipedia project |  yes  |\n\n\nSample requests:\n* `[{'search':'fc bayern'}, {'search':'read madrid'}]`\n* `[{'search':'ozean', 'textSearch':'true', 'items':20, 'language':'de' }]`\n\n# Licence\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnnythetank%2Faping-plugin-wikipedia","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohnnythetank%2Faping-plugin-wikipedia","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnnythetank%2Faping-plugin-wikipedia/lists"}