/mastodon/accounts/statuses
curl --request POST \
--url https://api.anysite.io/api/mastodon/accounts/statuses \
--header 'Content-Type: application/json' \
--header 'access-token: <api-key>' \
--data '
{
"account": "<string>",
"count": 2,
"timeout": 300,
"instance": "mastodon.social",
"exclude_replies": false,
"exclude_reblogs": false,
"only_media": false,
"pinned": false,
"tagged": "<string>"
}
'import requests
url = "https://api.anysite.io/api/mastodon/accounts/statuses"
payload = {
"account": "<string>",
"count": 2,
"timeout": 300,
"instance": "mastodon.social",
"exclude_replies": False,
"exclude_reblogs": False,
"only_media": False,
"pinned": False,
"tagged": "<string>"
}
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({
account: '<string>',
count: 2,
timeout: 300,
instance: 'mastodon.social',
exclude_replies: false,
exclude_reblogs: false,
only_media: false,
pinned: false,
tagged: '<string>'
})
};
fetch('https://api.anysite.io/api/mastodon/accounts/statuses', 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/mastodon/accounts/statuses",
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([
'account' => '<string>',
'count' => 2,
'timeout' => 300,
'instance' => 'mastodon.social',
'exclude_replies' => false,
'exclude_reblogs' => false,
'only_media' => false,
'pinned' => false,
'tagged' => '<string>'
]),
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/mastodon/accounts/statuses"
payload := strings.NewReader("{\n \"account\": \"<string>\",\n \"count\": 2,\n \"timeout\": 300,\n \"instance\": \"mastodon.social\",\n \"exclude_replies\": false,\n \"exclude_reblogs\": false,\n \"only_media\": false,\n \"pinned\": false,\n \"tagged\": \"<string>\"\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/mastodon/accounts/statuses")
.header("access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"account\": \"<string>\",\n \"count\": 2,\n \"timeout\": 300,\n \"instance\": \"mastodon.social\",\n \"exclude_replies\": false,\n \"exclude_reblogs\": false,\n \"only_media\": false,\n \"pinned\": false,\n \"tagged\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.anysite.io/api/mastodon/accounts/statuses")
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 \"account\": \"<string>\",\n \"count\": 2,\n \"timeout\": 300,\n \"instance\": \"mastodon.social\",\n \"exclude_replies\": false,\n \"exclude_reblogs\": false,\n \"only_media\": false,\n \"pinned\": false,\n \"tagged\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body[
{
"id": "<string>",
"@type": "MastodonStatus",
"created_at": "<string>",
"edited_at": "<string>",
"in_reply_to_id": "<string>",
"in_reply_to_account_id": "<string>",
"text": "<string>",
"spoiler_text": "<string>",
"is_sensitive": false,
"visibility": "<string>",
"language": "<string>",
"uri": "<string>",
"url": "<string>",
"reply_count": 123,
"reblog_count": 123,
"favourite_count": 123,
"quote_count": 123,
"account": {
"id": "<string>",
"@type": "MastodonAccount",
"username": "<string>",
"acct": "<string>",
"display_name": "<string>",
"note": "<string>",
"url": "<string>",
"uri": "<string>",
"image": "<string>",
"avatar_static": "<string>",
"avatar_description": "<string>",
"header": "<string>",
"header_static": "<string>",
"header_description": "<string>",
"created_at": "<string>",
"last_status_at": "<string>",
"follower_count": 123,
"following_count": 123,
"status_count": 123,
"is_locked": false,
"is_bot": false,
"is_group": false,
"is_discoverable": false,
"is_indexable": false,
"noindex": false,
"hide_collections": false,
"fields": [],
"emojis": [],
"roles": []
},
"reblog": null,
"quote": null,
"application": {
"@type": "MastodonApplication",
"name": "<string>",
"website": "<string>"
},
"card": {
"@type": "MastodonPreviewCard",
"url": "<string>",
"language": "<string>",
"type": "<string>",
"author_name": "<string>",
"author_url": "<string>",
"provider_name": "<string>",
"provider_url": "<string>",
"html": "<string>",
"width": 123,
"height": 123,
"image": "<string>",
"image_description": "<string>",
"embed_url": "<string>",
"blurhash": "<string>",
"published_at": "<string>",
"history": []
},
"poll": {
"@type": "MastodonPoll",
"id": "<string>",
"expires_at": "<string>",
"expired": false,
"multiple": false,
"vote_count": 123,
"voter_count": 123,
"options": [],
"emojis": []
},
"media_attachments": [],
"mentions": [],
"tags": [],
"emojis": []
}
]{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}/mastodon
/mastodon/accounts/statuses
Get Mastodon Account Statuses
Price: 10 credits per 40 results
⚠️ Common errors: 412: Account not found. Verify the handle, URL, or id and instance.
POST
/
api
/
mastodon
/
accounts
/
statuses
/mastodon/accounts/statuses
curl --request POST \
--url https://api.anysite.io/api/mastodon/accounts/statuses \
--header 'Content-Type: application/json' \
--header 'access-token: <api-key>' \
--data '
{
"account": "<string>",
"count": 2,
"timeout": 300,
"instance": "mastodon.social",
"exclude_replies": false,
"exclude_reblogs": false,
"only_media": false,
"pinned": false,
"tagged": "<string>"
}
'import requests
url = "https://api.anysite.io/api/mastodon/accounts/statuses"
payload = {
"account": "<string>",
"count": 2,
"timeout": 300,
"instance": "mastodon.social",
"exclude_replies": False,
"exclude_reblogs": False,
"only_media": False,
"pinned": False,
"tagged": "<string>"
}
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({
account: '<string>',
count: 2,
timeout: 300,
instance: 'mastodon.social',
exclude_replies: false,
exclude_reblogs: false,
only_media: false,
pinned: false,
tagged: '<string>'
})
};
fetch('https://api.anysite.io/api/mastodon/accounts/statuses', 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/mastodon/accounts/statuses",
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([
'account' => '<string>',
'count' => 2,
'timeout' => 300,
'instance' => 'mastodon.social',
'exclude_replies' => false,
'exclude_reblogs' => false,
'only_media' => false,
'pinned' => false,
'tagged' => '<string>'
]),
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/mastodon/accounts/statuses"
payload := strings.NewReader("{\n \"account\": \"<string>\",\n \"count\": 2,\n \"timeout\": 300,\n \"instance\": \"mastodon.social\",\n \"exclude_replies\": false,\n \"exclude_reblogs\": false,\n \"only_media\": false,\n \"pinned\": false,\n \"tagged\": \"<string>\"\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/mastodon/accounts/statuses")
.header("access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"account\": \"<string>\",\n \"count\": 2,\n \"timeout\": 300,\n \"instance\": \"mastodon.social\",\n \"exclude_replies\": false,\n \"exclude_reblogs\": false,\n \"only_media\": false,\n \"pinned\": false,\n \"tagged\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.anysite.io/api/mastodon/accounts/statuses")
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 \"account\": \"<string>\",\n \"count\": 2,\n \"timeout\": 300,\n \"instance\": \"mastodon.social\",\n \"exclude_replies\": false,\n \"exclude_reblogs\": false,\n \"only_media\": false,\n \"pinned\": false,\n \"tagged\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body[
{
"id": "<string>",
"@type": "MastodonStatus",
"created_at": "<string>",
"edited_at": "<string>",
"in_reply_to_id": "<string>",
"in_reply_to_account_id": "<string>",
"text": "<string>",
"spoiler_text": "<string>",
"is_sensitive": false,
"visibility": "<string>",
"language": "<string>",
"uri": "<string>",
"url": "<string>",
"reply_count": 123,
"reblog_count": 123,
"favourite_count": 123,
"quote_count": 123,
"account": {
"id": "<string>",
"@type": "MastodonAccount",
"username": "<string>",
"acct": "<string>",
"display_name": "<string>",
"note": "<string>",
"url": "<string>",
"uri": "<string>",
"image": "<string>",
"avatar_static": "<string>",
"avatar_description": "<string>",
"header": "<string>",
"header_static": "<string>",
"header_description": "<string>",
"created_at": "<string>",
"last_status_at": "<string>",
"follower_count": 123,
"following_count": 123,
"status_count": 123,
"is_locked": false,
"is_bot": false,
"is_group": false,
"is_discoverable": false,
"is_indexable": false,
"noindex": false,
"hide_collections": false,
"fields": [],
"emojis": [],
"roles": []
},
"reblog": null,
"quote": null,
"application": {
"@type": "MastodonApplication",
"name": "<string>",
"website": "<string>"
},
"card": {
"@type": "MastodonPreviewCard",
"url": "<string>",
"language": "<string>",
"type": "<string>",
"author_name": "<string>",
"author_url": "<string>",
"provider_name": "<string>",
"provider_url": "<string>",
"html": "<string>",
"width": 123,
"height": 123,
"image": "<string>",
"image_description": "<string>",
"embed_url": "<string>",
"blurhash": "<string>",
"published_at": "<string>",
"history": []
},
"poll": {
"@type": "MastodonPoll",
"id": "<string>",
"expires_at": "<string>",
"expired": false,
"multiple": false,
"vote_count": 123,
"voter_count": 123,
"options": [],
"emojis": []
},
"media_attachments": [],
"mentions": [],
"tags": [],
"emojis": []
}
]{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Authorizations
API token from the dashboard
Headers
Body
application/json
Minimum string length:
1Required range:
x >= 1Required range:
20 <= x <= 1500Response
Successful Response
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
⌘I