このエンドポイントが役立つこと
レスポンスには、投稿 の公開データと、次の API リクエストに必要なコンテキストが含まれます。
使用に適した場面
識別子または入力パラメーターがわかっていて、1 つの予測可能な API 結果が必要な場合にこのメソッドを使用します。
まず結果と一般的なワークフローを確認し、次にパラメーターと動作するリクエスト例に進んでください。
レスポンスには、投稿 の公開データと、次の API リクエストに必要なコンテキストが含まれます。
識別子または入力パラメーターがわかっていて、1 つの予測可能な API 結果が必要な場合にこのメソッドを使用します。
より大きなコレクションを読み込むことなく、必要なオブジェクトだけを要求します。
レコード、ワークフロー、社内ツールを OnlyFans API の結果で補完します。
レスポンスを関連するメソッドや複数ステップのワークフローの入力として使用します。
どちらのバージョンも同じタスクを解決し、同じパラメーターを受け付けます。切り替えを使ってレスポンス構造を比較し、クライアントが想定するバージョンを選んでください。
このページでバージョンを切り替えると、同じドキュメント URL でレスポンス構造を比較できます。
認証、必須パラメーター、リクエストの形は V1 と V2 で同じです。実際には、エンドポイントのパスを組み立てるときとレスポンスを読み取るときにバージョンを選びます。
主な違いはレスポンスのエンベロープです。新しい連携では V2 を使用し、既存のクライアント契約との互換性が必要な場合にのみ V1 を残してください。
どちらのバージョンでも、同じ API キーのヘッダーと同じクエリパラメーターを使用します。このドキュメントでは、まず共通のパラメーターを示し、次に各バージョンのパスとコードスニペットを示します。
| パラメーター | 必須 | 型 | 例 | 説明 |
|---|---|---|---|---|
cursor |
いいえ | str | None |
10 |
前のレスポンスで返された次のページのカーソル。最初のページでは省略します。 |
エンドポイントの正確なパス、URL の例、コードスニペットをコピーするときにバージョンを選んでください。上のパラメーター一覧は変わりません。
GET /api/v2/onlyfans.com/posts/public-postscurl --request GET \
--url "https://www.scrapestorm.net/api/v2/onlyfans.com/posts/public-posts" \
--header "X-API-Key: 00000000-0000-4000-8000-000000000000" \
# Optional parameters:
# --data-urlencode 'cursor=10'
from urllib.parse import urljoin
import requests
BASE_URL = "https://www.scrapestorm.net"
ENDPOINT = "/api/v2/onlyfans.com/posts/public-posts"
HEADERS = {"Accept": "application/json", "X-API-Key": "00000000-0000-4000-8000-000000000000"}
params = {
}
# Optional parameters
# params["cursor"] = "10"
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/onlyfans.com/posts/public-posts";
const params = new URLSearchParams({
});
// Optional parameters
// params.set("cursor", "10");
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 = {
};
// Optional parameters
// params.cursor = "10";
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 = [
];
// Optional parameters
// $query["cursor"] = "10";
try {
$response = $client->request("GET", "/api/v2/onlyfans.com/posts/public-posts", [
'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/onlyfans.com/posts/public-posts"
params := url.Values{}
// Optional parameters
// params.Set("cursor", "10")
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/onlyfans.com/posts/public-postscurl --request GET \
--url "https://www.scrapestorm.net/api/v1/onlyfans.com/posts/public-posts" \
--header "X-API-Key: 00000000-0000-4000-8000-000000000000" \
# Optional parameters:
# --data-urlencode 'cursor=10'
from urllib.parse import urljoin
import requests
BASE_URL = "https://www.scrapestorm.net"
ENDPOINT = "/api/v1/onlyfans.com/posts/public-posts"
HEADERS = {"Accept": "application/json", "X-API-Key": "00000000-0000-4000-8000-000000000000"}
params = {
}
# Optional parameters
# params["cursor"] = "10"
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/onlyfans.com/posts/public-posts";
const params = new URLSearchParams({
});
// Optional parameters
// params.set("cursor", "10");
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 = {
};
// Optional parameters
// params.cursor = "10";
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 = [
];
// Optional parameters
// $query["cursor"] = "10";
try {
$response = $client->request("GET", "/api/v1/onlyfans.com/posts/public-posts", [
'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/onlyfans.com/posts/public-posts"
params := url.Values{}
// Optional parameters
// params.Set("cursor", "10")
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": "10",
"has_more": true
},
"search_context": {},
"data": {
"posts": {
"count": 10,
"items": [
{
"url": null,
"post_id": "2392398084",
"text": "@petitemmatv spends a day in Sevilla, following local recommendations—from breakfast at Chunga to wandering the markets and taking in rooftop views at Las Setas. 🥐🏙️ onlyfans.co…",
"text_html": "<p><a href=\"/petitemmatv\">@petitemmatv</a> spends a day in Sevilla, following local recommendations—from breakfast at Chunga to wandering the markets and taking in rooftop views…",
"hashtags": [],
"emails": [],
"published_at": "2026-07-19T13:08:06+00:00",
"author": {
"user_id": "15585607"
},
"media": {
"images": [],
"videos": [
"…"
]
},
"like_count": null,
"comment_count": null,
"media_count": 1,
"price": null,
"is_pinned": null,
"is_archived": null,
"is_media_ready": true,
"can_view_media": null
},
{
"url": null,
"post_id": "2496804803",
"text": "From cosplay and competitive gaming to building a massive online following, Anubace (Michael Salamone) has turned internet culture into a brand of his own. @danielledenicolatv s…",
"text_html": "<p>From cosplay and competitive gaming to building a massive online following, Anubace (Michael Salamone) has turned internet culture into a brand of his own. <a href=\"/danielle…",
"hashtags": [],
"emails": [],
"published_at": "2026-07-19T05:10:01+00:00",
"author": {
"user_id": "15585607"
},
"media": {
"images": [],
"videos": [
"…"
]
},
"like_count": null,
"comment_count": null,
"media_count": 1,
"price": null,
"is_pinned": null,
"is_archived": null,
"is_media_ready": true,
"can_view_media": null
},
{
"_more_items": 8
}
]
}
}
}
このコンパクトな JSON の例は、V1 の直近の成功した検証実行から取得したものです。
{
"success": true,
"status": "ok",
"pagination": {
"cursor": "10",
"has_more": true
},
"search_context": {},
"data": {
"items": [
{
"id": 2392398084,
"publishDate": "2026-07-19T13:08:06+00:00",
"author": {
"id": 15585607,
"_view": "a"
},
"text": "<p><a href=\"/petitemmatv\">@petitemmatv</a> spends a day in Sevilla, following local recommendations—from breakfast at Chunga to wandering the markets and taking in rooftop views…",
"isMediaReady": true,
"media": [
{
"id": 4391724922,
"type": "video",
"convertedToVideo": false,
"canView": true,
"hasError": false,
"createdAt": null,
"isReady": true,
"files": {
"full": "…",
"thumb": "…",
"preview": "…",
"squarePreview": "…"
},
"duration": 646,
"hasCustomPreview": true,
"videoSources": {
"720": "https://cdn2.onlyfans.com/files/1/10/1012ca6565bd243131494fbf0039aa97/0ibzveb0axkdjnpq69nj9_720p.mp4?Tag=2&u=0&Expires=1784581200&Signature=iYTbKs9DrWbVb9Ky-Rbc6pJOs~uAwXQhUSo29uLf2RrxhADZsdNboSw0-3ISmATwhy~U6plXzwsu3FWsaffnl7kod7zb2D03MWRXfP3wqxz9jJQ0yzJsQsGhS-aVk5r7ew35hSCy0mikPzD24U-hEh5~kv2IzN3MCzPvdUKXd1vrycW~4cBrJULTv9nJ2LPg3LejMbnZpHdkSxHMecMFRMWi-m4M-1kh42F5yda3cbcVCLVbS6ncX51stgQfeKFKpthQsUfOfyeT5VKt73NT6QTIV4K4u~TjXNHH2cULNl2C6yFBs2H17koQNqYNCLVkA7iJaf6UgyJ79Af7KCSg~A__&Key-Pair-Id=APKAUSX4CWPPATFK2DGD",
"240": "https://cdn2.onlyfans.com/files/a/a3/a3812ce84bc9eec2e91f5e597caf476f/0ibzveb0axkdjnpq69nj9_240p.mp4?Tag=2&u=0&Expires=1784581200&Signature=LnsaonsD-WpuiXz-CXc2yfxdTuKujArMIyiYEkDHF74Z3DPk9JJzcs-35RYbGIwR7R8xiPcjd~WXCADzQXt5OXwpAgtv~jBF4h0RWddwStJLfhu7QiINJhWxYogRji1ZEq6XRmxC-ii-b-~JiPZmMUm272Qi9LWW88A8Vh6r3l0uVb0efYLnu87ceE-porBDxOUbVCM-nwx4WTJgMndReZom-37828w0hyTXrqVEqSrdCOUWzPew5BafakB8gV5TCSibYxahJO9OKhwOJr1d8JjKLRbzh~TXpuWCAQkfvh91LgWvFKmH3K-cBwiIaiVmMQ94YWudrvWCSqSe73-8xg__&Key-Pair-Id=APKAUSX4CWPPATFK2DGD"
}
}
]
},
{
"id": 2496804803,
"publishDate": "2026-07-19T05:10:01+00:00",
"author": {
"id": 15585607,
"_view": "a"
},
"text": "<p>From cosplay and competitive gaming to building a massive online following, Anubace (Michael Salamone) has turned internet culture into a brand of his own. <a href=\"/danielle…",
"isMediaReady": true,
"media": [
{
"id": 4477174169,
"type": "video",
"convertedToVideo": false,
"canView": true,
"hasError": false,
"createdAt": null,
"isReady": true,
"files": {
"full": "…",
"thumb": "…",
"preview": "…",
"squarePreview": "…"
},
"duration": 4211,
"hasCustomPreview": true,
"videoSources": {
"720": "https://cdn2.onlyfans.com/files/3/35/35bf28975ddd9034a37ae662cac799a9/0idj9gcdar4uauna2609a_720p.mp4?Tag=2&u=0&Expires=1784581200&Signature=aEqyceVwy98V0b6YIV3GV2euEXPYhn7kf-NDPSHo0uxHlfQIuS80amLTQI98RozLnN6Y2hT52~Nzrp3lmCnzQ3mvvgHi85VIhBtbGWG~u1K3qlwfle9taJveLL4IZIIvSA53eVmt7aZSMpasB0DXN2pHu4jx8no7U5Q6S-VehDUhCBbFcIEQMD7R75VnFtZV4PwIn1rg-2Q-9Q3l8SwhIbWo-fv420GLZq0PEY18xicQezFvxla3NZ7ZuaR1teXxf~uWaB~GycvEm5YDT-9Vk2BgwILE7LqbUqmMmIBxeCnw-KRgPg97TTBqsNbLLU1y1tKRFBQfuH-nQc9zk76Gvw__&Key-Pair-Id=APKAUSX4CWPPATFK2DGD",
"240": "https://cdn2.onlyfans.com/files/b/b5/b5ea5bf8355e8f8327dfedc7114ff671/0idj9gcdar4uauna2609a_240p.mp4?Tag=2&u=0&Expires=1784581200&Signature=QxoBhsvYyda9HXHO7kGJyBE4BlOhnJXOrSvXmqR~Uf10awtmHRN4vjLCZxCCJ6y4rwX97VDj496AlEaYmC09aFnTv5tx6jF7zFSZ8YNtGqTFe~PfT57A1mUj4ip4VddmOS6WMJ4sCkJ~e0YBbWOE05DollJ3Kx-PcheuqMOUryFoe6msoSiaMX80gbUg5A9R1DJjpxkNL-MunvUKAel4dDXmNT14367F2IdwjePo~aY~bij7cfQTnAqlqd05vJWO~QuyLB8cq8aWjJY2HxqgOH0Uub3oHadA~JoqEfNQYB6NLEwH3caCdXrdQ82pynUincpwC8WIxMxvXvMAu9UlbQ__&Key-Pair-Id=APKAUSX4CWPPATFK2DGD"
}
}
]
},
{
"_more_items": 8
}
],
"hasMore": true
}
}
このドキュメントを最初の判断材料とし、継続的な利用のためにエンドポイントを接続する前に、料金、プラットフォームのカバー範囲、連携ルールを確認してください。
これらの回答を参考に、この API メソッドがワークフロー、バージョンの選択、導入計画に合うかどうかを判断してください。
このメソッドは 投稿 に対して「公開投稿」を実行します。以下のコンパクトなレスポンス例で、フィールドの正確な構造を確認できます。
新しい連携では、正規化された構造を提供する V2 を選んでください。V1 は、既にプラットフォーム固有の形式を処理しているクライアントとの互換性のためにのみ使用してください。
API キーを作成し、リクエストヘッダーで送信し、表の必須パラメーターを指定してください。コード例には、正しいパスとリクエスト構造が既に含まれています。