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-rUmwB0/nnh3+Z7ArwhP7QeGRjWdVuQ6Xv6QowoiScJZRTnumqtlptDUZ3MtCCra3g6OS1RvQhhX6FeS2cIWb4w==",
"shasum": "3814b0372a23f78818a47d4ec579505b32d42b19",
"tarball": "https://registry.npmjs.org/9gag.js/-/9gag.js-0.0.3-alpha1.tgz",
"fileCount": 6,
"unpackedSize": 6765,
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc3k8KCRA9TVsSAnZWagAAKtcP/1QhXfKfh8x2nG/B1js+\nnXpEU0dgneK9NZTsM2l1uLwVxz+tl7FlHQXC0sLf5fM9LgbAIVElUh9V38sp\nSdorcBostlOQ5THs5kn3ZLUIuzuRUf+cfWywb66PuzsisOfbg4MsDO4kLRq3\niPgg2Xw8sDGamGB8g/3pWTNoButjdhX1C9fTw93sDBrLpLDKZYs2+rf5jyFs\ncF7Hf5BN+b8kKhlTrmLiRWBGVXYIW3VShsnAba73T5xViU00eZYY/R+uZHj2\n5uWAgMKdlOAHrz8+4t1nAj0/hTPluxHl6O2L0mo1Q6iJ70OQAZPMnNOu24KR\nBRYkvgPuNCoY+DKaxjcaLI8YFMJ+omJldZLks/kGHsLTGfGJaM+tiqk/UgwU\n4o+Snu1+gM2Huke4YWdiWNs7bkP6kbMTnbRUAw9f3+uByHG6SKTLcSc8cGxf\najIbnbBuzjk3tt5WX0umKHBhh1c5BgROSx4EgY3KEuAsRImULlwfKUmX1R7+\n/Og9L/ly2D8Z5S+LesMjo30ah76a90p2aa7sQQoQlJ64zPrMVKi2qcd4h6F5\nqgYwVRmAe9aXK5gXKU8SuwbgLi8BG1thuJTMfayZsiIDDMV7P3p+7luxP+4/\nNJX7+YnhpNaIx1c4JrDIMeamWp2n2cdT+JcZoLcSpNNJQMfD6fXAjArM7LXz\nYYeE\r\n=p94b\r\n-----END PGP SIGNATURE-----\r\n",
"signatures": [
{
"keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
"sig": "MEUCIBSWHEjIcG940bYEOo9mzyaGFGH4Y6gEXtwcyT408Y1LAiEAxW5s1amj+NtGFgKTAH5rQhOy7jsi5un+TDz3L5Pw024="
}
]
}Observed since 20 Oct, 21:37 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:028283f3876487c2a0b6cbf4a1231dfdb8eed782b97564209ec8c7e114771389