Skip to main content
Skip table of contents

Wikipedia REST API

This is a very basic example as Wikipedia does not require authentification. It displays the content of the Wikipedia article with the given name for seamless knowledge integration into your Jira.

Datasource

Datasource type

REST Custom

Datasource URL

CODE
https://en.wikipedia.org/w/api.php

Datasource Test URL

CODE
?action=parse&page=Vancouver&format=json

Query

Query URL

CODE
?action=parse&page=:Title&format=json

Query JSON path

CODE
$.parse.text['*']

Converter

CODE
function convert(json) {
    var parsedJsonObject = JSON.parse(json);
    return [{ "wikipediaContent": parsedJsonObject }];
}

Template

CODE
<link rel="stylesheet" href="https://en.wikipedia.org/w/load.php?debug=false&lang=en&modules=site.styles&only=styles&skin=vector">
 
$result.get(0).wikipediaContent

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.