Docs
Search⌘ K
  • Home
  • About The Graph
  • Supported Networks
  • Protocol Contracts
  • Subgraphs
    • Substreams
      • Token API
        • Hypergraph
          • AI Suite
            • Indexing
              • Graph Horizon
                • Resources
                  Token API > Polymarket User Endpoints

                  User Lookup

                  GET/v1/polymarket/users

                  Returns trading statistics per user: volume, PNL (realized, unrealized, total), trade counts, and activity window. When no user address is provided, returns a paginated leaderboard for discovery.

                  Supports lookback windows via interval: 1h, 1d, 1w, 30d. Omit for all-time. Data refreshes hourly.

                  Query Parameters

                  ParameterDescriptionValue
                  user
                  string
                    interval
                    string

                    Lookback window for user statistics (1 hour, 1 day, 1 week, 30 days). Omit for all-time.

                    • Accepted values: 1h, 1d, 1w, 30d
                    sort_by
                    string
                    • Default value: total_volume
                    • Accepted values: total_volume, realized_pnl, unrealized_pnl, total_pnl, transactions
                    total_volume
                    limit
                    integer

                    Number of items* returned in a single request.
                    *Plan restricted.

                    • Default value: 10
                    • Minimum value: 1
                    • Maximum value: 1000
                    page
                    integer

                    Page number to fetch.
                    Empty data array signifies end of results.

                    • Default value: 1
                    • Minimum value: 1
                    • Maximum value: 767465558638

                    Potential Responses

                    StatusDescription
                    200

                    Successful Response

                    400

                    Client side error

                    401

                    Authentication failed

                    403

                    Forbidden

                    404

                    Not found

                    500

                    Server side error

                    ⁠Edit on GitHub⁠

                    Platform AggregatesUser Positions
                    Test this endpoint

                    1curl --request GET \2  --url 'https://token-api.thegraph.com/v1/polymarket/users?sort_by=total_volume&limit=10&page=1' \3  --header 'Authorization: Bearer {token}'

                    1{2  "data": [3    {4      "user": "0x4ce73141dbfce41e65db3723e31059a730f0abad",5      "buys": 32168,6      "sells": 294299,7      "transactions": 326467,8      "volume_bought": 11882418.59,9      "volume_sold": 35795922.98,10      "total_volume": 47678341.57,11      "realized_pnl": 23913504.39,12      "unrealized_pnl": 12090462.43,13      "total_pnl": 36003966.82,14      "first_trade": "2024-05-30 00:00:00",15      "last_trade": "2024-11-28 00:00:00"16    }17  ]18}
                    The GraphStatusTestnetBrand AssetsForumSecurityPrivacy PolicyTerms of Service