---
title: "Reads all quads from the database"
method: GET
path: "/api/v2/read"
tags: ["data"]
---

# Reads all quads from the database

`GET /api/v2/read`

## Query parameters

- `format` 'nquads' | 'jsonld' | 'json' | 'json-stream' | 'pquads' | 'graphviz' | 'gml' | 'graphml'
- `sub` string
- `pred` string
- `obj` string
- `label` string
- `iri` 'short' | 'full'

## Response `200`

read successful

- object[]
  - `subject` string
  - `predicate` string
  - `object` string
  - `label` string

## Other responses

- `default` — Unexpected error

## Changes

- **2019-06-28** `41803de8c8a1` — 1 info
  - added the new optional `query` request parameter `iri`
- **2019-06-26** `df57365faf1f` — 4 info
  - added the new optional `query` request parameter `label`
  - added the new optional `query` request parameter `obj`
  - added the new optional `query` request parameter `pred`
  - added the new optional `query` request parameter `sub`
- **2017-09-01** `b493865d180c` — 5 warning
  - deleted the `query` request parameter `iri`
  - deleted the `query` request parameter `label`
  - deleted the `query` request parameter `obj`
  - deleted the `query` request parameter `pred`
  - …1 more

[Change history](https://skmtc.dev/cayleygraph/apis/cayley-api/changes/api/v2/read/get.md)

---

[API](https://skmtc.dev/cayleygraph/apis/cayley-api.md) · [All operations](https://skmtc.dev/cayleygraph/apis/cayley-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/cayleygraph/cayley-api/revisions/97aa3ff2ec7c/schema)
