Documentation
Community Images

Community Images

Using the API to view the community images

/api/v1/get-community
import axios from "axios";
 
interface CommunityItem {
  prompt: string;
  size: string;
  style: string;
  perspective: string;
  robloxUserId: string;
  quality: string;
  previewUrl: string;
};
 
interface Response {
  success: boolean;
  community: CommunityItem[];
}
 
const limit = 50; // max: 100, default: 10
const response = await axios.get<Response>("/api/v1/get-community", {
  params: {
    limit
  },
  headers: {
    "x-api-key": "Bearer <your-token>"
  }
});
 
const { community } = response.data;
console.log(community);