---
title: "GET /sparql"
method: GET
path: "/sparql"
tags: ["Query Execution"]
---

# GET /sparql

`GET /sparql`

## Query parameters

- `query` string, required

## Response `200`

Returns the query result with the specified MIME type (default: application/sparql-results+json)

## Other responses

- `400` — Bad Request - SPARQL query is missing, empty, or invalid
- `406` — Not Acceptable - Unsupported 'Accept' header
- `500` — Internal Server Error - Error during query execution
- `501` — Not Implemented - The given query uses a feature that is not supported by HeFQUIN

## Changes

- **2025-04-15** `ac0cee80c7fc` — 1 info
  - added the non-success response with the status `501`
- **2025-03-24** `f1673b986035` — 4 info
  - added the non-success response with the status `406`
  - removed the non-success response with the status `415`
  - added the optional property `head` to the response with the `200` status
  - added the optional property `results` to the response with the `200` status

[Change history](https://skmtc.dev/liusemweb/apis/hefquin-service-api/changes/sparql/get.md)

---

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