Skip to the content
EnrichedNowDocs

    Type to search every page.

    Menu

    Scraper APITumblr

    tumblr.posts

    The latest posts of a public Tumblr blog: text, images, videos, links, tags, notes, likes and reblogs.

    Id
    tumblr.posts
    Version
    1
    Billed per
    request — 1 unit for a charged run
    Runs
    within one request

    Start it with POST /v1/scrapers/tumblr.posts/runs. How runs work is in Running a scraper; what a run costs is in Usage and units.

    Inputs

    The fields of input. A field that is not listed here is refused.

    Inputs of tumblr.posts
    FieldTypeDescription
    blogrequiredstringThe blog's name (nasa) or its address (https://www.tumblr.com/nasa, https://nasa.tumblr.com/).Limit: at most 200 characters.

    Record fields

    Every record of a run has these fields. A value that is not known is null — never an empty string and never 0.

    Record fields of tumblr.posts
    FieldTypeNotes
    positionintegerThe post's place on the page, from 1.
    post_idstringTumblr's id of the post.
    urlstringThe post's address on its blog.
    blogstringThe blog's name, e.g. nasa.
    blog_titlestring or nullThe blog's title, e.g. NASA.
    published_atstring (date-time) or nullWhen the post was published, in UTC.
    titlestring or nullThe post's first heading, when it starts with one.
    summarystring or nullTumblr's short summary of the post.
    textstring or nullThe text of the post's own blocks, a paragraph a line.
    imagesarray of stringThe post's own images, largest size.
    videosarray of stringThe post's own videos or their pages, e.g. a YouTube address.
    linksarray of stringThe addresses the post's text links to.
    tagsarray of stringThe post's tags, without #.
    note_countinteger or nullNotes: likes, reblogs and replies together.
    like_countinteger or nullLikes.
    reblog_countinteger or nullReblogs.
    reply_countinteger or nullReplies.
    is_reblogbooleanTrue when the post reblogs another post.
    reblogged_fromstring or nullFor a reblog, the blog name of the first post in its trail.
    trail_textstring or nullFor a reblog, the text of the posts it reblogs, each beginning <blog>:.
    fetched_atstring (date-time)When the page was read, in UTC.

    Example request

    # Start a run and wait up to 60 seconds for it to finish
    curl -X POST "https://api.enrichednow.com/v1/scrapers/tumblr.posts/runs?wait=60" \
      -H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{"input":{"blog":"nasa"}}'
    
    # Read its records, with the id the first call answered
    curl "https://api.enrichednow.com/v1/runs/$RUN_ID/records?limit=100" \
      -H "Authorization: Bearer $ENRICHEDNOW_API_KEY"
    from enrichednow import EnrichedNow
    
    client = EnrichedNow()  # reads ENRICHEDNOW_API_KEY
    
    # Start a run, wait for it to end, and get its records
    result = client.scrape("tumblr.posts", {"blog": "nasa"})
    print(result.run.id, result.run.status, result.run.record_count)
    
    # Read its records: pages are fetched as you go
    for record in result.records:
        print(record)

    Install it with pip install enrichednow, then save as run.py and run python3 run.py

    import EnrichedNow from "enrichednow";
    
    const client = new EnrichedNow(); // reads ENRICHEDNOW_API_KEY
    
    // Start a run, wait for it to end, and get its records
    const { run, records } = await client.scrape("tumblr.posts", { blog: "nasa" });
    console.log(run.id, run.status, run.record_count);
    
    // Read its records: pages are fetched as you go
    for await (const record of records) console.log(record);

    Install it with npm install enrichednow, then save as run.mjs and run node run.mjs

    package main
    
    import (
    	"context"
    	"fmt"
    	"log"
    	"time"
    
    	enrichednow "github.com/enrichednow/enrichednow-go"
    )
    
    func main() {
    	client, err := enrichednow.NewClient() // reads ENRICHEDNOW_API_KEY
    	if err != nil {
    		log.Fatal(err)
    	}
    	ctx, cancel := context.WithTimeout(context.Background(), 10*time.Minute)
    	defer cancel()
    
    	// Start a run, wait for it to end, and get its records
    	run, records, err := client.Scrape(ctx, "tumblr.posts", map[string]any{"blog": "nasa"})
    	if err != nil {
    		log.Fatal(err)
    	}
    	fmt.Println(run.ID, run.Status, run.RecordCount)
    
    	// Read its records: pages are fetched as you go
    	for records.Next() {
    		fmt.Println(string(records.Current()))
    	}
    	if err := records.Err(); err != nil {
    		log.Fatal(err)
    	}
    }

    Install it with go get github.com/enrichednow/enrichednow-go@latest, then save as run.go and run go run run.go

    import com.enrichednow.EnrichedNowClient;
    import com.enrichednow.ScrapeResult;
    import java.util.Map;
    
    public class Run {
        public static void main(String[] args) {
            EnrichedNowClient client = EnrichedNowClient.fromEnv(); // reads ENRICHEDNOW_API_KEY
    
            // Start a run, wait for it to end, and get its records
            ScrapeResult result = client.scrape("tumblr.posts", Map.of("blog", "nasa"));
            System.out.println(result.run().id() + " " + result.run().status() + " " + result.run().recordCount());
    
            // Read its records: pages are fetched as you go
            for (Map<String, Object> record : result.records()) {
                System.out.println(record);
            }
        }
    }

    Add com.enrichednow:enrichednow-java:0.4.0 to your Maven or Gradle build, then save as Run.java

    enrichednow run tumblr.posts --input blog=nasa

    Install it with curl -fsSL https://raw.githubusercontent.com/enrichednow/enrichednow-cli/main/install.sh | sh

    It starts a run with this scraper’s example input, waits for it to finish and reads its records a page at a time. The key is read from ENRICHEDNOW_API_KEY.

    The body on its own:

    JSON
    {
      "input": {
        "blog": "nasa"
      }
    }

    Example response

    The run, once it has ended. A run that has not ended within wait comes back with 202 and the status queued or running.

    JSON
    {
      "id": "run_841742f37553189ff9c27ba1",
      "scraper_id": "tumblr.posts",
      "scraper_version": 1,
      "status": "ok",
      "reason": null,
      "input": {
        "blog": "nasa"
      },
      "record_count": 1,
      "units": 1,
      "units_per_request": 1,
      "units_per_record": null,
      "units_per_page": null,
      "diagnostics": {
        "requests": 1,
        "bytes": 259214,
        "wall_ms": 885,
        "facts": {}
      },
      "created_at": "2026-11-16T22:37:50.170950Z",
      "started_at": "2026-11-16T22:37:50.178331Z",
      "finished_at": "2026-11-16T22:37:51.066313Z"
    }

    Its records, from GET /v1/runs/{id}/records. The record is a real one: this scraper's own parser read it from a page recorded from the site.

    JSON
    {
      "records": [
        {
          "position": 1,
          "post_id": "832921041785536512",
          "url": "https://nasa.tumblr.com/post/832921041785536512/shine-bright-for-voyager-1s-light-day",
          "blog": "nasa",
          "blog_title": "NASA",
          "published_at": "2026-11-10T18:30:05Z",
          "title": "Shine Bright for Voyager 1's Light-Day",
          "summary": "Shine Bright for Voyager 1's Light-Day",
          "text": "Shine Bright for Voyager 1's Light-Day\nOn Sept. 5, 1977, our Voyager 1 spacecraft lifted off on its journey into space.\nVoyager 1 carried the essence of Earth with it on the Golden Record, a disk including nature sounds, greetings in 55 … [truncated]",
          "images": [
            "https://64.media.tumblr.com/690ad8b3bf8329da79360c08453b3a5d/94fb857672df169a-d4/s2048x3072/361f34399d89f5e0bdab9285bab529e4035ac7c0.jpg"
          ],
          "videos": [],
          "links": [
            "https://science.nasa.gov/mission/voyager/voyager-1/",
            "https://science.nasa.gov/mission/voyager/voyager-golden-record-overview/",
            "https://science.nasa.gov/mission/voyager/voyager-1/shine-bright-for-voyagers-light-day/"
          ],
          "tags": [
            "NASA",
            "Voyager 1",
            "light-day"
          ],
          "note_count": 11132,
          "like_count": 6595,
          "reblog_count": 4504,
          "reply_count": 33,
          "is_reblog": false,
          "reblogged_from": null,
          "trail_text": null,
          "fetched_at": "2026-11-19T20:24:29.905402Z"
        }
      ],
      "next_cursor": null
    }

    What was done to the record for this page, and nothing else — the API returns every value whole. A text that was cut ends with … [truncated].

    • Shortened: text: 812 characters, the first 236 shown.
    • Shortened: links: 4 items, the first 3 shown.
    • Shortened: tags: 5 items, the first 3 shown.

    A run does not always end ok. Results and statuses lists every status and the reasons every scraper shares; the reasons of the Tumblr scrapers are in their own section there.