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
        },
        "obsoleteId": "<string>",
        "message": {
          "text": "<string>",
          "languageCode": "<string>"
        },
        "created": "2023-11-07T05:31:56Z",
        "updated": "2023-11-07T05:31:56Z",
        "type": "<string>",
        "isDeleted": true,
        "isSpam": true,
        "editStatus": "None",
        "attachments": [
          {
            "type": "image",
            "url": "<string>",
            "thumbnailUrl": "<string>",
            "host": "<string>",
            "mediaType": "None",
            "media": {},
            "metadata": {
              "width": 123,
              "height": 123,
              "duration": 123
            }
          }
        ],
        "tags": [
          {
            "market": {
              "id": "<string>",
              "symbolName": "<string>",
              "displayName": "<string>",
              "updated": "<string>",
              "assetType": "<string>",
              "internalId": 123,
              "avatar": {
                "small": "<string>",
                "medium": "<string>",
                "large": "<string>",
                "svg": {
                  "url": "<string>",
                  "backgroundColor": "<string>",
                  "textColor": "<string>"
                }
              },
              "application": "<string>",
              "metadata": "<string>",
              "assetTypeId": 123,
              "assetTypeSubCategoryId": 123
            }
          }
        ],
        "mentions": [
          {
            "user": {
              "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
            },
            "isDirect": true
          }
        ],
        "metadata": {
          "share": {
            "sharedPost": "<string>",
            "sharedOriginPost": "<string>"
          },
          "poll": {
            "id": 123,
            "title": "<string>",
            "gcid": 123,
            "options": [
              {
                "id": 123,
                "index": 123,
                "text": "<string>",
                "isUserVoted": true,
                "votesCount": 123
              }
            ]
          }
        }
      },
      "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",
              "obsoleteId": "<string>",
              "attachments": [
                {
                  "type": "image",
                  "url": "<string>",
                  "thumbnailUrl": "<string>",
                  "host": "<string>",
                  "mediaType": "None",
                  "media": {},
                  "metadata": {
                    "width": 123,
                    "height": 123,
                    "duration": 123
                  }
                }
              ],
              "isSpam": true,
              "editStatus": "None",
              "parent": {
                "id": "<string>",
                "obsoleteId": "<string>",
                "type": "<string>"
              }
            },
            "repliesCount": 123,
            "replies": [
              {}
            ],
            "emotionsData": {
              "like": {
                "paging": {
                  "totalCount": 123
                },
                "emotions": [
                  {
                    "type": "<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
                    },
                    "obsoleteId": "<string>",
                    "parent": {
                      "id": "<string>",
                      "obsoleteId": "<string>",
                      "type": "<string>"
                    },
                    "created": "2023-11-07T05:31:56Z"
                  }
                ]
              }
            },
            "requesterContext": {
              "isFlaggingAsSpam": true,
              "isSubscribed": true,
              "isLiking": true,
              "isSaved": true,
              "isPinned": true,
              "isRequesterBlocking": true,
              "isInteractionRestricted": true,
              "isFollowing": true
            }
          }
        ]
      },
      "emotionsData": {
        "like": {
          "paging": {
            "totalCount": 123
          },
          "emotions": [
            {
              "type": "<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
              },
              "obsoleteId": "<string>",
              "parent": {
                "id": "<string>",
                "obsoleteId": "<string>",
                "type": "<string>"
              },
              "created": "2023-11-07T05:31:56Z"
            }
          ]
        }
      },
      "requesterContext": {
        "isFlaggingAsSpam": true,
        "isSubscribed": true,
        "isLiking": true,
        "isSaved": true,
        "isPinned": true,
        "isRequesterBlocking": true,
        "isInteractionRestricted": true,
        "isFollowing": true
      },
      "summary": {
        "totalCommentsAndReplies": 123,
        "sharedCount": 123
      },
      "reason": "<unknown>"
    }
  ],
  "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:

"65b2e446-c20b-4e1e-84fd-e367009c083e"

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