Skip to main content
POST
/
api
/
patreon
/
creators
/
posts
/patreon/creators/posts
curl --request POST \
  --url https://api.anysite.io/api/patreon/creators/posts \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "creator": "<string>",
  "count": 2,
  "timeout": 300,
  "tag": "<string>",
  "published_year": 2055,
  "published_month": 6,
  "search": "<string>",
  "sort": "newest"
}
'
import requests

url = "https://api.anysite.io/api/patreon/creators/posts"

payload = {
    "creator": "<string>",
    "count": 2,
    "timeout": 300,
    "tag": "<string>",
    "published_year": 2055,
    "published_month": 6,
    "search": "<string>",
    "sort": "newest"
}
headers = {
    "access-token": "<api-key>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
  method: 'POST',
  headers: {'access-token': '<api-key>', 'Content-Type': 'application/json'},
  body: JSON.stringify({
    creator: '<string>',
    count: 2,
    timeout: 300,
    tag: '<string>',
    published_year: 2055,
    published_month: 6,
    search: '<string>',
    sort: 'newest'
  })
};

fetch('https://api.anysite.io/api/patreon/creators/posts', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_URL => "https://api.anysite.io/api/patreon/creators/posts",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'creator' => '<string>',
    'count' => 2,
    'timeout' => 300,
    'tag' => '<string>',
    'published_year' => 2055,
    'published_month' => 6,
    'search' => '<string>',
    'sort' => 'newest'
  ]),
  CURLOPT_HTTPHEADER => [
    "Content-Type: application/json",
    "access-token: <api-key>"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.anysite.io/api/patreon/creators/posts"

	payload := strings.NewReader("{\n  \"creator\": \"<string>\",\n  \"count\": 2,\n  \"timeout\": 300,\n  \"tag\": \"<string>\",\n  \"published_year\": 2055,\n  \"published_month\": 6,\n  \"search\": \"<string>\",\n  \"sort\": \"newest\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("access-token", "<api-key>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.post("https://api.anysite.io/api/patreon/creators/posts")
  .header("access-token", "<api-key>")
  .header("Content-Type", "application/json")
  .body("{\n  \"creator\": \"<string>\",\n  \"count\": 2,\n  \"timeout\": 300,\n  \"tag\": \"<string>\",\n  \"published_year\": 2055,\n  \"published_month\": 6,\n  \"search\": \"<string>\",\n  \"sort\": \"newest\"\n}")
  .asString();
require 'uri'
require 'net/http'

url = URI("https://api.anysite.io/api/patreon/creators/posts")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["access-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"creator\": \"<string>\",\n  \"count\": 2,\n  \"timeout\": 300,\n  \"tag\": \"<string>\",\n  \"published_year\": 2055,\n  \"published_month\": 6,\n  \"search\": \"<string>\",\n  \"sort\": \"newest\"\n}"

response = http.request(request)
puts response.read_body
[
  {
    "id": 123,
    "@type": "PatreonPost",
    "name": "<string>",
    "alias": "<string>",
    "url": "<string>",
    "post_type": "<string>",
    "teaser": "<string>",
    "text": "<string>",
    "published_at": 123,
    "edited_at": 123,
    "created_at": 123,
    "like_count": 123,
    "comment_count": 123,
    "is_paid": true,
    "is_public": true,
    "image": "<string>",
    "video_duration": 123,
    "min_pledge_amount": 123,
    "campaign_id": 123,
    "tiers": [],
    "poll_options": [],
    "tags": []
  }
]
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>",
      "input": "<unknown>",
      "ctx": {}
    }
  ]
}

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
creator
string
required
Minimum string length: 1
count
integer
required
Required range: x >= 1
timeout
integer
default:300
Required range: 20 <= x <= 1500
post_type
enum<string> | null
Available options:
text,
video,
poll,
image,
link,
audio
tag
string | null
published_year
integer | null
Required range: 2010 <= x <= 2100
published_month
integer | null
Required range: 1 <= x <= 12
search
string | null
sort
enum<string>
default:newest
Available options:
newest,
oldest

Response

Successful Response

id
integer
required
@type
string
default:PatreonPost
name
string | null
alias
string | null
url
string | null
post_type
string | null
teaser
string | null
text
string | null
published_at
integer | null
edited_at
integer | null
created_at
integer | null
like_count
integer | null
comment_count
integer | null
is_paid
boolean | null
is_public
boolean | null
image
string | null
video_duration
integer | null
min_pledge_amount
number | null
campaign_id
integer | null
tiers
string[]
poll_options
string[]
tags
string[]