Fetch Collection Entities
curl --request GET \
--url https://api.replyke.com/api/v6/:projectId/api/v7/collections/:collectionId/entitiesimport requests
url = "https://api.replyke.com/api/v6/:projectId/api/v7/collections/:collectionId/entities"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.replyke.com/api/v6/:projectId/api/v7/collections/:collectionId/entities', 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.replyke.com/api/v6/:projectId/api/v7/collections/:collectionId/entities",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.replyke.com/api/v6/:projectId/api/v7/collections/:collectionId/entities"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.replyke.com/api/v6/:projectId/api/v7/collections/:collectionId/entities")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.replyke.com/api/v6/:projectId/api/v7/collections/:collectionId/entities")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": [
{}
],
"pagination": {
"page": 123,
"limit": 123,
"totalPages": 123,
"totalItems": 123,
"hasMore": true
}
}Collection Endpoints
Fetch Collection Entities
Get paginated entities saved in a collection
GET
/
:projectId
/
api
/
v7
/
collections
/
:collectionId
/
entities
Fetch Collection Entities
curl --request GET \
--url https://api.replyke.com/api/v6/:projectId/api/v7/collections/:collectionId/entitiesimport requests
url = "https://api.replyke.com/api/v6/:projectId/api/v7/collections/:collectionId/entities"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.replyke.com/api/v6/:projectId/api/v7/collections/:collectionId/entities', 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.replyke.com/api/v6/:projectId/api/v7/collections/:collectionId/entities",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.replyke.com/api/v6/:projectId/api/v7/collections/:collectionId/entities"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.replyke.com/api/v6/:projectId/api/v7/collections/:collectionId/entities")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.replyke.com/api/v6/:projectId/api/v7/collections/:collectionId/entities")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": [
{}
],
"pagination": {
"page": 123,
"limit": 123,
"totalPages": 123,
"totalItems": 123,
"hasMore": true
}
}Returns a paginated list of entities saved in the specified collection. The collection must belong to the authenticated user.
Path Parameters
string
required
The ID of the collection to fetch entities from.
Query Parameters
number
Page number (1-indexed). Default:
1.number
Number of entities per page. Default:
20."new" | "top" | "hot" | "added"
Sort mode.
added sorts by when the entity was saved; others sort by entity properties. Default: "new"."asc" | "desc"
Sort direction. Default:
"desc".string
Comma-separated list of associations to include:
user, space, topcomment.Response
Entity[]
The page of entity objects. Each entity includes
isSaved: true.object
Error Responses
Collection Not Found — 404
Collection Not Found — 404
{ "error": "Collection not found", "code": "collection/not-found" }
Server Error — 500
Server Error — 500
{ "error": "Internal server error.", "code": "collection/server-error" }

