---
title: "Query the graph"
method: GET
path: "/api/v2/query"
tags: ["queries"]
---

# Query the graph

`GET /api/v2/query`

## Query parameters

- `lang` 'gizmo' | 'graphql' | 'mql' | 'sexp', required
- `qu` string, required

## Response `200`

query succesful

- QueryResult
  - `result` object[], nullable

## Other responses

- `default` — Unexpected error

## Changes

- **2020-01-03** `b6cb6f6f023b` — 1 breaking, 2 info
  - the response's body type/format changed from ``/`` to `object`/`` for status `200`
  - removed `subschema #1, subschema #2` from the response body `oneOf` list for the response status `200`
  - added the optional property `result` to the response with the `200` status
- **2019-06-28** `67ca0c3823be` — 2 breaking, 1 info
  - added the new required `query` request parameter `qu`
  - removed the request body
  - api operation id `query` removed and replaced with `query-get`
- **2017-12-24** `b304c7dda6b2` — 1 info
  - api operation id `readQuads` removed and replaced with `query`
- **2017-09-01** `b493865d180c` — 3 breaking, 2 warning, 1 info
  - added required request body
  - added `subschema #1, subschema #2` to the response body `oneOf` list for the response status `200`
  - the response's body type/format changed from `object`/`` to ``/`` for status `200`
  - deleted the `query` request parameter `qu`
  - …2 more

[Change history](https://skmtc.dev/cayleygraph/apis/cayley-api/changes/api/v2/query/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)
