# wikipics-api

> A simple API to obtain Wikipedia Picture of the Day!

Latest version **1.0.2** (published 2017-07-31) · MIT license · 0 weekly downloads

## Install

```sh
npm install wikipics-api
pnpm add wikipics-api
yarn add wikipics-api
bun add wikipics-api
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2017-07-31 |
| First published | 2017-07-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4 |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Rishi Giri |
| Maintainers | rishi |
| Keywords | wikipedia, image, day, wiki, scrap, extract, data, link, fetch |

## Links

- npm: https://www.npmjs.com/package/wikipics-api
- Repository: https://github.com/CodeDotJS/wikipics-api
- Homepage: https://github.com/CodeDotJS/wikipics-api#readme
- Issues: https://github.com/CodeDotJS/wikipics-api/issues
- npm.io page: https://npm.io/package/wikipics-api

## Dependencies (2)

- [got](https://npm.io/package/got.md) *
- [cheerio](https://npm.io/package/cheerio.md) *

## Alternatives

- [@tsparticles/shape-image](https://npm.io/package/@tsparticles/shape-image.md) — 303.7K weekly downloads
- [@tsparticles/shape-line](https://npm.io/package/@tsparticles/shape-line.md) — 233.7K weekly downloads
- [stringify-attributes](https://npm.io/package/stringify-attributes.md) — 58.6K weekly downloads
- [mobile-drag-drop](https://npm.io/package/mobile-drag-drop.md) — 46.3K weekly downloads
- [@comunica/actor-rdf-parse-html](https://npm.io/package/@comunica/actor-rdf-parse-html.md) — 29.2K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2017-07-31
- 1.0.0 — 2017-07-29

## README

# wikipics-api [![Build Status](https://travis-ci.org/CodeDotJS/wikipics-api.svg?branch=master)](https://travis-ci.org/CodeDotJS/wikipics-api)

> A simple API to obtain Wikipedia Picture of the Day

## Install

```
$ npm install --save wikipics-api
```

## Usage

```js
'use strict'

const wikipics = require('wikipics-api');

wikipics().then(data => {
  console.log(data);
  /*
  {
    image: 'https://upload.wikimedia.org/.../20px-Padlock-pink.svg.png',
    name: '20px-Padlock-pink.svg.png',
    data: 'Centaurea jacea\nPhotograph: Uoaei1\nArchive – More featured pictures...'
  }
  */
});

wikipics('2014-10-10').then(data => {
  console.log(data);
  /*
  {
    image: 'https://upload.wikimedia.....450px-Soursop%2C_Annona_muricata.jpg',
    name: '450px-Soursop%2C_Annona_muricata.jpg',
    data: 'The soursop is the fruit of ...with sour citrus flavour...'
  }
  */
});
```

## API

#### `wikipics()`

- `Return promise for current picture of the day`

#### `wikipics('date')`

- `Returns promise for picture of the day of specific date`

`date`

`TYPE` `:` `string`

`FORMAT` `:` `yyyy-mm-dd`


## Related

- __[`wikipics`](https://github.com/CodeDotJS/wikipics)__ : `Download Wikipedia Picture of the Day and more!`

## License

MIT &copy; [Rishi Giri](http://rishigiri.ml)

---
_Source: https://npm.io/package/wikipics-api · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
