Start here
Read a profile
/v1/community/profiles/{handle}on https://api.auray.ai/v1A public profile: what its creator chose to show, its counts, and the reader's follow.
A public profile: what its creator chose to show, its counts, and the reader's follow. A handle its creator replaced within the hold answers the profile it leads to, with moved_from naming the handle asked for and handle the one it is now. 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.
#Authentication
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.
#Request
#Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
handle | string | yes | A profile's handle; one @ before it is read past. |
#Example request
curl https://api.auray.ai/v1/community/profiles/adaimport { createClient } from "@auray/client";
const auray = createClient(); // this route needs no key
const answer = await auray.platform.community.profiles.get("ada");
console.dir(answer, { depth: null });from auray_client import Client
auray = Client() # this route needs no key
answer = auray.platform.community.profiles.get("ada")
print(answer)const res = await fetch("https://api.auray.ai/v1/community/profiles/ada", {
method: "GET",
});
console.log(await res.json());import requests
r = requests.get(
"https://api.auray.ai/v1/community/profiles/ada",
)
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/profiles/ada", 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/profiles/ada");
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/profiles/ada")
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/profiles/ada"))
.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/profiles/ada");
using var response = await client.SendAsync(request);
Console.WriteLine($"{(int)response.StatusCode} {await response.Content.ReadAsStringAsync()}");#Responses
#200 OK
OK.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
object | string | yes | — | One of "profile". |
id | string | yes | — | The profile's public id. |
handle | string | yes | — | |
name | string | yes | — | May be null. |
headline | string | yes | — | May be null. |
bio | string | yes | — | May be null. |
links | object[] | yes | — | |
links[].kind | string | yes | — | One of "website", "x", "instagram", "tiktok", "youtube", "linkedin", "github", "behance", "dribbble", "artstation", "vimeo", "threads", "bluesky". |
links[].url | string | yes | — | https, at the host its kind names; a website anywhere. A URL. |
avatar_url | string | yes | — | A URL. May be null. |
banner_url | string | yes | — | A URL. May be null. |
team | boolean | yes | — | |
joined_at | string | yes | — | |
counts | object | yes | — | |
counts.followers | integer | no | — | |
counts.following | integer | no | — | |
counts.works | integer | no | — | |
counts.likes | integer | no | — | Likes on its works. |
counts.views | integer | no | — | Views of its works. |
viewer | object | yes | — | |
viewer.self | boolean | no | — | The reader's own profile. |
viewer.following | boolean | no | — | May be null. |
url | string | yes | — | A URL. |
mine | object | no | — | Only on the reader's own profile. |
mine.moderation | string | no | — | hidden when our team hid the profile; its works leave every place while it is. One of "visible", "hidden". |
mine.moderation_note | string | no | — | May be null. |
mine.handle_change_after | string | no | — | When the handle can change again. May be null. |
moved_from | string | no | — | The handle that was asked for, when its creator replaced it within the hold: link to handle instead. |
request_id | string | no | — | Mirrored in the X-Request-Id header. On an answer without a key it names the request that filled the edge's copy, so readers served from that copy are handed the same one. |
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 |
#404 Not Found
#429 Too Many Requests
#503 Service Unavailable
#Status codes
| Status | Meaning |
|---|---|
200 | OK. |
404 | Not Found |
429 | Too Many Requests |
503 | Service Unavailable |
Every refusal names its code, and every code is explained at Errors.