Retrieve a paginated list of blog posts from a creator. Or search for blog posts from a creator.
Example query: https://www.floatplane.com/api/v3/content/creator?id=59f94c0bdd241b70349eb72b&fromDate=2021-07-24T07:00:00.001Z&toDate=2022-07-27T06:59:59.099Z&hasVideo=true&hasAudio=true&hasPicture=false&hasText=false&fromDuration=1020&toDuration=9900&sort=DESC&search=thor&tags[0]=tjm
curl -X GET \
\
-H "Accept: application/json,text/html" \
"https://www.floatplane.com/api/v3/content/creator?id=id_example&channel=channel_example&limit=56&fetchAfter=56&search=search_example&tags=&hasVideo=true&hasAudio=true&hasPicture=true&hasText=true&sort=sort_example&fromDuration=56&toDuration=56&fromDate=2022-07-24T07:00:00.001Z&toDate=2022-07-24T07:00:00.001Z"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ContentV3Api;
import java.io.File;
import java.util.*;
public class ContentV3ApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: CookieAuth
ApiKeyAuth CookieAuth = (ApiKeyAuth) defaultClient.getAuthentication("CookieAuth");
CookieAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//CookieAuth.setApiKeyPrefix("Token");
// Create an instance of the API class
ContentV3Api apiInstance = new ContentV3Api();
String id = id_example; // String | The GUID of the creator to retrieve posts from.
String channel = channel_example; // String | The id of a creator's specific channel from which to retrieve posts.
Integer limit = 56; // Integer | The maximum number of posts to return.
Integer fetchAfter = 56; // Integer | The number of posts to skip. Usually a multiple of `limit`, to get the next "page" of results.
String search = search_example; // String | Search filter to look for specific posts.
array[String] tags = ; // array[String] | An array of tags to search against, possibly in addition to `search`.
Boolean hasVideo = true; // Boolean | If true, include blog posts with video attachments.
Boolean hasAudio = true; // Boolean | If true, include blog posts with audio attachments.
Boolean hasPicture = true; // Boolean | If true, include blog posts with picture attachments.
Boolean hasText = true; // Boolean | If true, only include blog posts that are text-only. Text-only posts are ones without any attachments, such as video, audio, picture, and gallery.
This filter and `hasVideo`, `hasAudio`, and `hasPicture` should be mutually exclusive. That is, if `hasText` is true then the other three should all be false. Conversely, if any of the other three are true, then `hasText` should be false. Otherwise, the filter would produce no results.
String sort = sort_example; // String | `DESC` = Newest First. `ASC` = Oldest First.
Integer fromDuration = 56; // Integer | Include video posts where the duration of the video is at minimum `fromDuration` seconds long. Usually in multiples of 60 seconds. Implies `hasVideo=true`.
Integer toDuration = 56; // Integer | Include video posts where the duration of the video is at maximum `toDuration` seconds long. Usually in multiples of 60 seconds. Implies `hasVideo=true`.
Date fromDate = 2022-07-24T07:00:00.001Z; // Date | Include posts where the publication date is on or after this filter date.
Date toDate = 2022-07-24T07:00:00.001Z; // Date | Include posts where the publication date is on or before this filter date.
try {
array[BlogPostModelV3] result = apiInstance.getCreatorBlogPosts(id, channel, limit, fetchAfter, search, tags, hasVideo, hasAudio, hasPicture, hasText, sort, fromDuration, toDuration, fromDate, toDate);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ContentV3Api#getCreatorBlogPosts");
e.printStackTrace();
}
}
}
import org.openapitools.client.api.ContentV3Api;
public class ContentV3ApiExample {
public static void main(String[] args) {
ContentV3Api apiInstance = new ContentV3Api();
String id = id_example; // String | The GUID of the creator to retrieve posts from.
String channel = channel_example; // String | The id of a creator's specific channel from which to retrieve posts.
Integer limit = 56; // Integer | The maximum number of posts to return.
Integer fetchAfter = 56; // Integer | The number of posts to skip. Usually a multiple of `limit`, to get the next "page" of results.
String search = search_example; // String | Search filter to look for specific posts.
array[String] tags = ; // array[String] | An array of tags to search against, possibly in addition to `search`.
Boolean hasVideo = true; // Boolean | If true, include blog posts with video attachments.
Boolean hasAudio = true; // Boolean | If true, include blog posts with audio attachments.
Boolean hasPicture = true; // Boolean | If true, include blog posts with picture attachments.
Boolean hasText = true; // Boolean | If true, only include blog posts that are text-only. Text-only posts are ones without any attachments, such as video, audio, picture, and gallery.
This filter and `hasVideo`, `hasAudio`, and `hasPicture` should be mutually exclusive. That is, if `hasText` is true then the other three should all be false. Conversely, if any of the other three are true, then `hasText` should be false. Otherwise, the filter would produce no results.
String sort = sort_example; // String | `DESC` = Newest First. `ASC` = Oldest First.
Integer fromDuration = 56; // Integer | Include video posts where the duration of the video is at minimum `fromDuration` seconds long. Usually in multiples of 60 seconds. Implies `hasVideo=true`.
Integer toDuration = 56; // Integer | Include video posts where the duration of the video is at maximum `toDuration` seconds long. Usually in multiples of 60 seconds. Implies `hasVideo=true`.
Date fromDate = 2022-07-24T07:00:00.001Z; // Date | Include posts where the publication date is on or after this filter date.
Date toDate = 2022-07-24T07:00:00.001Z; // Date | Include posts where the publication date is on or before this filter date.
try {
array[BlogPostModelV3] result = apiInstance.getCreatorBlogPosts(id, channel, limit, fetchAfter, search, tags, hasVideo, hasAudio, hasPicture, hasText, sort, fromDuration, toDuration, fromDate, toDate);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ContentV3Api#getCreatorBlogPosts");
e.printStackTrace();
}
}
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: CookieAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"sails.sid"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"sails.sid"];
// Create an instance of the API class
ContentV3Api *apiInstance = [[ContentV3Api alloc] init];
String *id = id_example; // The GUID of the creator to retrieve posts from. (default to null)
String *channel = channel_example; // The id of a creator's specific channel from which to retrieve posts. (optional) (default to null)
Integer *limit = 56; // The maximum number of posts to return. (optional) (default to null)
Integer *fetchAfter = 56; // The number of posts to skip. Usually a multiple of `limit`, to get the next "page" of results. (optional) (default to null)
String *search = search_example; // Search filter to look for specific posts. (optional) (default to null)
array[String] *tags = ; // An array of tags to search against, possibly in addition to `search`. (optional) (default to null)
Boolean *hasVideo = true; // If true, include blog posts with video attachments. (optional) (default to null)
Boolean *hasAudio = true; // If true, include blog posts with audio attachments. (optional) (default to null)
Boolean *hasPicture = true; // If true, include blog posts with picture attachments. (optional) (default to null)
Boolean *hasText = true; // If true, only include blog posts that are text-only. Text-only posts are ones without any attachments, such as video, audio, picture, and gallery.
This filter and `hasVideo`, `hasAudio`, and `hasPicture` should be mutually exclusive. That is, if `hasText` is true then the other three should all be false. Conversely, if any of the other three are true, then `hasText` should be false. Otherwise, the filter would produce no results. (optional) (default to null)
String *sort = sort_example; // `DESC` = Newest First. `ASC` = Oldest First. (optional) (default to null)
Integer *fromDuration = 56; // Include video posts where the duration of the video is at minimum `fromDuration` seconds long. Usually in multiples of 60 seconds. Implies `hasVideo=true`. (optional) (default to null)
Integer *toDuration = 56; // Include video posts where the duration of the video is at maximum `toDuration` seconds long. Usually in multiples of 60 seconds. Implies `hasVideo=true`. (optional) (default to null)
Date *fromDate = 2022-07-24T07:00:00.001Z; // Include posts where the publication date is on or after this filter date. (optional) (default to null)
Date *toDate = 2022-07-24T07:00:00.001Z; // Include posts where the publication date is on or before this filter date. (optional) (default to null)
// Get Creator Blog Posts
[apiInstance getCreatorBlogPostsWith:id
channel:channel
limit:limit
fetchAfter:fetchAfter
search:search
tags:tags
hasVideo:hasVideo
hasAudio:hasAudio
hasPicture:hasPicture
hasText:hasText
sort:sort
fromDuration:fromDuration
toDuration:toDuration
fromDate:fromDate
toDate:toDate
completionHandler: ^(array[BlogPostModelV3] output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var FloatplaneRestApi = require('floatplane_rest_api');
var defaultClient = FloatplaneRestApi.ApiClient.instance;
// Configure API key authorization: CookieAuth
var CookieAuth = defaultClient.authentications['CookieAuth'];
CookieAuth.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//CookieAuth.apiKeyPrefix['sails.sid'] = "Token";
// Create an instance of the API class
var api = new FloatplaneRestApi.ContentV3Api()
var id = id_example; // {String} The GUID of the creator to retrieve posts from.
var opts = {
'channel': channel_example, // {String} The id of a creator's specific channel from which to retrieve posts.
'limit': 56, // {Integer} The maximum number of posts to return.
'fetchAfter': 56, // {Integer} The number of posts to skip. Usually a multiple of `limit`, to get the next "page" of results.
'search': search_example, // {String} Search filter to look for specific posts.
'tags': , // {array[String]} An array of tags to search against, possibly in addition to `search`.
'hasVideo': true, // {Boolean} If true, include blog posts with video attachments.
'hasAudio': true, // {Boolean} If true, include blog posts with audio attachments.
'hasPicture': true, // {Boolean} If true, include blog posts with picture attachments.
'hasText': true, // {Boolean} If true, only include blog posts that are text-only. Text-only posts are ones without any attachments, such as video, audio, picture, and gallery.
This filter and `hasVideo`, `hasAudio`, and `hasPicture` should be mutually exclusive. That is, if `hasText` is true then the other three should all be false. Conversely, if any of the other three are true, then `hasText` should be false. Otherwise, the filter would produce no results.
'sort': sort_example, // {String} `DESC` = Newest First. `ASC` = Oldest First.
'fromDuration': 56, // {Integer} Include video posts where the duration of the video is at minimum `fromDuration` seconds long. Usually in multiples of 60 seconds. Implies `hasVideo=true`.
'toDuration': 56, // {Integer} Include video posts where the duration of the video is at maximum `toDuration` seconds long. Usually in multiples of 60 seconds. Implies `hasVideo=true`.
'fromDate': 2022-07-24T07:00:00.001Z, // {Date} Include posts where the publication date is on or after this filter date.
'toDate': 2022-07-24T07:00:00.001Z // {Date} Include posts where the publication date is on or before this filter date.
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.getCreatorBlogPosts(id, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class getCreatorBlogPostsExample
{
public void main()
{
// Configure API key authorization: CookieAuth
Configuration.Default.ApiKey.Add("sails.sid", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("sails.sid", "Bearer");
// Create an instance of the API class
var apiInstance = new ContentV3Api();
var id = id_example; // String | The GUID of the creator to retrieve posts from. (default to null)
var channel = channel_example; // String | The id of a creator's specific channel from which to retrieve posts. (optional) (default to null)
var limit = 56; // Integer | The maximum number of posts to return. (optional) (default to null)
var fetchAfter = 56; // Integer | The number of posts to skip. Usually a multiple of `limit`, to get the next "page" of results. (optional) (default to null)
var search = search_example; // String | Search filter to look for specific posts. (optional) (default to null)
var tags = new array[String](); // array[String] | An array of tags to search against, possibly in addition to `search`. (optional) (default to null)
var hasVideo = true; // Boolean | If true, include blog posts with video attachments. (optional) (default to null)
var hasAudio = true; // Boolean | If true, include blog posts with audio attachments. (optional) (default to null)
var hasPicture = true; // Boolean | If true, include blog posts with picture attachments. (optional) (default to null)
var hasText = true; // Boolean | If true, only include blog posts that are text-only. Text-only posts are ones without any attachments, such as video, audio, picture, and gallery.
This filter and `hasVideo`, `hasAudio`, and `hasPicture` should be mutually exclusive. That is, if `hasText` is true then the other three should all be false. Conversely, if any of the other three are true, then `hasText` should be false. Otherwise, the filter would produce no results. (optional) (default to null)
var sort = sort_example; // String | `DESC` = Newest First. `ASC` = Oldest First. (optional) (default to null)
var fromDuration = 56; // Integer | Include video posts where the duration of the video is at minimum `fromDuration` seconds long. Usually in multiples of 60 seconds. Implies `hasVideo=true`. (optional) (default to null)
var toDuration = 56; // Integer | Include video posts where the duration of the video is at maximum `toDuration` seconds long. Usually in multiples of 60 seconds. Implies `hasVideo=true`. (optional) (default to null)
var fromDate = 2022-07-24T07:00:00.001Z; // Date | Include posts where the publication date is on or after this filter date. (optional) (default to null)
var toDate = 2022-07-24T07:00:00.001Z; // Date | Include posts where the publication date is on or before this filter date. (optional) (default to null)
try {
// Get Creator Blog Posts
array[BlogPostModelV3] result = apiInstance.getCreatorBlogPosts(id, channel, limit, fetchAfter, search, tags, hasVideo, hasAudio, hasPicture, hasText, sort, fromDuration, toDuration, fromDate, toDate);
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling ContentV3Api.getCreatorBlogPosts: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: CookieAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('sails.sid', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('sails.sid', 'Bearer');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ContentV3Api();
$id = id_example; // String | The GUID of the creator to retrieve posts from.
$channel = channel_example; // String | The id of a creator's specific channel from which to retrieve posts.
$limit = 56; // Integer | The maximum number of posts to return.
$fetchAfter = 56; // Integer | The number of posts to skip. Usually a multiple of `limit`, to get the next "page" of results.
$search = search_example; // String | Search filter to look for specific posts.
$tags = ; // array[String] | An array of tags to search against, possibly in addition to `search`.
$hasVideo = true; // Boolean | If true, include blog posts with video attachments.
$hasAudio = true; // Boolean | If true, include blog posts with audio attachments.
$hasPicture = true; // Boolean | If true, include blog posts with picture attachments.
$hasText = true; // Boolean | If true, only include blog posts that are text-only. Text-only posts are ones without any attachments, such as video, audio, picture, and gallery.
This filter and `hasVideo`, `hasAudio`, and `hasPicture` should be mutually exclusive. That is, if `hasText` is true then the other three should all be false. Conversely, if any of the other three are true, then `hasText` should be false. Otherwise, the filter would produce no results.
$sort = sort_example; // String | `DESC` = Newest First. `ASC` = Oldest First.
$fromDuration = 56; // Integer | Include video posts where the duration of the video is at minimum `fromDuration` seconds long. Usually in multiples of 60 seconds. Implies `hasVideo=true`.
$toDuration = 56; // Integer | Include video posts where the duration of the video is at maximum `toDuration` seconds long. Usually in multiples of 60 seconds. Implies `hasVideo=true`.
$fromDate = 2022-07-24T07:00:00.001Z; // Date | Include posts where the publication date is on or after this filter date.
$toDate = 2022-07-24T07:00:00.001Z; // Date | Include posts where the publication date is on or before this filter date.
try {
$result = $api_instance->getCreatorBlogPosts($id, $channel, $limit, $fetchAfter, $search, $tags, $hasVideo, $hasAudio, $hasPicture, $hasText, $sort, $fromDuration, $toDuration, $fromDate, $toDate);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ContentV3Api->getCreatorBlogPosts: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ContentV3Api;
# Configure API key authorization: CookieAuth
$WWW::OPenAPIClient::Configuration::api_key->{'sails.sid'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'sails.sid'} = "Bearer";
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ContentV3Api->new();
my $id = id_example; # String | The GUID of the creator to retrieve posts from.
my $channel = channel_example; # String | The id of a creator's specific channel from which to retrieve posts.
my $limit = 56; # Integer | The maximum number of posts to return.
my $fetchAfter = 56; # Integer | The number of posts to skip. Usually a multiple of `limit`, to get the next "page" of results.
my $search = search_example; # String | Search filter to look for specific posts.
my $tags = []; # array[String] | An array of tags to search against, possibly in addition to `search`.
my $hasVideo = true; # Boolean | If true, include blog posts with video attachments.
my $hasAudio = true; # Boolean | If true, include blog posts with audio attachments.
my $hasPicture = true; # Boolean | If true, include blog posts with picture attachments.
my $hasText = true; # Boolean | If true, only include blog posts that are text-only. Text-only posts are ones without any attachments, such as video, audio, picture, and gallery.
This filter and `hasVideo`, `hasAudio`, and `hasPicture` should be mutually exclusive. That is, if `hasText` is true then the other three should all be false. Conversely, if any of the other three are true, then `hasText` should be false. Otherwise, the filter would produce no results.
my $sort = sort_example; # String | `DESC` = Newest First. `ASC` = Oldest First.
my $fromDuration = 56; # Integer | Include video posts where the duration of the video is at minimum `fromDuration` seconds long. Usually in multiples of 60 seconds. Implies `hasVideo=true`.
my $toDuration = 56; # Integer | Include video posts where the duration of the video is at maximum `toDuration` seconds long. Usually in multiples of 60 seconds. Implies `hasVideo=true`.
my $fromDate = 2022-07-24T07:00:00.001Z; # Date | Include posts where the publication date is on or after this filter date.
my $toDate = 2022-07-24T07:00:00.001Z; # Date | Include posts where the publication date is on or before this filter date.
eval {
my $result = $api_instance->getCreatorBlogPosts(id => $id, channel => $channel, limit => $limit, fetchAfter => $fetchAfter, search => $search, tags => $tags, hasVideo => $hasVideo, hasAudio => $hasAudio, hasPicture => $hasPicture, hasText => $hasText, sort => $sort, fromDuration => $fromDuration, toDuration => $toDuration, fromDate => $fromDate, toDate => $toDate);
print Dumper($result);
};
if ($@) {
warn "Exception when calling ContentV3Api->getCreatorBlogPosts: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: CookieAuth
openapi_client.configuration.api_key['sails.sid'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['sails.sid'] = 'Bearer'
# Create an instance of the API class
api_instance = openapi_client.ContentV3Api()
id = id_example # String | The GUID of the creator to retrieve posts from. (default to null)
channel = channel_example # String | The id of a creator's specific channel from which to retrieve posts. (optional) (default to null)
limit = 56 # Integer | The maximum number of posts to return. (optional) (default to null)
fetchAfter = 56 # Integer | The number of posts to skip. Usually a multiple of `limit`, to get the next "page" of results. (optional) (default to null)
search = search_example # String | Search filter to look for specific posts. (optional) (default to null)
tags = # array[String] | An array of tags to search against, possibly in addition to `search`. (optional) (default to null)
hasVideo = true # Boolean | If true, include blog posts with video attachments. (optional) (default to null)
hasAudio = true # Boolean | If true, include blog posts with audio attachments. (optional) (default to null)
hasPicture = true # Boolean | If true, include blog posts with picture attachments. (optional) (default to null)
hasText = true # Boolean | If true, only include blog posts that are text-only. Text-only posts are ones without any attachments, such as video, audio, picture, and gallery.
This filter and `hasVideo`, `hasAudio`, and `hasPicture` should be mutually exclusive. That is, if `hasText` is true then the other three should all be false. Conversely, if any of the other three are true, then `hasText` should be false. Otherwise, the filter would produce no results. (optional) (default to null)
sort = sort_example # String | `DESC` = Newest First. `ASC` = Oldest First. (optional) (default to null)
fromDuration = 56 # Integer | Include video posts where the duration of the video is at minimum `fromDuration` seconds long. Usually in multiples of 60 seconds. Implies `hasVideo=true`. (optional) (default to null)
toDuration = 56 # Integer | Include video posts where the duration of the video is at maximum `toDuration` seconds long. Usually in multiples of 60 seconds. Implies `hasVideo=true`. (optional) (default to null)
fromDate = 2022-07-24T07:00:00.001Z # Date | Include posts where the publication date is on or after this filter date. (optional) (default to null)
toDate = 2022-07-24T07:00:00.001Z # Date | Include posts where the publication date is on or before this filter date. (optional) (default to null)
try:
# Get Creator Blog Posts
api_response = api_instance.get_creator_blog_posts(id, channel=channel, limit=limit, fetchAfter=fetchAfter, search=search, tags=tags, hasVideo=hasVideo, hasAudio=hasAudio, hasPicture=hasPicture, hasText=hasText, sort=sort, fromDuration=fromDuration, toDuration=toDuration, fromDate=fromDate, toDate=toDate)
pprint(api_response)
except ApiException as e:
print("Exception when calling ContentV3Api->getCreatorBlogPosts: %s\n" % e)
extern crate ContentV3Api;
pub fn main() {
let id = id_example; // String
let channel = channel_example; // String
let limit = 56; // Integer
let fetchAfter = 56; // Integer
let search = search_example; // String
let tags = ; // array[String]
let hasVideo = true; // Boolean
let hasAudio = true; // Boolean
let hasPicture = true; // Boolean
let hasText = true; // Boolean
let sort = sort_example; // String
let fromDuration = 56; // Integer
let toDuration = 56; // Integer
let fromDate = 2022-07-24T07:00:00.001Z; // Date
let toDate = 2022-07-24T07:00:00.001Z; // Date
let mut context = ContentV3Api::Context::default();
let result = client.getCreatorBlogPosts(id, channel, limit, fetchAfter, search, tags, hasVideo, hasAudio, hasPicture, hasText, sort, fromDuration, toDuration, fromDate, toDate, &context).wait();
println!("{:?}", result);
}