9GAG Media Downloader avatar

9GAG Media Downloader

Pricing

Pay per usage

Go to Apify Store
9GAG Media Downloader

9GAG Media Downloader

Extract and download high-quality images and videos from 9GAG posts. Supports hot, trending, fresh feeds and search. Provides detailed metadata including upvotes, comments, tags, and media URLs.

Pricing

Pay per usage

Rating

0.0

(0)

Developer

codingfrontend

codingfrontend

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

5 days ago

Last modified

Share

Extract posts, images, and videos from 9GAG with comprehensive metadata. Perfect for content creators, researchers, trend analysts, and social media managers.

Features

  • πŸ”₯ Scrape Hot, Trending, Fresh feeds or Search results
  • 🏷️ Filter by 9GAG tags (anime, funny, gaming, etc.)
  • πŸ“Έ Extracts high-quality image URLs (image700 and original resolution)
  • 🎬 Extracts video URLs including HD versions
  • πŸ“Š Collects engagement metrics: upvotes, downvotes, comments
  • ♾️ Infinite scroll support β€” automatically loads more content
  • πŸ”— Supports custom start URLs for specific posts or sections

Data Extracted

FieldDescription
postIdUnique 9GAG post ID
urlDirect link to the post
titlePost title
mediaTypephoto or video
imageUrlHigh-quality image URL (700px wide)
thumbnailUrlThumbnail / cover image URL
videoUrlSD video MP4 URL
videoHdUrlHD video MP4 URL
imageWidth / imageHeightImage dimensions in pixels
videoDurationVideo duration in seconds
hasAudioWhether video has audio
upvotesNumber of upvotes
downvotesNumber of downvotes
commentsCountNumber of comments
tagsArray of post tags
sectionWhich feed the post came from
isNsfwWhether post is marked NSFW
createdTsPost creation Unix timestamp

Input Parameters

ParameterTypeDefaultDescription
sectionstring"hot"Feed: hot, trending, fresh, or search
querystring-Search query (required when section = search)
tagsarray[]Filter by tag names
startUrlsarray[]Custom start URLs (overrides section/query)
maxItemsinteger50Max posts to extract (1–1000)
proxyConfigurationobject-Proxy settings

Example Inputs

Scrape Hot Feed

{
"section": "hot",
"maxItems": 100
}

Search for Posts

{
"section": "search",
"query": "funny cats",
"maxItems": 50
}

Scrape by Tag

{
"tags": ["anime", "gaming"],
"maxItems": 200
}

Dataset Views

  1. Posts Overview β€” Post IDs, titles, media types, engagement metrics
  2. Media Download Links β€” All image/video URLs for batch downloading
  3. Top Posts by Upvotes β€” Sorted by popularity for trend analysis

How It Works

  1. Opens 9GAG in a real Chrome browser with fingerprint injection to avoid detection
  2. Handles cookie consent β€” dismisses SourcePoint GDPR popup if present
  3. Calls 9GAG's internal API directly using fetch() within the browser context, inheriting the session cookies
  4. Paginates using 9GAG's nextCursor field which provides exact pagination tokens
  5. Normalizes all post data into a consistent schema

The scraper does not rely on DOM scraping β€” it uses 9GAG's undocumented REST API (/v1/group-posts), which returns structured JSON with full image/video URLs. This makes it fast, reliable, and independent of HTML changes.

Anti-Bot Notes

9GAG uses SourcePoint for GDPR cookie consent management. The scraper automatically handles this by trying to accept the consent popup before making API calls. No Cloudflare protection is present on 9GAG β€” the real Chrome browser with fingerprinting is sufficient.

Limitations

  • maxItems per run is bounded by 9GAG's API rate limits
  • NSFW content requires an authenticated 9GAG account (login) β€” not supported
  • Video HD URLs (videoHdUrl) may not be available for all videos depending on the original upload quality