JSONpedia

FREEMIUM
By michelemostarda
Updated 4 months ago
-/10
Popularity Score
-
Latency
-
Success Rate

JSONpedia API Documentation

JSONpedia API is designed to simplify access at MediaWiki contents transforming everything into JSON. Such API provides a REST service to parse, convert, and enrich WikiText documents. JSONpedia supplies capabilities for recursive template expansion and mapping to DBpedia. This framework has been designed to extract linguistic resources from the Wikipedia and to enable massive data scraping. Our mission is to deliver a general purpose infrastructure for Wikipedia multi language data consumption both for researchers and industry.

View API Details
GETannotate
GETannotate

Annotate endpoint

Authorization:

Mashape header authentication

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
entitySTRING
REQUIREDSpecify entity as combination <lang>:<wikipage>, examples: en:London, en:Albert_Einstein
Code Snippet
unirest.get("https://michelemostarda-JSONpedia-v1.p.rapidapi.com/annotate/resource/json/en%3AAlbert_Einstein?&procs=extractors,splitters,structure")
.header("X-RapidAPI-Host", "michelemostarda-JSONpedia-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://michelemostarda-JSONpedia-v1.p.rapidapi.com/annotate/resource/json/{entity}?&procs=extractors,splitters,structure
Request Method: GET
Response Headers
Response Body

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.get("https://michelemostarda-JSONpedia-v1.p.rapidapi.com/annotate/resource/json/en%3AAlbert_Einstein?&procs=extractors,splitters,structure")
.header("X-RapidAPI-Host", "michelemostarda-JSONpedia-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication