API EndpointsUsersFetch Following Count

Fetch Following Count

Endpoint

URL: /:projectId/users/:userId/following-count

Method: GET

Authentication Required: No


Description

This endpoint allows clients to retrieve the number of users a specific user is following within a project.


Request

URL Parameters

ParameterTypeRequiredDescription
projectIdstringYesThe project ID associated with the request.
userIdstringYesThe ID of the user whose following count is being fetched.

Headers

None

Body Parameters

None

Example Request

GET /12345/users/67890/following-count

Response

Success Response (200 OK)

{
  "count": 42
}

Error Responses

Missing or Invalid User ID (400 Bad Request)

{
  "error": "Missing or invalid userId in request query"
}

Server Error (500 Internal Server Error)

{
  "error": "Server error"
}

Notes

  • This endpoint does not require authentication.
  • The response provides only the count of users the specified user is following, not the list of users.