Skip to content

Subgraph API

ENSNode exposes a Subgraph-Compatible GraphQL endpoint at /subgraph.

To explore the schema and run queries, use the GraphiQL Playground below.

Fetch data about the three most recently-created domains.

{
domains(orderBy: createdAt, orderDirection: desc, first: 3) {
name
expiryDate
}
}
{
"data": {
"domains": [
{
"name": "ensanguo.eth",
"expiryDate": "1758170255"
},
{
"name": "fiffer.eth",
"expiryDate": "2041994243"
},
{
"name": "rifaisicilia.eth",
"expiryDate": "1758170039"
}
]
}
}