# 🍋 Lemon8 Post Scraper (`ethereal_wool/lemon8-post-scraper`) Actor

Extract Lemon8 post data — title, author, url, and more. Scrape by keyword, URL or ID. Export to JSON, CSV & Excel, use the API, schedule runs and integrate. No code required.

- **URL**: https://apify.com/ethereal\_wool/lemon8-post-scraper.md
- **Developed by:** [Jackie Chen](https://apify.com/ethereal_wool) (community)
- **Categories:** Social media, Marketing
- **Stats:** 6 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$10.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.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Lemon8 Post Search Scraper

![lemon8-post-scraper](https://api.apify.com/v2/key-value-stores/48FFrfZnw5XqzUC1C/records/lemon8-post-scraper__hero)

Search **Lemon8** posts by **keyword**, or enrich specific posts **by id**. Returns clean,
structured data for each post: title, content, image gallery URLs, like / comment / favorite /
share / view counts, author info, publish time, and the share URL. Lemon8 is image-first, so
every post carries its full gallery.

> **Unofficial.** This Actor is not affiliated with, authorized, or endorsed by Lemon8 or
> ByteDance. It is an independent tool that retrieves publicly available data via a third-party
> API. Use it in compliance with Lemon8's terms and all applicable laws; you are responsible for
> how you use the retrieved data.

### What it does

- **Keyword search** — give one or more keywords; the Actor paginates Lemon8 search results for
  each keyword across the chosen search tab (main / video / image).
- **Post detail (optional)** — give one or more Lemon8 post item IDs to fetch full post detail.

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `searchKeywords` | string\[] | `["skincare"]` | Keywords to search. Each is paginated independently. |
| `postIds` | string\[] | `[]` | Lemon8 post item IDs to fetch full detail for. |
| `maxItems` | integer | `50` | Max total posts across all keywords and post IDs. |
| `searchTab` | enum | `main` | `main` (all) / `video` / `image`. |

#### Example input

```json
{
  "searchKeywords": ["skincare", "coffee recipe"],
  "maxItems": 100,
  "searchTab": "main"
}
```

### Output

One dataset item per post:

```json
{
  "id": "7637419676858860062",
  "itemId": "7637419676858860062",
  "groupId": "7637419676858860062",
  "mediaId": "7362528645875991594",
  "title": "🚨 BIG skincare news is coming next week… 👀",
  "content": "Big news — #SkincareInsider ...",
  "url": "https://www.lemon8-app.com/@lemon8.beauty/7637419676858860062?user_id=...",
  "shareUrl": "https://www.lemon8-app.com/@lemon8.beauty/7637419676858860062?user_id=...",
  "publishTime": 1778227497,
  "diggCount": 43,
  "likeCount": 43,
  "commentCount": 12,
  "favoriteCount": 6,
  "shareCount": 3,
  "viewCount": 0,
  "readCount": 12500,
  "coverUrl": "https://.../",
  "imageUrls": ["https://.../", "https://.../"],
  "imageCount": 7,
  "author": {
    "authorId": "7262344915936658478",
    "name": "Lemon8 Beauty",
    "uniqueName": "lemon8.beauty",
    "description": "Lemon8 official beauty account",
    "avatarUrl": "https://.../",
    "profileUrl": "..."
  },
  "source": "search:skincare"
}
```

### Notes

- Data is sourced live; Lemon8 occasionally rate-limits, so the Actor retries transient blocks
  with exponential backoff.
- Post IDs are de-duplicated within a run.

# Actor input Schema

## `searchKeywords` (type: `array`):

Keywords to search Lemon8 posts for. Each keyword is searched and paginated independently. English keywords (e.g. skincare, food, travel) return the most results.

## `postIds` (type: `array`):

Lemon8 post item IDs (the numeric id from a post share URL, e.g. 7637419676858860062) to fetch full post detail for.

## `maxItems` (type: `integer`):

Maximum total number of posts to scrape across all keywords and post IDs.

## `searchTab` (type: `string`):

Which Lemon8 search tab to query.

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

Optional. Route the upstream API calls through an Apify Proxy to vary the source IP. Usually not needed.

## Actor input object example

```json
{
  "searchKeywords": [
    "skincare"
  ],
  "postIds": [],
  "maxItems": 50,
  "searchTab": "main",
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# 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 = {
    "searchKeywords": [
        "skincare"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("ethereal_wool/lemon8-post-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 = { "searchKeywords": ["skincare"] }

# Run the Actor and wait for it to finish
run = client.actor("ethereal_wool/lemon8-post-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 '{
  "searchKeywords": [
    "skincare"
  ]
}' |
apify call ethereal_wool/lemon8-post-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,ethereal_wool/lemon8-post-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/2A6eaO40iVeD7IUTc/builds/WfUFo052cFsxgmaMQ/openapi.json
