Observed since 20 Oct, 21:37 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
[]() [](https://npmjs.org/package/9gag.js) [](https://github.com/ShaunLWM/9
The simplest 9Gag API you've ever met.
node install 9gag.js
yarn add 9gag.js
Look in example.js for more information
const NineGag = require("9gag.js")
(async () => {
// Fetch the first page of the hot section
let hot = await NineGag.getType({ type: "hot" });
console.log(hot["posts"]);
})();
getType({ type = "hot", cursor = "", simplified = false })
Returns { posts: [...], cursor: "..." }
type can be "hot", "trending" or "fresh", cursor value is found in the cursor value of the returned results. simplified = true returns only necessary values.getComments({ id = "", orderKey = "", simplified = false })
Returns [...]
id is the post unique id. orderKey allows pagination where the value can be found in the orderKey of each comment result. simplified = true returns only necessary values.MIT - Shaun (2019)
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.0.3-alpha1Registry latest | 17 May 2019 | 1 | |
| 0.0.3 | 11 May 2019 | 1 | |
| 0.0.2 | 11 May 2019 | 1 | |
| 0.0.1 | 10 May 2019 | 1 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 21:37 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:ef1a3000388a01b8324ef0667005e6a75d1c7e8032d09489a454c3e5128946c6