此端点可以帮助您
响应以所选 API 格式提供现成的博客摘要,包含关键计数和指标。
何时使用
将“按博客标识符获取帖子指标”用于需要简明指标快照的仪表板、评分和定期报告。
先查看结果和常见工作流,然后再了解参数和可运行的请求示例。
响应以所选 API 格式提供现成的博客摘要,包含关键计数和指标。
将“按博客标识符获取帖子指标”用于需要简明指标快照的仪表板、评分和定期报告。
无需加载和处理整个集合即可展示 Tumblr 的核心指标。
定期保存快照,并比较指标随时间的变化。
将汇总指标作为内部排名和规则的输入。
两个版本完成相同的任务,接受相同的参数。使用切换按钮比较响应结构,并选择您的客户端所需的版本。
在本页面切换版本,即可在同一文档 URL 下比较响应结构。
V1 和 V2 的身份验证、必填参数和请求结构均相同。实际上,您只需在构建端点路径和解析响应时选择版本。
主要区别在于响应结构。新集成请使用 V2;仅在需要兼容现有客户端契约时保留 V1。
两个版本使用相同的 API 密钥请求头和相同的查询参数。本文档先展示共享的参数集合,然后展示各版本特定的端点路径和代码片段。
| 参数 | 必填 | 类型 | 示例 | 说明 |
|---|---|---|---|---|
blog_identifier |
是 | str |
staff |
Tumblr blog username or host without protocol or path. Pass `staff` or `staff.tumblr.com`, not a full URL. Example: staff. |
post_type |
否 | all | regular | photo | quote | link | conversation | audio | video | answer |
all |
Optional Tumblr post type filter. Use `all` for the default mixed timeline. Examples: all, photo. |
tag |
否 | str | None |
tumblr staff |
Optional Tumblr tag filter. Spaces are allowed, slashes and URL fragments are not. Example: tumblr staff. |
复制确切的端点路径、示例 URL 和代码片段时请选择版本。上方的参数列表保持不变。
GET /api/v2/tumblr.com/blog/post-metrics-by-blog-identifiercurl --request GET \
--url "https://www.scrapestorm.net/api/v2/tumblr.com/blog/post-metrics-by-blog-identifier" \
--header "X-API-Key: 00000000-0000-4000-8000-000000000000" \
--get --data-urlencode 'blog_identifier=staff' \
# Optional parameters:
# --data-urlencode 'post_type=all'
# --data-urlencode 'tag=tumblr staff'
from urllib.parse import urljoin
import requests
BASE_URL = "https://www.scrapestorm.net"
ENDPOINT = "/api/v2/tumblr.com/blog/post-metrics-by-blog-identifier"
HEADERS = {"Accept": "application/json", "X-API-Key": "00000000-0000-4000-8000-000000000000"}
params = {
"blog_identifier": "staff",
}
# Optional parameters
# params["post_type"] = "all"
# params["tag"] = "tumblr staff"
with requests.Session() as session:
response = session.request(
method="GET",
url=urljoin(BASE_URL, ENDPOINT),
headers=HEADERS,
params=params,
timeout=30,
)
response.raise_for_status()
payload = response.json()
print(payload)
const BASE_URL = "https://www.scrapestorm.net";
const endpoint = "/api/v2/tumblr.com/blog/post-metrics-by-blog-identifier";
const params = new URLSearchParams({
blog_identifier: "staff",
});
// Optional parameters
// params.set("post_type", "all");
// params.set("tag", "tumblr staff");
const response = await fetch(`${BASE_URL}${endpoint}?${params.toString()}`, {
method: "GET",
headers: {
Accept: "application/json",
"X-API-Key": "00000000-0000-4000-8000-000000000000",
},
});
if (!response.ok) {
throw new Error(`Request failed: ${response.status} ${response.statusText}`);
}
const payload = await response.json();
console.log(payload);
import axios from "axios";
const client = axios.create({
baseURL: "https://www.scrapestorm.net",
timeout: 30000,
headers: {
Accept: "application/json",
"X-API-Key": "00000000-0000-4000-8000-000000000000",
},
});
const params = {
blog_identifier: "staff",
};
// Optional parameters
// params.post_type = "all";
// params.tag = "tumblr staff";
const { data: payload } = await client.request({
method: "GET",
url: endpoint,
params,
});
console.log(payload);
<?php
declare(strict_types=1);
use GuzzleHttp\Client;
use GuzzleHttp\Exception\GuzzleException;
$client = new Client([
'base_uri' => "https://www.scrapestorm.net",
'timeout' => 30.0,
'headers' => [
'Accept' => 'application/json',
'X-API-Key' => "00000000-0000-4000-8000-000000000000",
],
]);
$query = [
"blog_identifier" => "staff",
];
// Optional parameters
// $query["post_type"] = "all";
// $query["tag"] = "tumblr staff";
try {
$response = $client->request("GET", "/api/v2/tumblr.com/blog/post-metrics-by-blog-identifier", [
'query' => $query,
]);
$payload = json_decode(
(string) $response->getBody(),
true,
512,
JSON_THROW_ON_ERROR
);
var_dump($payload);
} catch (GuzzleException $e) {
throw $e;
}
package main
import (
"encoding/json"
"fmt"
"net/http"
"net/url"
"time"
)
func main() {
baseURL := "https://www.scrapestorm.net"
endpoint := "/api/v2/tumblr.com/blog/post-metrics-by-blog-identifier"
params := url.Values{}
params.Set("blog_identifier", "staff")
// Optional parameters
// params.Set("tag", "tumblr staff")
req, err := http.NewRequest(
"GET",
fmt.Sprintf("%s%s?%s", baseURL, endpoint, params.Encode()),
nil,
)
if err != nil {
panic(err)
}
req.Header.Set("Accept", "application/json")
req.Header.Set("X-API-Key", "00000000-0000-4000-8000-000000000000")
client := &http.Client{Timeout: 30 * time.Second}
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
var payload any
if err := json.NewDecoder(resp.Body).Decode(&payload); err != nil {
panic(err)
}
fmt.Printf("%+v\n", payload)
}
预览保留了关键字段和集合中的前几项,便于您快速浏览响应结构。切换版本会改变 JSON 格式。
此简明 JSON 示例来自 V2 最近一次成功的验证运行。
{
"success": true,
"status": "ok",
"search_context": {
"blog_identifier": "staff",
"post_type": "all",
"tag": "tumblr staff"
},
"data": {
"blog": {
"url": "https://staff.tumblr.com",
"blog_identifier": "staff.tumblr.com",
"uuid": null,
"username": "staff",
"display_name": "Tumblr Staff",
"description": null,
"emails": [],
"external_links": [],
"rss_url": "https://staff.tumblr.com/rss",
"timezone": null,
"is_custom_domain": false,
"avatar_url": null,
"avatar_urls": null
},
"analytics": {
"all_posts": {
"analyzed_posts_count": 20,
"last_post_date": "2026-07-13T20:37:36+00:00",
"total_engagement": 0,
"avg_engagement_rate_per_post": 0.0,
"peak_engagement_rate_per_post": 0.0,
"avg_weighted_engagement_score": 0.0,
"total_engagement_rate": 0.0,
"median_engagement_per_post": 0.0,
"max_engagement_per_post": 0,
"avg_caption_length": 33,
"avg_posts_per_week": 1,
"avg_posts_per_month": 4,
"posts_count_last_7_days": 0,
"posts_count_last_30_days": 0,
"total_notes": 0,
"avg_notes_per_post": 0,
"total_note_rate": 0.0,
"content_format_breakdown": [
{
"format": "regular",
"count": 20,
"percentage": 100.0
}
],
"posting_time_analysis": {
"by_day_of_week": [
{
"day": "Tuesday",
"count": 6
},
{
"day": "Wednesday",
"count": 4
},
{
"_more_items": 4
}
],
"by_hour_of_day": [
{
"hour": 16,
"count": 6
},
{
"hour": 20,
"count": 4
},
{
"_more_items": 7
}
]
},
"top_hashtags": [
{
"hashtag": "1",
"count": 2
},
{
"hashtag": "20",
"count": 2
},
{
"_more_items": 6
}
],
"top_posts_by_engagement": [
{
"item_id": "822057428507049984",
"post_id": "822057428507049984",
"url": "https://staff.tumblr.com/post/822057428507049984",
"title": "In case you’re looking for a blog that’s gone missing on Tumblr and didn’t see this recent update.",
"text": "In case you’re looking for a blog that’s gone missing on Tumblr and didn’t see this recent update.",
"created_at": "2026-07-13T20:37:36+00:00",
"content_format": "regular",
"engagement": 0,
"is_sponsored": false,
"sponsored_detection_source": null,
"sponsored_detection_confidence": null
},
{
"item_id": "818408523445731328",
"post_id": "818408523445731328",
"url": "https://staff.tumblr.com/post/818408523445731328",
"title": "Where’s that comment?",
"text": "Where’s that comment?",
"created_at": "2026-06-03T13:59:49+00:00",
"content_format": "regular",
"engagement": 0,
"is_sponsored": false,
"sponsored_detection_source": null,
"sponsored_detection_confidence": null
},
{
"_more_items": 3
}
],
"engagement_by_format": [
{
"format": "regular",
"count": 20,
"total_engagement": 0,
"avg_engagement_per_post": 0.0,
"avg_engagement_rate_per_post": 0.0
}
]
},
"sponsored_posts": {
"analyzed_posts_count": 0,
"total_engagement": 0,
"avg_engagement_rate_per_post": 0.0,
"peak_engagement_rate_per_post": 0.0,
"avg_weighted_engagement_score": 0.0,
"total_engagement_rate": 0.0,
"median_engagement_per_post": 0.0,
"max_engagement_per_post": 0,
"avg_caption_length": 0,
"avg_posts_per_week": 0,
"avg_posts_per_month": 0,
"posts_count_last_7_days": 0,
"posts_count_last_30_days": 0
},
"organic_posts": {
"analyzed_posts_count": 20,
"last_post_date": "2026-07-13T20:37:36+00:00",
"total_engagement": 0,
"avg_engagement_rate_per_post": 0.0,
"peak_engagement_rate_per_post": 0.0,
"avg_weighted_engagement_score": 0.0,
"total_engagement_rate": 0.0,
"median_engagement_per_post": 0.0,
"max_engagement_per_post": 0,
"avg_caption_length": 33,
"avg_posts_per_week": 1,
"avg_posts_per_month": 4,
"posts_count_last_7_days": 0,
"posts_count_last_30_days": 0,
"total_notes": 0,
"avg_notes_per_post": 0,
"total_note_rate": 0.0,
"content_format_breakdown": [
{
"format": "regular",
"count": 20,
"percentage": 100.0
}
],
"posting_time_analysis": {
"by_day_of_week": [
{
"day": "Tuesday",
"count": 6
},
{
"day": "Wednesday",
"count": 4
},
{
"_more_items": 4
}
],
"by_hour_of_day": [
{
"hour": 16,
"count": 6
},
{
"hour": 20,
"count": 4
},
{
"_more_items": 7
}
]
},
"top_hashtags": [
{
"hashtag": "1",
"count": 2
},
{
"hashtag": "20",
"count": 2
},
{
"_more_items": 6
}
],
"top_posts_by_engagement": [
{
"item_id": "822057428507049984",
"post_id": "822057428507049984",
"url": "https://staff.tumblr.com/post/822057428507049984",
"title": "In case you’re looking for a blog that’s gone missing on Tumblr and didn’t see this recent update.",
"text": "In case you’re looking for a blog that’s gone missing on Tumblr and didn’t see this recent update.",
"created_at": "2026-07-13T20:37:36+00:00",
"content_format": "regular",
"engagement": 0,
"is_sponsored": false,
"sponsored_detection_source": null,
"sponsored_detection_confidence": null
},
{
"item_id": "818408523445731328",
"post_id": "818408523445731328",
"url": "https://staff.tumblr.com/post/818408523445731328",
"title": "Where’s that comment?",
"text": "Where’s that comment?",
"created_at": "2026-06-03T13:59:49+00:00",
"content_format": "regular",
"engagement": 0,
"is_sponsored": false,
"sponsored_detection_source": null,
"sponsored_detection_confidence": null
},
{
"_more_items": 3
}
],
"engagement_by_format": [
{
"format": "regular",
"count": 20,
"total_engagement": 0,
"avg_engagement_per_post": 0.0,
"avg_engagement_rate_per_post": 0.0
}
]
},
"segment_comparison": {
"sponsored_content_share": 0.0,
"organic_content_share": 100.0,
"organic_vs_sponsored_engagement_rate_gap": 0.0,
"sponsored_to_organic_avg_engagement_ratio": 0.0
}
},
"feed": {
"count": 20,
"items": [
{
"url": "https://staff.tumblr.com/post/822057428507049984",
"post_id": "822057428507049984",
"title": "In case you’re looking for a blog that’s gone missing on Tumblr and didn’t see this recent update.",
"summary": "In case you’re looking for a blog that’s gone missing on Tumblr and didn’t see this recent update.",
"body_html": "<p><a class=\"tumblr_blog\" href=\"https://changes.tumblr.com/post/818409292753436672/deleted-accounts-can-now-be-recovered-up-to-30\">changes</a>:</p><blockquote><h1>Deleted accoun…",
"blog_username": "staff",
"blog_display_name": "Tumblr Staff",
"blog_url": "https://staff.tumblr.com",
"published_at": "2026-07-13T20:37:36Z",
"type": "regular",
"tags": [
"tumblr"
],
"is_sponsored": false,
"sponsored_detection_source": null,
"sponsored_detection_confidence": null
},
{
"url": "https://staff.tumblr.com/post/818408523445731328",
"post_id": "818408523445731328",
"title": "Where’s that comment?",
"summary": "Where’s that comment?",
"body_html": "<p><a class=\"tumblr_blog\" href=\"https://engineering.tumblr.com/post/818227557915901952/launch-day\">engineering</a>:</p><blockquote><p><a class=\"tumblr_blog\" href=\"https://engine…",
"blog_username": "staff",
"blog_display_name": "Tumblr Staff",
"blog_url": "https://staff.tumblr.com",
"published_at": "2026-06-03T13:59:49Z",
"type": "regular",
"tags": [
"radical speed month",
"rsm",
{
"_more_items": 3
}
],
"media": [
{
"url": "https://64.media.tumblr.com/b70baed40b8a42f2647f1e9727980326/bc08fda5fd4aaa10-94/s640x960/90039a62dfb3c54bf3efc7f22b072a9211196fb0.png",
"width": 1030,
"height": 1506,
"media_type": "image"
},
{
"url": "https://64.media.tumblr.com/1b0af89e8b0e820c96223492c467801e/bc08fda5fd4aaa10-f1/s640x960/d5303ad0839d889c1474bf2b498151e4f678ca1d.png",
"width": 602,
"height": 1047,
"media_type": "image"
},
{
"_more_items": 2
}
],
"is_sponsored": false,
"sponsored_detection_source": null,
"sponsored_detection_confidence": null
},
{
"_more_items": 18
}
]
}
}
}
将本文档作为第一个决策点,然后在将端点接入常规使用之前,继续了解价格、平台覆盖范围和集成规则。
借助这些解答,判断此 API 方法是否适合您的工作流、版本选择和上线计划。
该方法针对博客执行“按博客标识符获取帖子指标”操作。下方的简明响应示例展示了确切的字段结构。
新集成请选择 V2,因为它提供规范化的结构。仅在兼容已使用平台原生格式的客户端时使用 V1。
创建 API 密钥,在请求头中发送它,并提供表格中的必填参数。代码示例中已包含正确的路径和请求结构。