Skip to main content

getUserLikedPosts

The getUserLikedPosts API endpoint retrieves the list of articles that a user has liked.

Endpoint

  • Route: /apiv1/getUserLikedPosts
  • Method: GET
  • Rate Limit: 10 requests per minute

Request

Parameters

  • userID: The unique identifier of the user whose liked posts are to be retrieved.

Example

GET /apiv1/getUserLikedPosts?userID=exampleUserID

Response

Success Response

  • Status Code: 200 OK

  • Body: JSON array containing the liked posts.

    {
    "liked_posts": [
    {
    "_id": "60a9c9aef9a3802f6c6c8282",
    "title": "Example Liked Article 1",
    // Other article fields
    },
    {
    "_id": "60a9c9aef9a3802f6c6c8283",
    "title": "Example Liked Article 2",
    // Other article fields
    },
    // More liked articles
    ]
    }