🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

github.com/filbertkm/wikiapi

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/filbertkm/wikiapi

v0.0.0-20220908120313-d7ea5a402f01
Version published
Created

Wiki API

Get short descriptions for any Wikipedia page

API docs

http://localhost:9090/docs

Examples

Default lang = en

http://localhost:9090/page/Berlin

{
"title": "Berlin",
"lang": "en",
"description": "Capital and largest city of Germany",
"source": "local"
}

Get description, with fallback to Wikidata if there is no SHORTDESC in the Wikipedia page:

http://localhost:9090/page/Berlin?lang=de&fallback=true

{
"title": "Berlin",
"lang": "de",
"description": "Hauptstadt und Land der Bundesrepublik Deutschland",
"source": "central"
}

FAQs

Package last updated on 08 Sep 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts