このエンドポイントが役立つこと
レスポンスには、ブログ の公開データと、次の API リクエストに必要なコンテキストが含まれます。
使用に適した場面
識別子または入力パラメーターがわかっていて、1 つの予測可能な API 結果が必要な場合にこのメソッドを使用します。
まず結果と一般的なワークフローを確認し、次にパラメーターと動作するリクエスト例に進んでください。
レスポンスには、ブログ の公開データと、次の API リクエストに必要なコンテキストが含まれます。
識別子または入力パラメーターがわかっていて、1 つの予測可能な API 結果が必要な場合にこのメソッドを使用します。
より大きなコレクションを読み込むことなく、必要なオブジェクトだけを要求します。
レコード、ワークフロー、社内ツールを Tumblr API の結果で補完します。
レスポンスを関連するメソッドや複数ステップのワークフローの入力として使用します。
どちらのバージョンも同じタスクを解決し、同じパラメーターを受け付けます。切り替えを使ってレスポンス構造を比較し、クライアントが想定するバージョンを選んでください。
このページでバージョンを切り替えると、同じドキュメント 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. |
cursor |
いいえ | str | None |
opaque-cursor-next-page |
前のレスポンスで返された次のページのカーソル。最初のページでは省略します。 |
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/posts-by-blog-identifiercurl --request GET \
--url "https://www.scrapestorm.net/api/v2/tumblr.com/blog/posts-by-blog-identifier" \
--header "X-API-Key: 00000000-0000-4000-8000-000000000000" \
--get --data-urlencode 'blog_identifier=staff' \
# Optional parameters:
# --data-urlencode 'cursor=opaque-cursor-next-page'
# --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/posts-by-blog-identifier"
HEADERS = {"Accept": "application/json", "X-API-Key": "00000000-0000-4000-8000-000000000000"}
params = {
"blog_identifier": "staff",
}
# Optional parameters
# params["cursor"] = "opaque-cursor-next-page"
# 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/posts-by-blog-identifier";
const params = new URLSearchParams({
blog_identifier: "staff",
});
// Optional parameters
// params.set("cursor", "opaque-cursor-next-page");
// 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.cursor = "opaque-cursor-next-page";
// 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["cursor"] = "opaque-cursor-next-page";
// $query["post_type"] = "all";
// $query["tag"] = "tumblr staff";
try {
$response = $client->request("GET", "/api/v2/tumblr.com/blog/posts-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/posts-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)
}
エンドポイントの正確なパス、URL の例、コードスニペットをコピーするときにバージョンを選んでください。上のパラメーター一覧は変わりません。
GET /api/v1/tumblr.com/blog/posts-by-blog-identifiercurl --request GET \
--url "https://www.scrapestorm.net/api/v1/tumblr.com/blog/posts-by-blog-identifier" \
--header "X-API-Key: 00000000-0000-4000-8000-000000000000" \
--get --data-urlencode 'blog_identifier=staff' \
# Optional parameters:
# --data-urlencode 'cursor=opaque-cursor-next-page'
# --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/v1/tumblr.com/blog/posts-by-blog-identifier"
HEADERS = {"Accept": "application/json", "X-API-Key": "00000000-0000-4000-8000-000000000000"}
params = {
"blog_identifier": "staff",
}
# Optional parameters
# params["cursor"] = "opaque-cursor-next-page"
# 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/v1/tumblr.com/blog/posts-by-blog-identifier";
const params = new URLSearchParams({
blog_identifier: "staff",
});
// Optional parameters
// params.set("cursor", "opaque-cursor-next-page");
// 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.cursor = "opaque-cursor-next-page";
// 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["cursor"] = "opaque-cursor-next-page";
// $query["post_type"] = "all";
// $query["tag"] = "tumblr staff";
try {
$response = $client->request("GET", "/api/v1/tumblr.com/blog/posts-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/v1/tumblr.com/blog/posts-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",
"pagination": {
"cursor": null,
"has_more": false
},
"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
},
"posts": {
"count": 20,
"total_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.",
"hashtags": [],
"emails": [],
"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",
"blog_avatar_url": null,
"blog_avatar_urls": null,
"published_at": "2026-07-13T20:37:36Z",
"note_count": null,
"type": "regular",
"slug": null,
"tags": [
"tumblr"
],
"reblogged_from": null,
"reblogged_root": null,
"media": []
},
{
"url": "https://staff.tumblr.com/post/818408523445731328",
"post_id": "818408523445731328",
"title": "Where’s that comment?",
"summary": "Where’s that comment?",
"hashtags": [],
"emails": [],
"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",
"blog_avatar_url": null,
"blog_avatar_urls": null,
"published_at": "2026-06-03T13:59:49Z",
"note_count": null,
"type": "regular",
"slug": null,
"tags": [
"radical speed month",
"rsm",
{
"_more_items": 3
}
],
"reblogged_from": null,
"reblogged_root": null,
"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
}
]
},
{
"_more_items": 18
}
]
}
}
}
このコンパクトな JSON の例は、V1 の直近の成功した検証実行から取得したものです。
{
"success": true,
"status": "ok",
"pagination": {
"cursor": null,
"has_more": false
},
"search_context": {
"post_type": "all",
"tag": "tumblr staff",
"blog_identifier": "staff"
},
"data": {
"tumblelog": {
"name": "staff",
"title": "Tumblr Staff",
"description": "",
"url": "https://staff.tumblr.com",
"feeds": [
"https://staff.tumblr.com/rss"
]
},
"posts-start": 0,
"posts-total": 20,
"posts-type": false,
"posts": [
{
"id": "822057428507049984",
"type": "regular",
"url-with-slug": "https://staff.tumblr.com/post/822057428507049984",
"slug": null,
"regular-title": "In case you’re looking for a blog that’s gone missing on Tumblr and didn’t see this recent update.",
"regular-body": "<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…",
"unix-timestamp": 1783975056,
"tumblelog": {
"name": "staff",
"title": "Tumblr Staff",
"url": "https://staff.tumblr.com/"
},
"tags": [
"tumblr"
]
},
{
"id": "818408523445731328",
"type": "regular",
"url-with-slug": "https://staff.tumblr.com/post/818408523445731328",
"slug": null,
"regular-title": "Where’s that comment?",
"regular-body": "<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…",
"unix-timestamp": 1780495189,
"tumblelog": {
"name": "staff",
"title": "Tumblr Staff",
"url": "https://staff.tumblr.com/"
},
"tags": [
"radical speed month",
"rsm",
{
"_more_items": 3
}
]
},
{
"_more_items": 18
}
],
"pagination": {
"cursor": null,
"has_more": false
}
}
}
このドキュメントを最初の判断材料とし、継続的な利用のためにエンドポイントを接続する前に、料金、プラットフォームのカバー範囲、連携ルールを確認してください。
これらの回答を参考に、この API メソッドがワークフロー、バージョンの選択、導入計画に合うかどうかを判断してください。
このメソッドは ブログ に対して「ブログ識別子による投稿」を実行します。以下のコンパクトなレスポンス例で、フィールドの正確な構造を確認できます。
新しい連携では、正規化された構造を提供する V2 を選んでください。V1 は、既にプラットフォーム固有の形式を処理しているクライアントとの互換性のためにのみ使用してください。
API キーを作成し、リクエストヘッダーで送信し、表の必須パラメーターを指定してください。コード例には、正しいパスとリクエスト構造が既に含まれています。