# 9GAG Media Downloader 📥 (`easyapi/9gag-media-downloader`) Actor

A powerful Actor that extracts and downloads high-quality images and videos from 9GAG posts. Perfect for content creators, social media managers, and researchers who need to collect media assets from 9GAG efficiently. Supports batch processing and provides detailed metadata.

- **URL**: https://apify.com/easyapi/9gag-media-downloader.md
- **Developed by:** [EasyApi](https://apify.com/easyapi) (community)
- **Categories:** Social media, Videos, Integrations
- **Stats:** 15 total users, 1 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.99 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## 9GAG Media Downloader 📥

Easily download media content (images and videos) from 9GAG posts. This Actor helps you extract and download high-quality media files from any 9GAG post URL.

### Features 🌟

- Extract high-quality images and videos from 9GAG posts
- Support for both single posts and batch processing
- Automatic quality selection (HD when available)
- Detailed metadata extraction (title, source, etc.)
- Fast and reliable processing
- Rate-limit friendly

### Input 📝

The Actor accepts the following input parameters:

- `links` (Required): Array of 9GAG post URLs to process
  - Example: `["https://9gag.com/gag/a1mM17G"]`

### Output 📊

The Actor outputs JSON files containing:

- Original post URL
- Post title
- Media URLs (direct download links)
- Media type (image/video)
- Quality information
- Additional metadata

### Use Cases 💡

- Content curation and archiving
- Social media management
- Data analysis and research
- Media asset collection
- Content backup

### Limitations ⚠️

- Only processes public 9GAG posts
- Respects 9GAG's rate limits
- Some content might be region-restricted

### Tips 💪

- Use batch processing for multiple URLs
- Ensure URLs are valid 9GAG post links
- Allow sufficient run time for video processing

#### Input Example

A full explanation of an input example in JSON.

```json
{
    "links": [
        "https://9gag.com/gag/a1mM17G"
    ]
}
```

#### Output sample

The results will be wrapped into a dataset which you can always find in the **Storage** tab. Here's an excerpt from the data you'd get if you apply the input parameters above:

And here is the same data but in JSON. You can choose in which format to download your data: JSON, JSONL, Excel spreadsheet, HTML table, CSV, or XML.

```json
[
`    {
        "url": "https://9gag.com/gag/a1mM17G",
        "result": {
            "url": "https://9gag.com/gag/a1mM17G",
            "source": "ninegag",
            "title": "<3",
            "thumbnail": "http://images-cdn.9gag.com/photo/a1mM17G_ogimage.jpg",
            "medias": [
                {
                    "url": "http://images-cdn.9gag.com/photo/a1mM17G_ogimage.jpg",
                    "quality": "HD",
                    "extension": "jpg",
                    "type": "image"
                }
            ],
            "type": "single",
            "error": false,
            "time_end": 137
        }
    }`
]
```

### Related Actors

- 🎥 [TikTok Video Downloader](https://apify.com/easyapi/tiktok-video-downloader) - Download TikTok videos without watermarks in high quality
- 🎥 [YouTube Video and MP3 Downloader](https://apify.com/easyapi/youtube-video-and-mp3-downloader) - Download high-quality videos and audio from YouTube
- 📥 [All-in-One Media Downloader](https://apify.com/easyapi/all-in-one-media-downloader) - Download videos, images, or audio from multiple platforms
- 🎥 [Facebook Video Download](https://apify.com/easyapi/facebook-video-download) - Download Facebook videos in HD quality up to 4K resolution
- 🎥 [Twitter/X Video Downloader](https://apify.com/easyapi/twitter-x-video-downloader) - Download high-quality videos from Twitter/X
- 🎥 [Instagram Videos Downloader](https://apify.com/easyapi/instagram-videos-downloader) - Download videos from Instagram posts, reels, and stories
- 🎥 [Reddit Media Downloader](https://apify.com/easyapi/reddit-media-downloader) - Download high-quality videos, GIFs, and images from Reddit posts
- 📥 [Telegram Media Downloader](https://apify.com/easyapi/telegram-media-downloader) - Extract videos, photos, and media content from Telegram posts
- 🎥 [DailyMotion Video Downloader](https://apify.com/easyapi/dailymotion-video-downloader) - Extract and download videos from DailyMotion
- 🎥 [Vimeo Video Downloader](https://apify.com/easyapi/vimeo-video-downloader) - Download Vimeo videos in multiple quality options
- 🎥 [Streamable Video Downloader](https://apify.com/easyapi/streamable-video-downloader) - Extract and download videos from Streamable.com
- 📸 [Pinterest Image Downloader](https://apify.com/easyapi/pinterest-image-downloader) - Download high-quality images from Pinterest
- 🎥 [Snapchat Video Downloader](https://apify.com/easyapi/snapchat-video-downloader) - Download videos from Snapchat stories and posts
- 🎥 [Rumble Video Downloader](https://apify.com/easyapi/rumble-video-downloader) - Extract and download videos from Rumble.com
- 🎥 [ESPN Video Downloader](https://apify.com/easyapi/espn-video-downloader) - Extract and download ESPN videos with ease
- 🎥 [CapCut Video Downloader](https://apify.com/easyapi/capcut-video-downloader) - Download CapCut videos in multiple quality options
- 📥 [Tumblr Media Downloader](https://apify.com/easyapi/tumblr-media-downloader) - Extract and download high-quality images and videos from Tumblr posts

# Actor input Schema

## `links` (type: `array`):

Array of 9GAG post URLs to process

## `proxyConfiguration` (type: `object`):

Optionally, use Apify Proxy or custom HTTP proxy to avoid IP address-based blocking.

## Actor input object example

```json
{
  "links": [
    "https://9gag.com/gag/a1mM17G"
  ],
  "proxyConfiguration": {
    "useApifyProxy": false,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("easyapi/9gag-media-downloader").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("easyapi/9gag-media-downloader").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call easyapi/9gag-media-downloader --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,easyapi/9gag-media-downloader"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/dh4ocZCC8Uo8ARzLn/builds/bWStC04YzuAKOoUgb/openapi.json
