Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

express-wikimedia-api-proxy

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-wikimedia-api-proxy

Proxy Wikimedia apis in your express app

  • 1.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

express-wikimedia-api-proxy

  • Building an express Node.js app?
  • Want to make use of Wikipedia's APIs
  • Don't want to worry about CORs requests?
  • Need something compatible with oauth for API requests which need credentials?

If yes to the above look no further. This simple module is designed to plug into your express app and give you access to Wikimedia's many APIs. That includes Wikipedia, Wiktionary, Wikivoyage and many more.

All APIs available @

  • https://en.m.wikipedia.org/wiki/Special:ApiSandbox
  • https://en.wikipedia.org/api/rest_v1/ will be available in your web app for all languages and projects.

how to use!

  const express = require('express');
  const wikiApis = require('express-wikimedia-api-proxy');
  const app = express();
  const cors = require('cors');
  const PORT = app.get( 'port' ) || 8145;

  const base = '/api/wikimedia/';

  wikiApis(app, base, true);
  app.use(cors())
  app.listen(PORT)
  console.log('The APIs are exposed at port:', PORT)
  console.log('http://localhost:' + PORT + base + 'en.wikipedia.org/api.php');
  console.log('http://localhost:' + PORT + base + 'en.wikipedia.org/rest_v1/');

FAQs

Package last updated on 15 Dec 2018

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc