Observed since 20 Oct, 21:37 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
9gag.js
[]() [](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.
| Package / target | Requirement | Relationship |
|---|---|---|
node-fetchEnvironment{
"local_name": "node-fetch",
"alias": false,
"peer_metadata": null
} | ^2.5.0 | runtime |
Source distribution
{
"integrity": "sha512-7VquNf8qmVEW/U3+rk16MCx6rEviiYWdOdOdhv7EdC0bI+hFjpRbmVEv64Zo3b+nCIMw+XafrJlZ72CBhlIAng==",
"shasum": "976cca71c0ec80eedfd54f33fdbfd91f87bd6259",
"tarball": "https://registry.npmjs.org/9gag.js/-/9gag.js-0.0.3.tgz",
"fileCount": 6,
"unpackedSize": 6669,
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc1jWPCRA9TVsSAnZWagAAVMUP/j/mxMjk8OIfqNF5ukOP\n4JlAOzsH2SjfiCfHuMBmV1j3zUnEhAl9Ds3J34fiCVeYy7xq0z2MQswM0yaI\nM/X3kYRHd8k+BYvfydAe390XyZGes+9yuOC8ntVVYyeMc4nXhAZ5ydizum/3\nscT4bO3zpgXKodrc28ILiE7z4MF+pedTCmIAzmQZNfy2/Cao6EE1gyVsN4Q1\nR4YF9VbCFUveJ4Atmkd2rhlOp4jT6BNL9qw05z4u/DEEwXgyoDPrGHZHcKaG\nTygfnIckqgbytk1+K7m3h2gBs/gl7CHGNuX3F4fYr3O1dtHGeNb+0qrF0qSm\n3oX8P2+tp2DHzglCYqS6h/i3tdisq7Cz1VSmeq4zQNEY86C26GCzxp2c0JkW\n4BB3gzPSmtJlu/nTzKrXTk64/POv89Zb8d9B/2IrHZXjZDl91e0yYSS9OG7N\nVhNZJ24fjLreorexgDI6cGLL6SqjMXR0qWwBM7I6NLmV+m6fmzhahlc4iYSE\nQhNt8RVK5SSWDdyvANqv8KsF1791lWnMAOstznW5LiYINFvQOz9icQA+4WTr\nWjo/H8hfN8/gF9TfsWbCXxksJG17XeqZ9jIJblpG0Wg5KGyha4Tk+Ki3srdD\nkA/0yGdsQuE9KxevGpTybknYqJ0hHxj3UKlonLm5XpPcGbsY1Rq5ggLQ6DU+\nEP/r\r\n=2iaf\r\n-----END PGP SIGNATURE-----\r\n",
"signatures": [
{
"keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
"sig": "MEUCIFHhILo2ABvgWOH6SKQpbxEI22Wr7f3luOgoIMdRINaDAiEAt/cqNUnRzw1gEV80e3yUKvsBgQUypNKM6HRbX7i9IWY="
}
]
}Observed since 20 Oct, 21:37 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:f559e7668febdff49c641d9c19b221194eb40df654bd82719a8873d5250cadfe