Skip to main content
GET
/
:projectId
/
users
/
:userId
/
following
Fetch Following
curl --request GET \
  --url https://api.replyke.com/api/v6/:projectId/users/:userId/following
import requests

url = "https://api.replyke.com/api/v6/:projectId/users/:userId/following"

response = requests.get(url)

print(response.text)
const options = {method: 'GET'};

fetch('https://api.replyke.com/api/v6/:projectId/users/:userId/following', 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/users/:userId/following",
  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/users/:userId/following"

	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/users/:userId/following")
  .asString();
require 'uri'
require 'net/http'

url = URI("https://api.replyke.com/api/v6/:projectId/users/:userId/following")

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
Get list of accounts a specific user follows. This is a public endpoint that does not require authentication.

Request

Path Parameters

ParameterTypeRequiredDescription
userIdstringYesID of the user to get following list for

Query Parameters

ParameterTypeRequiredDescription
pagenumberNoPage number (default: 1)
limitnumberNoItems per page (default: 20, max: 100)

Headers

None

Body Parameters

None

Example Request

GET /users/user-uuid-123/following?page=1&limit=20

Response

Success Response (200 OK)

{
  "following": [
    {
      "followId": "follow-uuid",
      "user": {
        "id": "user-uuid",
        "name": "John Doe",
        "username": "johndoe",
        "avatar": "https://example.com/avatar.jpg",
        "bio": "Software Engineer",
        "reputation": 150
      },
      "followedAt": "2024-01-01T12:00:00.000Z"
    }
  ],
  "pagination": {
    "currentPage": 1,
    "totalPages": 8,
    "totalCount": 156,
    "hasNextPage": true,
    "hasPreviousPage": false,
    "limit": 20
  }
}

Error Responses

Server Error (500 Internal Server Error)

{
  "error": "Internal server error",
  "code": "follow/server-error"
}

Notes

  • This endpoint does not require authentication
  • Returns paginated list of users that the specified user follows
  • Each following entry includes user details and when they were followed
  • Public endpoint accessible to all users
  • Default pagination: 20 items per page, maximum 100 items per page
  • Rate limiting: 100 requests per 5 minutes