# 9GAG Scraper: Posts, Comments, Profiles & Tags (`scrapingmonkey/9gag-scraper`) Actor

Search 9GAG posts, collect profile and tag feeds, and extract post details, comments and included replies. Get captions, media links, author profiles, dates and votes for meme research and content monitoring.

- **URL**: https://apify.com/scrapingmonkey/9gag-scraper.md
- **Developed by:** [ScrapingMonkey](https://apify.com/scrapingmonkey) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 Scraper** collects meme posts, tag feeds, creator profiles and audience comments in one place. Search a topic or follow selected accounts to export post text, media links and available engagement, helping your team understand meme formats, audience reactions and the creators behind popular posts.

Follow relevant meme topics, compare post engagement and read audience reactions alongside their source posts. Turn scattered posts and comments into an organized reference for social campaigns and content planning.

| At a glance | Details |
|---|---|
| 📥 Input | Search fields or links to the selected items; see the examples below |
| 📤 Output | One row per post, comment or profile, depending on the mode |
| 📄 Pagination | Automatic up to `maxResults` for each input, when more results are available |
| 🔐 Login required | No |
| ⚡ Processing | Multiple inputs per run with automatic retries for temporary errors |
| 💾 Delivery | One complete Apify dataset table; CSV, JSON and Excel export |

### What the 9GAG scraper collects 📱

Search 9GAG posts, collect profile and tag feeds, and extract post details, comments and included replies. Get captions, media links, author profiles, dates and votes for meme research and content monitoring.

| Collection | What you receive |
|---|---|
| 9GAG post search scraper | Search public posts by keywords and export titles, authors where available, media links and engagement counts. |
| 9GAG post comments scraper | Collect public comment pages and replies included in those responses, with authors, timestamps and votes. |
| 9GAG post details scraper | Extract a public post card with its author, text, media links, tags and engagement counts. |
| 9GAG profile posts scraper | Collect the public posts published by a selected profile, with media and public engagement counts. |
| 9GAG user profiles scraper | Extract a public profile card with its identity, biography, avatar and registration details. |
| 9GAG tag posts scraper | Collect public posts from a selected tag with media previews and public engagement counts. |

Data can include:

- Posts: Post IDs, titles, text and original post links.
- Media: Available image, video and preview links.
- Creators: Public usernames, biographies, avatars and profile information.
- Engagement: Available post and comment vote counts.
- Comments: Comment text, author information, dates and included replies.
- Topics: Tags and the search or profile associated with each result.

### How to scrape 9GAG 🚀

1. Choose **Post Search** in **What to collect**, or select another collection mode.
2. Fill in the search fields, or paste links to the items you want to collect.
3. Set the maximum results and any optional filters.
4. Start the Actor and review the collected rows.
5. Export the dataset or connect it to your application.

#### 9GAG post search scraper — input example

```json
{
  "mode": "post_search",
  "searchQueries": [
    "cats"
  ],
  "maxResults": 10
}
```

`maxResults: 10` means up to 10 results for **each input**. It does not guarantee that the website has that many matches. You can set the limit as low as 1.

#### 9GAG post comments scraper — input example

```json
{
  "mode": "post_comments",
  "postUrls": [
    "https://9gag.com/gag/a7ojLKr"
  ],
  "maxResults": 10
}
```

#### 9GAG post details scraper — input example

```json
{
  "mode": "post_details",
  "postUrls": [
    "https://9gag.com/gag/a7ojLKr"
  ],
  "maxResults": 10
}
```

#### 9GAG profile posts scraper — input example

```json
{
  "mode": "profile_posts",
  "profileUrls": [
    "https://9gag.com/u/thefloorislava_"
  ],
  "maxResults": 10
}
```

#### 9GAG user profiles scraper — input example

```json
{
  "mode": "profile_details",
  "profileUrls": [
    "https://9gag.com/u/thefloorislava_"
  ],
  "maxResults": 10
}
```

#### 9GAG tag posts scraper — input example

```json
{
  "mode": "tag_posts",
  "tagUrls": [
    "https://9gag.com/tag/cat"
  ],
  "maxResults": 10
}
```

### 9GAG data fields and complete output 📦

| Field group | Included data |
|---|---|
| Posts | Post IDs, titles, text and original post links. |
| Media | Available image, video and preview links. |
| Creators | Public usernames, biographies, avatars and profile information. |
| Engagement | Available post and comment vote counts. |
| Comments | Comment text, author information, dates and included replies. |
| Topics | Tags and the search or profile associated with each result. |

Each collected item is a separate row. `input` identifies the submitted value and `result_type` identifies the selected mode. All returned fields appear in one table; columns that do not apply to a mode can be empty.

A complete JSON result is shown for every collection mode below, in the same order as the input examples. Each example includes every field for its mode; text and lists are not shortened. Values are representative and can change.

#### 9GAG post search scraper — complete JSON result

```json
{
  "result_type": "post_search",
  "input": "cats",
  "status": "success",
  "url": "http://9gag.com/gag/aD2BgMG",
  "type": "Animated",
  "created_at": "2026-09-16T17:11:31+00:00",
  "username": "muffhuff3r",
  "profile_url": "https://9gag.com/u/muffhuff3r",
  "media_urls": [
    "https://img-9gag-fun.9cache.com/photo/aD2BgMG_460s.jpg",
    "https://img-9gag-fun.9cache.com/photo/aD2BgMG_460s.jpg",
    "https://img-9gag-fun.9cache.com/photo/aD2BgMG_fbthumbnail.jpg",
    "https://img-9gag-fun.9cache.com/photo/aD2BgMG_460sv.mp4"
  ],
  "post_id": "aD2BgMG",
  "title": "Orange cats",
  "description": "",
  "upvotes": 703,
  "downvotes": 74,
  "comments_count": 22,
  "account_id": "65062017",
  "nsfw": false,
  "tags": [
    "cats",
    "cat",
    "orange"
  ],
  "source_url": "",
  "is_promoted": false
}
```

#### 9GAG post comments scraper — complete JSON result

```json
{
  "result_type": "post_comments",
  "input": "a7ojLKr",
  "status": "success",
  "comment_id": "c_178913360130311804",
  "parent_id": "c_178880908500118411",
  "url": "http://9gag.com/gag/a7ojLKr#cs_comment_id=c_178913360130311804",
  "text": "",
  "media_text": "",
  "type": "userMedia",
  "created_at": "2026-09-11T13:33:21+00:00",
  "user_id": "u_13750246676786",
  "username": "neverlegend",
  "profile_url": "https://9gag.com/u/neverlegend",
  "likes": 1,
  "dislikes": 0,
  "children_count": 0,
  "children_url": null,
  "is_deleted": false,
  "is_pinned": false,
  "media_urls": [
    "https://img-comment-fun.9cache.com/media/anYZRmn/akRZrkee_700w_0.jpg",
    "https://img-comment-fun.9cache.com/media/anYZRmn/akRZrkee_700wa_0.gif",
    "https://img-comment-fun.9cache.com/media/anYZRmn/akRZrkee_700wv_0.mp4"
  ]
}
```

#### 9GAG post details scraper — complete JSON result

```json
{
  "result_type": "post_details",
  "input": "a7ojLKr",
  "status": "success",
  "url": "http://9gag.com/gag/a7ojLKr",
  "type": "Photo",
  "created_at": "2026-09-07T19:22:32+00:00",
  "username": "biggger",
  "profile_url": "https://9gag.com/u/biggger",
  "media_urls": [
    "https://img-9gag-fun.9cache.com/photo/a7ojLKr_700b.jpg",
    "https://img-9gag-fun.9cache.com/photo/a7ojLKr_460s.jpg",
    "https://img-9gag-fun.9cache.com/photo/a7ojLKr_fbthumbnail.jpg"
  ],
  "post_id": "a7ojLKr",
  "title": "Orange propaganda",
  "description": "",
  "upvotes": 1252,
  "downvotes": 51,
  "comments_count": 43,
  "account_id": "37825619",
  "nsfw": false,
  "tags": [
    "Animals",
    "meme",
    "cat",
    "orange",
    "misinformation",
    "kek"
  ],
  "source_url": "",
  "is_promoted": false
}
```

#### 9GAG profile posts scraper — complete JSON result

```json
{
  "result_type": "profile_posts",
  "input": "thefloorislava_",
  "status": "success",
  "url": "http://9gag.com/gag/a4PMbV1",
  "type": "Photo",
  "created_at": "2026-09-14T01:31:14+00:00",
  "username": "thefloorislava_",
  "profile_url": "https://9gag.com/u/thefloorislava_",
  "media_urls": [
    "https://img-9gag-fun.9cache.com/photo/a4PMbV1_700b.jpg",
    "https://img-9gag-fun.9cache.com/photo/a4PMbV1_460s.jpg",
    "https://img-9gag-fun.9cache.com/photo/a4PMbV1_fbthumbnail.jpg"
  ],
  "post_id": "a4PMbV1",
  "title": "Go for it!",
  "description": "",
  "upvotes": 1060,
  "downvotes": 72,
  "comments_count": 51,
  "account_id": "50608686",
  "nsfw": false,
  "tags": [
    "I",
    "am",
    "not",
    "ok"
  ],
  "source_url": "",
  "is_promoted": false
}
```

#### 9GAG user profiles scraper — complete JSON result

```json
{
  "result_type": "profile_details",
  "input": "thefloorislava_",
  "status": "success",
  "url": "https://9gag.com/u/thefloorislava_",
  "created_at": "2018-12-13T17:22:29+00:00",
  "user_id": "50018085",
  "username": "thefloorislava_",
  "account_id": "50608686",
  "display_name": "thefloorislava_",
  "bio": "My Funny Collection",
  "avatar_url": "https://accounts-cdn.9gag.com/media/avatar/50608686_100_28.jpg",
  "is_verified": false,
  "is_pro": true,
  "is_pro_plus": true
}
```

#### 9GAG tag posts scraper — complete JSON result

```json
{
  "result_type": "tag_posts",
  "input": "cat",
  "status": "success",
  "url": "http://9gag.com/gag/aAynywd",
  "type": "Animated",
  "created_at": "2026-09-19T15:34:05+00:00",
  "username": "noodlefromciz",
  "profile_url": "https://9gag.com/u/noodlefromciz",
  "media_urls": [
    "https://img-9gag-fun.9cache.com/photo/aAynywd_460s.jpg",
    "https://img-9gag-fun.9cache.com/photo/aAynywd_460s.jpg",
    "https://img-9gag-fun.9cache.com/photo/aAynywd_fbthumbnail.jpg",
    "https://img-9gag-fun.9cache.com/photo/aAynywd_460sv.mp4"
  ],
  "post_id": "aAynywd",
  "title": "Japanese student continue studying and listening to lofi hip hop during an earthquake, her cat cheering her up",
  "description": "",
  "upvotes": 1558,
  "downvotes": 194,
  "comments_count": 93,
  "account_id": "69022316",
  "nsfw": false,
  "tags": [
    "cat",
    "study",
    "earthquake",
    "dark humor",
    "memes"
  ],
  "source_url": "",
  "is_promoted": false
}
```

Images, tags and other lists stay with their parent result instead of creating extra rows. Invalid or unavailable inputs, inputs with no results, and requests that fail after all retries produce a row with `status: failed`. At most one failed row is saved per input; it includes `error_code` and `error_message` explaining the outcome. A normal end of pagination after collected results does not add a failed row.

### Input requirements and collection settings ⚙️

| Setting | What to enter |
|---|---|
| **What to collect** (`mode`) | Choose the information to collect. |
| **Maximum results per search or link** (`maxResults`) | Collect up to this many results for each search or link. Minimum: 1. |
| **Search keywords** (`searchQueries`) | Enter one search phrase per line. For Post Search. |
| **Post links** (`postUrls`) | Paste one link per line. Example: https://9gag.com/gag/a7ojLKr For Post Comments, Post. |
| **Profile links** (`profileUrls`) | Paste one link per line. Example: https://9gag.com/u/thefloorislava\_ For Profile Posts, Profile. |
| **Tag page links** (`tagUrls`) | Paste one link per line. Example: https://9gag.com/tag/cat For Tag Posts. |

| Collection mode | Fields to use |
|---|---|
| Post Comments | **Post links** |
| Post | **Post links** |
| Post Search | **Search keywords** |
| Profile Posts | **Profile links** |
| Profile | **Profile links** |
| Tag Posts | **Tag page links** |

The result limit applies separately to each search or supplied link. Collection ends earlier when no more matching results are available.

### 9GAG scraping use cases 🎯

#### Meme research

Compare recurring meme themes and formats before developing social content.

#### Campaign topic monitoring

Collect posts mentioning a product category or cultural event and review their context.

#### Audience feedback

Read comments and vote counts to understand how users react to selected posts.

#### Creator benchmarking

Compare the published posts and engagement of selected 9GAG profiles.

#### Tag tracking

Follow topic feeds to maintain a reference library for editorial and community teams.

### Pricing and saved-result behavior 💰

See the Actor's **Pricing** tab for the active pricing model and current rate. Store settings may change, so this README does not claim a fixed cost.

Under dataset-item pricing:

- Each collected item saved in the dataset is one result.
- Images, tags and other values attached to that item do not create additional rows.
- Automatic retry attempts do not create extra dataset rows.
- A saved `failed` row is also one billable dataset item, including invalid inputs, unavailable items, no results, or exhausted retries. At most one failed row is saved per input, including when some results were already collected.
- `maxResults` caps all saved rows for each input, including its failed row. Repeated copies of the same input are processed once. More inputs or a higher limit can produce more saved results.

### 9GAG scraper API and integrations 🔌

Replace `$ACTOR_ID` with the ID shown in the Actor API tab and `$APIFY_TOKEN` with your token.

```bash
curl -X POST "https://api.apify.com/v2/acts/$ACTOR_ID/runs?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"mode":"post_search","searchQueries":["cats"],"maxResults":10}'
```

Use schedules for recurring collection, webhooks for completion notifications, and Apify integrations for Google Sheets, Make, Zapier, cloud storage, a CRM or your own application.

### Reliability, retries, and public-data limits ⚠️

Temporary connection errors, timeouts and access restrictions are retried automatically, up to five attempts. Invalid inputs save a failed row without an HTTP request; confirmed unavailable items save a failed row without unnecessary retries. Exhausted retries also save a failed row. Results already collected remain available if a later request fails, and normal pagination completion adds no error row. Collection also stops after two consecutive fully processed pages add no new results, even if the website provides another cursor. Required detail lookups are completed before checking a page; new results reset the counter, and independent reply branches are checked separately. Failures while initializing the Actor, saving data or scheduling requests stop the run instead of being reported as a failed website result.

Profile Posts collects posts published by the profile, not its upvoted-post history.

Comment results include the replies exposed with the collected comment pages.

9GAG controls which information is publicly available. Removed, private or restricted items may be unavailable, and optional values can be null or empty. A run can still fail if the results cannot be saved.

### Frequently asked questions ❓

#### Does it require an account on 9GAG?

No. You do not need to provide an account, password or login cookies. Only publicly available information is collected.

#### How does maxResults work?

It limits the number of saved results separately for every input. The minimum is 1. With maxResults set to 10, each input returns at most 10 available results. A detail lookup normally returns one record per input.

#### Can I collect posts for a particular meme topic?

Use Post Search for keywords or Tag Posts for a supported tag.

#### Can I export a profile’s upvoted posts?

No. Profile Posts covers the profile’s own published posts.

#### Why are some fields empty?

The website may not publish that value, or the field may belong to a different collection mode. Missing values remain null or empty instead of being guessed.

#### Can I export the results to a spreadsheet?

Yes. Download CSV, Excel or JSON from the Apify dataset. All returned fields are included in the same results table.

### Support and responsible use 🛟

For a reproducible issue, share the run ID, selected mode, result limit and a safe public example through the support channel. Never disclose access tokens, passwords or proxy credentials.

Use public 9GAG information lawfully and responsibly. Follow applicable privacy, copyright, data-protection, contractual and platform requirements when storing, analyzing or redistributing results.

# Actor input Schema

## `mode` (type: `string`):

Choose the information to collect.

## `maxResults` (type: `integer`):

Collect up to this many results for each search or link. Minimum: 1.

## `searchQueries` (type: `array`):

Enter one search phrase per line. For Post Search.

## `postUrls` (type: `array`):

Paste one link per line. Example: https://9gag.com/gag/a7ojLKr For Post Comments, Post.

## `profileUrls` (type: `array`):

Paste one link per line. Example: https://9gag.com/u/thefloorislava\_ For Profile Posts, Profile.

## `tagUrls` (type: `array`):

Paste one link per line. Example: https://9gag.com/tag/cat For Tag Posts.

## Actor input object example

```json
{
  "mode": "post_search",
  "maxResults": 10,
  "searchQueries": [
    "cats"
  ]
}
```

# Actor output Schema

## `results` (type: `string`):

Collected entities and failed input outcomes, with all available fields and error explanations in one dataset.

# 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 = {
    "mode": "post_search",
    "maxResults": 10,
    "searchQueries": [
        "cats"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapingmonkey/9gag-scraper").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 = {
    "mode": "post_search",
    "maxResults": 10,
    "searchQueries": ["cats"],
}

# Run the Actor and wait for it to finish
run = client.actor("scrapingmonkey/9gag-scraper").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 '{
  "mode": "post_search",
  "maxResults": 10,
  "searchQueries": [
    "cats"
  ]
}' |
apify call scrapingmonkey/9gag-scraper --silent --output-dataset

```

## MCP server setup

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

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/DqXmnvNv7bBqc15J3/builds/lMgOyjoenrC0tfdqk/openapi.json
