# Tumblr Posts Scraper - Any Blog, Tags & Dates (`eliai/tumblr-posts-scraper`) Actor

Scrape any public Tumblr blog: post title, id, publish date, full tag list, word count and a reblog flag, one row per post. Accepts a blog name, a tumblr.com URL or a custom domain. Bulk blogs, no API key. $0.002 per post.

- **URL**: https://apify.com/eliai/tumblr-posts-scraper.md
- **Developed by:** [Broke to Built](https://apify.com/eliai) (community)
- **Categories:** Social media, News, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.60 / 1,000 scraped posts

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

## Tumblr Posts Scraper — Any Blog, Tags & Dates

Scrape any **public Tumblr blog** and get **one row per post**: title, post id, publish date, the
full tag list, a word count and whether the post is a **reblog** or original.

No API key, no OAuth. **$0.002 per post** — a blog with no reachable feed is recorded and
**not charged**.

### Input

```json
{ "blog": "staff", "maxPosts": 20 }
```

Bulk, mixing address shapes:

```json
{ "blogs": ["staff", "https://changes.tumblr.com", "myblog.com"], "maxPosts": 20 }
```

| Field | Type | Notes |
|---|---|---|
| `blog` | string | A blog name (`staff`), `@name`, a tumblr.com URL, or a custom domain. |
| `blogs` | string\[] | Up to 20 blogs per run. |
| `maxPosts` | integer | 1–50. A Tumblr feed carries roughly the 20 most recent. **Charged per post.** |
| `includeBodyText` | boolean | Adds the post body as plain text. Default false. |

### Output

```json
{
  "ok": true,
  "blog": "staff",
  "blogTitle": "Tumblr Staff",
  "postId": "822057428507049984",
  "title": "In case you're looking for a blog that's gone missing on Tumblr",
  "url": "https://staff.tumblr.com/post/822057428507049984",
  "publishedAt": "2026-07-13T20:37:36.000Z",
  "tags": ["tumblr"],
  "tagCount": 1,
  "wordCount": 214,
  "isReblog": true
}
```

### What it gets right

- ⭐ **Tumblr double-encodes its titles, and this decodes them properly.** A curly apostrophe
  arrives as `&amp;rsquo;` — decode once and you get the literal text `&rsquo;` sitting in the
  title. Since most Tumblr titles contain punctuation, a single-pass decoder leaves visible
  gibberish across nearly every row. This decodes until the text stops changing (bounded), and
  the spec fails on **both** raw and half-decoded entities.
- **`isReblog` tells you what is original.** It is the first question anyone mining Tumblr asks,
  and the only signal in the feed is the class Tumblr puts on the quoted-blog link.
- **Every tag, not just the first.** Tumblr emits one `<category>` element per tag; `tags` is the
  full list and `tagCount` is asserted to match it.
- **`postId` is extracted** from the permalink, so rows join cleanly against other Tumblr data.
- **Names, URLs and custom domains all work**, and `feedUrl` reports which address was used.

### Pricing

**$0.002 per post returned.** A blog that does not exist, is private, or is flagged produces an
`ok: false` record and **is not charged**.

### Limits

- A Tumblr RSS feed carries roughly the **20 most recent posts**. There is no public archive
  endpoint, so `maxPosts` above ~20 simply returns what exists.
- **Public blogs only.** Private, password-protected and flagged blogs have no public feed.
- Returns post metadata and, optionally, body text. Not notes, reblog chains or asks.
- Photo and video posts often have no title; `wordCount` and `tags` still describe them.

### FAQ

**Do I need a Tumblr API key?** No.

**Can I get the whole archive?** No — the feed only exposes recent posts.

**Why do some posts have an empty title?** Photo, quote and link posts frequently have none on
Tumblr. The body and tags are still returned.

### Changelog

- **0.1 (2026-09-10)** — first release. Double-encoding handled, full tag lists, reblog detection,
  post ids, name/URL/custom-domain input.

# Actor input Schema

## `blog` (type: `string`):

A Tumblr blog name (staff), an @name, a full tumblr.com URL, or a custom domain.

## `blogs` (type: `array`):

Several blogs in one run. Up to 20.

## `maxPosts` (type: `integer`):

A Tumblr RSS feed carries roughly the 20 most recent posts. You are charged per post returned.

## `includeBodyText` (type: `boolean`):

Adds the post body as plain text with HTML stripped. Verbose.

## Actor input object example

```json
{
  "blog": "staff",
  "blogs": [],
  "maxPosts": 20,
  "includeBodyText": false
}
```

# Actor output Schema

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

Every item this run produced, as JSON.

## `resultsCsv` (type: `string`):

The same items as a spreadsheet-ready CSV.

# 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 = {
    "blog": "staff",
    "blogs": []
};

// Run the Actor and wait for it to finish
const run = await client.actor("eliai/tumblr-posts-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 = {
    "blog": "staff",
    "blogs": [],
}

# Run the Actor and wait for it to finish
run = client.actor("eliai/tumblr-posts-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 '{
  "blog": "staff",
  "blogs": []
}' |
apify call eliai/tumblr-posts-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,eliai/tumblr-posts-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/NcnNeWV6MquNvxWqX/builds/ufy9388KNokoPfZZB/openapi.json
