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

# POST /sparql

`POST /sparql`

## 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
- `415` — Unsupported Media Type - Unsupported 'Content-Type' 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` — 3 info
  - added the non-success response with the status `406`
  - 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/post.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)
