
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
random-gag
Advanced tools

Random 9gag post API
var rg = require("random-gag");
(async function() {
await rg(); //or, "await rg(gag_id)" to fetch specific post
})();
Sample Output
{
"id": "a8Gg8XV",
"url": "http://9gag.com/gag/a8Gg8XV",
"status": "0",
"title": "Run!!!",
"description": "",
"type": "Animated",
"version": 0,
"nsfw": 0,
"upVoteCount": 8012,
"downVoteCount": 305,
"totalVoteCount": 8317,
"viewsCount": 0,
"score": 0,
"reportedStatus": 0,
"creationTs": 1605591553,
"albumWebUrl": "",
"hasImageTile": 0,
"postTile": {
"h800": {
"width": 640,
"height": 1136,
"images": [
{
"width": 640,
"height": 800,
"url": "https://img-9gag-fun.9cache.com/photo/a8Gg8XV_h800_offset0.jpg",
"webpUrl": "https://img-9gag-fun.9cache.com/photo/a8Gg8XV_h800wp_offset0.webp"
},
{
"width": 640,
"height": 336,
"url": "https://img-9gag-fun.9cache.com/photo/a8Gg8XV_h800_offset1.jpg",
"webpUrl": "https://img-9gag-fun.9cache.com/photo/a8Gg8XV_h800wp_offset1.webp"
}
]
}
},
"promoted": 0,
"isVoteMasked": 0,
"sortTs": 1,
"orderId": 0,
"hasLongPostCover": 0,
"images": {
"image700": {
"width": 460,
"height": 816,
"url": "https://img-9gag-fun.9cache.com/photo/a8Gg8XV_460s.jpg"
},
"image460": {
"width": 460,
"height": 816,
"url": "https://img-9gag-fun.9cache.com/photo/a8Gg8XV_460s.jpg",
"webpUrl": "https://img-9gag-fun.9cache.com/photo/a8Gg8XV_460swp.webp"
},
"imageFbThumbnail": {
"width": 220,
"height": 220,
"url": "https://img-9gag-fun.9cache.com/photo/a8Gg8XV_fbthumbnail.jpg"
},
"image700ba": {
"width": 460,
"height": 816,
"url": "https://img-9gag-fun.9cache.com/photo/a8Gg8XV_460s.jpg"
},
"image460sa": {
"width": 460,
"height": 816,
"url": "https://img-9gag-fun.9cache.com/photo/a8Gg8XV_460s.jpg"
},
"image460sv": {
"width": 460,
"height": 816,
"url": "https://img-9gag-fun.9cache.com/photo/a8Gg8XV_460sv.mp4",
"hasAudio": 1,
"duration": 14,
"vp8Url": "https://img-9gag-fun.9cache.com/photo/a8Gg8XV_460svwm.webm",
"h265Url": "https://img-9gag-fun.9cache.com/photo/a8Gg8XV_460svh265.mp4",
"vp9Url": "https://img-9gag-fun.9cache.com/photo/a8Gg8XV_460svvp9.webm"
}
},
"colors": {
"placeholder": "#515562"
},
"sourceDomain": "",
"sourceUrl": "",
"externalUrl": "",
"channel": "",
"isVoted": "0",
"userScore": 0,
"creator": {
"userId": "-1",
"userName": "",
"profileUrl": "",
"avatarUrlSmall": ""
},
"commentsCount": 237,
"fbShares": 0,
"tweetCount": 0,
"created": "",
"comment": {
"listType": "comment",
"updateTs": 1605727239,
"latestCommentText": "Deep down, we all know that he is running from a police"
},
"commentOpClientId": "",
"commentOpSignature": "",
"commentSystem": "comment-system",
"topComments": {
"comments": []
},
"targetedAdTags": {},
"postSection": {
"name": "Sport ",
"url": "https://9gag.com/sport",
"imageUrl": "https://miscmedia-9gag-fun.9cache.com/images/thumbnail-facebook/1557286774.0983_eGARyH_100x100.jpg",
"webpUrl": "https://miscmedia-9gag-fun.9cache.com/images/thumbnail-facebook/1557286774.0983_eGARyH_100x100wp.webp"
},
"tags": [
{
"key": "Grant Holloway",
"url": "https://9gag.com/tag/grant-holloway"
}
]
}
Thank you for your interest in contributing, If you feel like there's something missing or any new feature can be added, just create a PR and I will see the rest.
You can contact me on social media, Everything about me can be found here
Contact me anywhere, just visit my portfolio
This project is licensed under MIT License, See LICENSE for more information
FAQs
Random 9gag post API
The npm package random-gag receives a total of 11 weekly downloads. As such, random-gag popularity was classified as not popular.
We found that random-gag demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.