2018-09-30 23:01:58 +01:00
---
id: bd7158d8c442eddfaeb5bd19
title: Build a Wikipedia Viewer
challengeType: 3
2019-08-05 09:17:33 -07:00
forumTopicId: 302360
2021-01-13 03:31:00 +01:00
dashedName: build-a-wikipedia-viewer
2018-09-30 23:01:58 +01:00
---
2020-11-27 19:02:05 +01:00
# --description--
2018-09-30 23:01:58 +01:00
2020-11-27 19:02:05 +01:00
**Objective:** Build a [CodePen.io ](https://codepen.io ) app that is functionally similar to this: < https: // codepen . io / freeCodeCamp / full / wGqEga /> .
2018-09-30 23:01:58 +01:00
2020-11-27 19:02:05 +01:00
Fulfill the below [user stories ](https://en.wikipedia.org/wiki/User_story ). Use whichever libraries or APIs you need. Give it your own personal style.
2018-09-30 23:01:58 +01:00
2020-11-27 19:02:05 +01:00
**User Story:** I can search Wikipedia entries in a search box and see the resulting Wikipedia entries.
2018-09-30 23:01:58 +01:00
2020-11-27 19:02:05 +01:00
**User Story:** I can click a button to see a random Wikipedia entry.
2018-09-30 23:01:58 +01:00
2020-11-27 19:02:05 +01:00
Hint #1: Here's a URL you can use to get a random Wikipedia article: `https://en.wikipedia.org/wiki/Special:Random` .
Hint #2: Here's an entry on using Wikipedia's API: `https://www.mediawiki.org/wiki/API:Main_page` .
Hint #3: Use this [link ](https://en.wikipedia.org/wiki/Special:ApiSandbox#action=query&titles=Main%20Page&prop=revisions&rvprop=content&format=jsonfm ) to experiment with Wikipedia's API.
2018-09-30 23:01:58 +01:00
2020-11-27 19:02:05 +01:00
When you are finished, include a link to your project on CodePen and click the "I've completed this challenge" button.
You can get feedback on your project by sharing it on the [freeCodeCamp forum ](https://forum.freecodecamp.org/c/project-feedback/409 ).
2018-09-30 23:01:58 +01:00
2020-11-27 19:02:05 +01:00
# --solutions--
2018-09-30 23:01:58 +01:00
```js
// solution required
```