Skip to main content
POST
/
api
/
dune
/
users
/
queries
/dune/users/queries
curl --request POST \
  --url https://api.anysite.io/api/dune/users/queries \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "user": "<string>",
  "count": 2,
  "timeout": 300,
  "order": "popular"
}
'
[
  {
    "id": 123,
    "@type": "DuneQueryCard",
    "name": "<string>",
    "tags": [],
    "star_count": 123,
    "updated_at": "<string>",
    "author": {
      "@type": "DuneAuthor",
      "id": 123,
      "name": "<string>",
      "alias": "<string>",
      "image": "<string>",
      "is_team": false
    }
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
user
string
required

User handle (e.g. 'hildobby') or a dune.com/{handle} URL

Example:

"hildobby"

count
integer
required

Number of queries to return

Required range: x >= 1
timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500
order
enum<string>
default:popular

Ranking of the returned queries

Available options:
popular,
new

Response

Successful Response

id
integer
required
@type
string
default:DuneQueryCard
name
string | null
tags
string[]
star_count
integer | null
updated_at
string | null
author
object