# DYOR Network SPARQL Query API

> DYOR Network SPARQL Query API is a paid API for AI agents from api.dyor.network, paid per call via x402, $0.1/call, status unknown (last checked 2026-09-13).

Executes SPARQL SELECT queries against a crypto knowledge graph RDF triple store, returning structured results for entities, relationships, and properties in the crypto domain

## Facts

- Endpoint: GET https://api.dyor.network/api/sparql
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/dyor-network-sparql-query-api-14962fd0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3I-8-6dOkNORFY1gatOZG

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability dyor-network-sparql-query-api-14962fd0
```

Example prompt: Run a SPARQL query against the DYOR crypto knowledge graph to find all tokens associated with Uniswap — something like SELECT ?token WHERE { ?token <relatedProtocol> <Uniswap> }

## When to prefer this

Use this endpoint when you need to traverse relationships and graph structure in the crypto knowledge graph using full SPARQL expressiveness — especially for multi-hop entity relationships, class membership queries, or pattern matching across RDF triples. Prefer over semantic search when you need precise, structured graph traversal rather than similarity-based retrieval, and over the time-series SQL endpoint when your query is about entity relationships rather than metric history.

## Known failure modes

- Malformed SPARQL syntax returns an error status with parse details
- Query references unknown predicates or classes not in the crypto knowledge graph ontology returning empty results
- Missing required 'query' parameter returns a 400-level error
- Query too broad or complex may timeout or return truncated results
- Payment failure (x402) if USDC balance insufficient

## How this service works

SPARQL query via GET — pass ?query=... parameter | ZWING Intelligence (https://zwing.finance) — contact: v@zwing.finance, Telegram: @valery_zzz

## Output

A JSON object containing: 'status' (success/error), 'variables' (array of SPARQL variable names from the SELECT clause), 'data' (array of result objects keyed by variable name), and 'count' (number of result rows returned)

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "query"
     ],
     "properties": {
      "query": {
       "type": "string",
       "description": "SPARQL SELECT query against RDF triples"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "data": {
       "type": "array",
       "items": {
        "type": "object"
       }
      },
      "count": {
       "type": "integer"
      },
      "status": {
       "type": "string"
      },
      "variables": {
       "type": "array",
       "items": {
        "type": "string"
       }
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/dyor-network-sparql-query-api-14962fd0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.dyor.network](https://www.zero.xyz/host/api.dyor.network/llms.txt)
