# Wikidata P31 'Instance Of' Claims Lookup

> Wikidata P31 'Instance Of' Claims Lookup is a paid API for AI agents from clonecho.builda.company, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-14).

Returns the 'instance of' (P31) Wikidata claims for a given entity ID, describing what type of thing an entity is.

## Facts

- Endpoint: POST https://clonecho.builda.company/x402/s/wikidata-claims
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/wikidata-p31-instance-of-claims-lookup-84a35264
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_AyXIOxJGK7BhRew2ajoNy

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 wikidata-p31-instance-of-claims-lookup-84a35264 -d '<json body>'
```

Example prompt: What is Q42 classified as in Wikidata — can you fetch its 'instance of' (P31) claims so I know what type of entity it is?

## When to prefer this

Use this endpoint when you need to determine the ontological type or class of a Wikidata entity (e.g., whether it is a human, city, company, or film) using its Q-number. Prefer this over full Wikidata SPARQL queries when you only need the P31 property and want a fast, low-cost JSON response without querying the full Wikidata API.

## Known failure modes

- Invalid or malformed Q-ID returns an error or empty claims
- Entity ID does not exist in Wikidata returns empty or 404-like response
- Entity exists but has no P31 claims returns empty claims array
- Network or upstream Wikidata API timeout

## How this service works

Returns the 'instance of' (P31) Wikidata claims for a given entity id q. Query: ?q= Returns JSON.

## Output

A JSON object containing the P31 'instance of' Wikidata claims for the queried entity, listing the ontological types or classes the entity belongs to (e.g. human, city, organization).

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/wikidata-p31-instance-of-claims-lookup-84a35264/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from clonecho.builda.company](https://www.zero.xyz/host/clonecho.builda.company/llms.txt)
