wikiapi

command module
v0.0.0-...-d7ea5a4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 8, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

README

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"
}

Documentation

Overview

Package Wikipedia descriptions API

Wikipedia descriptions API

Schemes: http BasePath: / Version: 1.0.0

Produces: - application/json swagger:meta

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL