Read a feed
A page of a public feed — trending (what happened to a work in seven days, against its age), new, top over a window, or the reader's own following — or, with featured, the shelf our team featured.
curl https://api.auray.ai/v1/community/feedimport { createClient } from "@auray/client";
const auray = createClient(); // this route needs no key
const answer = await auray.platform.community.feed();
console.dir(answer, { depth: null });from auray_client import Client
auray = Client() # this route needs no key
answer = auray.platform.community.feed()
print(answer)const res = await fetch("https://api.auray.ai/v1/community/feed", {
method: "GET",
});
console.log(await res.json());import requests
r = requests.get(
"https://api.auray.ai/v1/community/feed",
)
r.raise_for_status()
print(r.json())package main
import (
"fmt"
"io"
"net/http"
)
func main() {
req, err := http.NewRequest("GET", "https://api.auray.ai/v1/community/feed", nil)
if err != nil {
panic(err)
}
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
out, _ := io.ReadAll(res.Body)
fmt.Println(res.Status, string(out))
}<?php
$ch = curl_init("https://api.auray.ai/v1/community/feed");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_RETURNTRANSFER => true,
]);
$response = curl_exec($ch);
echo curl_getinfo($ch, CURLINFO_HTTP_CODE), " ", $response, PHP_EOL;require "net/http"
uri = URI("https://api.auray.ai/v1/community/feed")
req = Net::HTTP::Get.new(uri)
res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(req) }
puts res.code, res.bodyimport java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class Main {
public static void main(String[] args) throws Exception {
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://api.auray.ai/v1/community/feed"))
.GET()
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.statusCode() + " " + response.body());
}
}using var client = new HttpClient();
using var request = new HttpRequestMessage(HttpMethod.Get, "https://api.auray.ai/v1/community/feed");
using var response = await client.SendAsync(request);
Console.WriteLine($"{(int)response.StatusCode} {await response.Content.ReadAsStringAsync()}");{
"object": "<string>",
"sort": "<string>",
"pinned": [
{
"id": "<string>",
"kind": "<string>",
"title": "<string>",
"model": {
"address": "<string>",
"id": "<string>",
"label": "<string>"
},
"attribution": "<string>",
"ai_generated": true,
"media": [
{
"role": "<string>",
"position": 123,
"url": "<string>",
"content_type": "<string>",
"width": 123,
"height": 123,
"duration_ms": 123,
"supplied": true
}
],
"author": {},
"counts": {
"likes": 123,
"views": 123,
"comments": 123,
"remixes": 123
},
"made_at": "<string>",
"published_at": "<string>",
"featured": true,
"pinned": true,
"original": true,
"remixed": true,
"liked": true,
"url": "<string>",
"project": {
"slug": "<string>",
"category": "<string>",
"items": 123,
"stack": [
{
"model": {},
"tenths": 123,
"percent": 123,
"count": 123,
"color": "<string>",
"other": true
}
],
"ai_generated": true
}
}
],
"data": [
{
"id": "<string>",
"kind": "<string>",
"title": "<string>",
"model": {
"address": "<string>",
"id": "<string>",
"label": "<string>"
},
"attribution": "<string>",
"ai_generated": true,
"media": [
{
"role": "<string>",
"position": 123,
"url": "<string>",
"content_type": "<string>",
"width": 123,
"height": 123,
"duration_ms": 123,
"supplied": true
}
],
"author": {},
"counts": {
"likes": 123,
"views": 123,
"comments": 123,
"remixes": 123
},
"made_at": "<string>",
"published_at": "<string>",
"featured": true,
"pinned": true,
"original": true,
"remixed": true,
"liked": true,
"url": "<string>",
"project": {
"slug": "<string>",
"category": "<string>",
"items": 123,
"stack": [
{
"model": {},
"tenths": 123,
"percent": 123,
"count": 123,
"color": "<string>",
"other": true
}
],
"ai_generated": true
}
}
],
"next_cursor": "<string>",
"request_id": "<string>"
}{
"error": "<string>",
"message": "<string>",
"docs": "<string>",
"request_id": "<string>"
}{
"error": "<string>",
"message": "<string>",
"docs": "<string>",
"request_id": "<string>"
}{
"error": "<string>",
"message": "<string>",
"docs": "<string>",
"request_id": "<string>"
}{
"error": "<string>",
"message": "<string>",
"docs": "<string>",
"request_id": "<string>"
}{
"error": "<string>",
"message": "<string>",
"docs": "<string>",
"request_id": "<string>"
}A page of a public feed — trending (what happened to a work in seven days, against its age), new, top over a window, or the reader's own following — or, with featured, the shelf our team featured. Only works published, approved by our team and discoverable by their author are in a public feed; following is the discoverable works of the profiles the reader follows that our team did not decline. Our team's pins come first, in pinned, on a public feed's first page only. Takes no key. A key that holds community:write reads as its account — its likes and follows filled in — and any other key reads what a stranger reads; either way a request with a key is answered for itself alone and kept in no shared cache. An answer without a key is the same for every reader, its request_id included — which names the request that filled the edge's copy — and carries no RateLimit-* headers, since they would describe that request's sender. Cached at the edge for thirty seconds with two minutes of stale service. While our team has paused the feeds it answers 503 feeds_paused, with our sentence for the pause when we wrote one; a work at its own link and its author's profile still answer.
Authorizations
No key needed. A key that holds community:write is read as its account — its likes and follows filled in — and is answered private, no-store. Paced per address, and cached at the edge for thirty seconds.
Query Parameters
following needs a key that holds community:write. One of "trending", "new", "top", "following"."image", "video", "audio", "model3d", "project".address or its id, as GET /v1/models lists them. Either finds the same works; case does not matter. 0 to 200 characters.top counts over. One of "day", "week", "month", "year", "all".sort says.next_cursor the previous page answered, unchanged, with the same filters. None for the first page. 0 to 200 characters.OK. One page, and the cursor of the next.
"list"."trending", "new", "top", "following", "featured".Show child attributes
"image", "video", "audio", "model3d", "project".Show child attributes
GET /v1/models lists it: the path a job is submitted to, such as auray-ai/krea-2-turbo/text-to-image. May be null.GET /v1/models lists it: the catalogue slug, such as krea2. May be null.true.Show child attributes
primary is the work as it was made; the rest are what the feeds draw: an image's thumbnail, a video's or a model's poster and thumbnail, a song's waveform (JSON: {version, peaks}). One of "primary", "poster", "preview", "thumbnail", "waveform".ai_generated does not describe it.Show child attributes
community:write was sent. May be null.Show child attributes
"film", "short", "series", "trailer", "commercial", "music_video", "animation", "documentary", "fashion", "game", "worldbuilding", "experimental", "other".Show child attributes
tenths / 10, for display only.stack and ai_generated: true.Show child attributes
"image", "video", "audio", "model3d", "project".Show child attributes
GET /v1/models lists it: the path a job is submitted to, such as auray-ai/krea-2-turbo/text-to-image. May be null.GET /v1/models lists it: the catalogue slug, such as krea2. May be null.true.Show child attributes
primary is the work as it was made; the rest are what the feeds draw: an image's thumbnail, a video's or a model's poster and thumbnail, a song's waveform (JSON: {version, peaks}). One of "primary", "poster", "preview", "thumbnail", "waveform".ai_generated does not describe it.Show child attributes
community:write was sent. May be null.Show child attributes
"film", "short", "series", "trailer", "commercial", "music_video", "animation", "documentary", "fashion", "game", "worldbuilding", "experimental", "other".Show child attributes
tenths / 10, for display only.stack and ai_generated: true.Headers:
| Header | Description |
|---|---|
Cache-Control | public, s-maxage=30, stale-while-revalidate=120 with no key; private, no-store with one. |
Vary | Authorization. |
RateLimit-Limit | Burst capacity, per key, on an answer to a key. An answer without one is cached at the edge and carries none of the RateLimit-* headers; a refusal without one, which is never cached, carries its address's. |
RateLimit-Remaining | |
RateLimit-Reset | Seconds until refill. |
X-Request-Id |
Was this page helpful?
curl https://api.auray.ai/v1/community/feedimport { createClient } from "@auray/client";
const auray = createClient(); // this route needs no key
const answer = await auray.platform.community.feed();
console.dir(answer, { depth: null });from auray_client import Client
auray = Client() # this route needs no key
answer = auray.platform.community.feed()
print(answer)const res = await fetch("https://api.auray.ai/v1/community/feed", {
method: "GET",
});
console.log(await res.json());import requests
r = requests.get(
"https://api.auray.ai/v1/community/feed",
)
r.raise_for_status()
print(r.json())package main
import (
"fmt"
"io"
"net/http"
)
func main() {
req, err := http.NewRequest("GET", "https://api.auray.ai/v1/community/feed", nil)
if err != nil {
panic(err)
}
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
out, _ := io.ReadAll(res.Body)
fmt.Println(res.Status, string(out))
}<?php
$ch = curl_init("https://api.auray.ai/v1/community/feed");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_RETURNTRANSFER => true,
]);
$response = curl_exec($ch);
echo curl_getinfo($ch, CURLINFO_HTTP_CODE), " ", $response, PHP_EOL;require "net/http"
uri = URI("https://api.auray.ai/v1/community/feed")
req = Net::HTTP::Get.new(uri)
res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(req) }
puts res.code, res.bodyimport java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class Main {
public static void main(String[] args) throws Exception {
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://api.auray.ai/v1/community/feed"))
.GET()
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.statusCode() + " " + response.body());
}
}using var client = new HttpClient();
using var request = new HttpRequestMessage(HttpMethod.Get, "https://api.auray.ai/v1/community/feed");
using var response = await client.SendAsync(request);
Console.WriteLine($"{(int)response.StatusCode} {await response.Content.ReadAsStringAsync()}");{
"object": "<string>",
"sort": "<string>",
"pinned": [
{
"id": "<string>",
"kind": "<string>",
"title": "<string>",
"model": {
"address": "<string>",
"id": "<string>",
"label": "<string>"
},
"attribution": "<string>",
"ai_generated": true,
"media": [
{
"role": "<string>",
"position": 123,
"url": "<string>",
"content_type": "<string>",
"width": 123,
"height": 123,
"duration_ms": 123,
"supplied": true
}
],
"author": {},
"counts": {
"likes": 123,
"views": 123,
"comments": 123,
"remixes": 123
},
"made_at": "<string>",
"published_at": "<string>",
"featured": true,
"pinned": true,
"original": true,
"remixed": true,
"liked": true,
"url": "<string>",
"project": {
"slug": "<string>",
"category": "<string>",
"items": 123,
"stack": [
{
"model": {},
"tenths": 123,
"percent": 123,
"count": 123,
"color": "<string>",
"other": true
}
],
"ai_generated": true
}
}
],
"data": [
{
"id": "<string>",
"kind": "<string>",
"title": "<string>",
"model": {
"address": "<string>",
"id": "<string>",
"label": "<string>"
},
"attribution": "<string>",
"ai_generated": true,
"media": [
{
"role": "<string>",
"position": 123,
"url": "<string>",
"content_type": "<string>",
"width": 123,
"height": 123,
"duration_ms": 123,
"supplied": true
}
],
"author": {},
"counts": {
"likes": 123,
"views": 123,
"comments": 123,
"remixes": 123
},
"made_at": "<string>",
"published_at": "<string>",
"featured": true,
"pinned": true,
"original": true,
"remixed": true,
"liked": true,
"url": "<string>",
"project": {
"slug": "<string>",
"category": "<string>",
"items": 123,
"stack": [
{
"model": {},
"tenths": 123,
"percent": 123,
"count": 123,
"color": "<string>",
"other": true
}
],
"ai_generated": true
}
}
],
"next_cursor": "<string>",
"request_id": "<string>"
}{
"error": "<string>",
"message": "<string>",
"docs": "<string>",
"request_id": "<string>"
}{
"error": "<string>",
"message": "<string>",
"docs": "<string>",
"request_id": "<string>"
}{
"error": "<string>",
"message": "<string>",
"docs": "<string>",
"request_id": "<string>"
}{
"error": "<string>",
"message": "<string>",
"docs": "<string>",
"request_id": "<string>"
}{
"error": "<string>",
"message": "<string>",
"docs": "<string>",
"request_id": "<string>"
}