Skip to main content
GET
/
api
/
v1
/
feeds
/
user
/
{userId}
Get user feed posts
curl --request GET \
  --url https://public-api.etoro.com/api/v1/feeds/user/{userId} \
  --header 'x-api-key: <x-api-key>' \
  --header 'x-request-id: <x-request-id>' \
  --header 'x-user-key: <x-user-key>'
{
  "discussions": [
    {
      "id": "<string>",
      "post": {
        "id": "<string>",
        "owner": {
          "id": "<string>",
          "username": "<string>",
          "firstName": "<string>",
          "lastName": "<string>",
          "avatar": {
            "small": "<string>",
            "medium": "<string>",
            "large": "<string>"
          },
          "roles": [
            "<string>"
          ],
          "isBlocked": true,
          "isPrivate": true,
          "countryCode": 123,
          "piLevel": 123
        },
        "message": {
          "text": "<string>",
          "languageCode": "<string>"
        },
        "created": "2023-11-07T05:31:56Z",
        "updated": "2023-11-07T05:31:56Z",
        "type": "<string>",
        "attachments": [
          {}
        ],
        "tags": [
          {
            "market": {
              "id": "<string>",
              "symbolName": "<string>",
              "displayName": "<string>",
              "updated": "<string>",
              "assetType": "<string>",
              "internalId": 123,
              "avatar": {},
              "application": "<string>",
              "metadata": "<string>"
            }
          }
        ]
      },
      "commentsData": {
        "reactionPaging": {
          "totalCount": 123
        },
        "comments": [
          {
            "entity": {
              "message": {
                "text": "<string>",
                "languageCode": "<string>"
              },
              "id": "<string>",
              "owner": {
                "id": "<string>",
                "username": "<string>",
                "firstName": "<string>",
                "lastName": "<string>",
                "avatar": {
                  "small": "<string>",
                  "medium": "<string>",
                  "large": "<string>"
                },
                "roles": [
                  "<string>"
                ],
                "isBlocked": true,
                "isPrivate": true,
                "countryCode": 123,
                "piLevel": 123
              },
              "created": "2023-11-07T05:31:56Z"
            },
            "repliesCount": 123,
            "emotionsData": {},
            "requesterContext": {}
          }
        ]
      },
      "emotionsData": {},
      "requesterContext": {},
      "summary": {
        "totalCommentsAndReplies": 123,
        "sharedCount": 123
      }
    }
  ],
  "paging": {
    "next": "<string>",
    "offSet": 123,
    "take": 123,
    "version": "<string>"
  },
  "metadata": {
    "experimentName": "<string>",
    "streamType": "<string>",
    "designatedStreamType": "<string>"
  }
}

Headers

x-request-id
string<uuid>
required

A unique request identifier.

Example:

"9f3b5695-88c3-4f82-ae20-6f007b7357f8"

x-api-key
string<password>
required

API key for authentication.

Example:

"lhgfaslk21490FAScVPkdsb53F9dNkfHG4faZSG5vfjndfcfgdssdgsdHF4663"

x-user-key
string<password>
required

User-specific authentication key.

Example:

"eyJlYW4iOiJVbnJlZ2lzdGVyZWRBcHBsaWNhdGlvbiIsImVrIjoiOE5sZ2cwcW5EUVdROUFNWGpXT2lmOWktZnpidG5KcUlqWGJ3WHJZZkpZcldrbG90ZEhvLVBjSWhQaU8xU1ZtMW84aU1WZGZqN2xWNzFjLXFxLmcybXE1dnh4Q1hUT25xaWRUaTFlcEhmVk1fIn0_"

Path Parameters

userId
string
required

ID of the user whose feed posts should be retrieved

Query Parameters

requesterUserId
string

ID of the user making the request. Used for personalization and permission checks.

take
integer<int32>
default:20

Number of feed posts to retrieve. Used for pagination.

Required range: 1 <= x <= 100
badgesExperimentIsEnabled
boolean
default:false

Flag indicating whether to include user badges in the response. Part of badges feature experiment.

offset
integer<int32>
default:0

Number of feed posts to skip. Used for pagination in combination with take parameter.

Required range: x >= 0
reactionsPageSize
integer<int32>
default:10

Number of reactions to include per post. Controls the pagination of post reactions.

Required range: 1 <= x <= 50

Response

200 - application/json

Successfully retrieved user feed posts

discussions
object[]
paging
object
metadata
object