# 2s.io Wikidata Entity Lookup

> 2s.io Wikidata Entity Lookup is a paid API for AI agents from 2s.io, paid per call via x402, $0.0012/call, status unknown (last checked 2026-09-15).

Fetch a structured Wikidata knowledge-graph entity by ID (Q, P, M, L, S) with labels, descriptions, aliases, claims, and sitelinks in selectable languages

## Facts

- Endpoint: GET https://2s.io/api/wikidata/entity
- Price: $0.0012/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/2s-io-15502a48
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_sjs0HrO7eCSvRV8e2gjkg

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 2s-io-15502a48
```

Example prompt: Pull the Wikidata entity for Douglas Adams — that's Q42 — and include labels, descriptions, and claims in English and French, capping at 5 statements per property.

## When to prefer this

Use this endpoint when you need structured, machine-readable knowledge graph data for a specific Wikidata entity by its known ID. Ideal for enriching records with factual properties, cross-language labels, or Wikipedia article links. Prefer this over a search endpoint when you already have the Wikidata entity ID. Best for agents that need open, CC0-licensed structured facts about people, places, concepts, or properties.

## Known failure modes

- Entity ID not found — returns 404 or empty result for invalid or nonexistent Q/P/M/L/S IDs
- Invalid language code — may return empty language strings or an error
- maxClaimsPerProperty out of range (must be 1–50) — validation error
- Missing required 'id' parameter — 400 bad request
- Rate limiting or payment failure — 402 Payment Required if x402 microtransaction is not completed
- Very large entities (e.g. Q5 = human) may return truncated claim sets even with maxClaimsPerProperty set

## How this service works

Fetch a Wikidata entity (Q42, P31, etc.) — structured knowledge-graph record with labels + descriptions + aliases in selectable languages, claims (property → value statements grouped by property ID), sitelinks (Wikipedia article title per language). 110M+ entities. CC0 public domain. Pass languages= as comma-separated codes (default "en") to control which language strings are included; pass maxClaimsPerProperty to cap how many statements come back per property (default 10).

## Output

A structured Wikidata entity record containing: multilingual labels, descriptions, and aliases; claims grouped by property ID (e.g. P31 = instance of) with up to maxClaimsPerProperty statements each; and sitelinks mapping language codes to Wikipedia article titles. All data is CC0 public domain.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "id": "Q42",
   "languages": "en,fr",
   "includeClaims": true,
   "maxClaimsPerProperty": 5
  }
 }
}
```

## 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",
    "queryParams"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "const": "GET"
    },
    "queryParams": {
     "required": [
      "id"
     ],
     "properties": {
      "id": {
       "type": "string",
       "description": "Wikidata entity ID (Q42, P31, M..., L..., S...)."
      },
      "languages": {
       "type": "string",
       "description": "Comma-separated language codes (default \"en\")."
      },
      "includeClaims": {
       "type": "boolean",
       "description": "Whether to return claims/statements. Default true."
      },
      "maxClaimsPerProperty": {
       "type": "integer",
       "default": 10,
       "maximum": 50,
       "minimum": 1
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/2s-io-15502a48/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 2s.io](https://www.zero.xyz/host/2s.io/llms.txt)
