---
title: "Auckland Museum SPARQL endpoint"
method: POST
path: "/sparql"
tags: ["sparql"]
---

# Auckland Museum SPARQL endpoint

`POST /sparql`

## Request

- Base URL: `https://api.aucklandmuseum.com`
- URL: `https://api.aucklandmuseum.com/sparql`
- Auth: none declared
- TypeScript: <https://skmtc.dev/aucklandmuseum/apis/auckland-museum-api/docs/sparql/post.ts> (a function with typed inputs; its response is checked against the schema)

You can execute your [SPARQL](http://www.w3.org/TR/rdf-sparql-query/) queries against this endpoint.
The sparql query should be provided as the value of the request parameter `query`.
Set the `Accept` header to `application/sparql-results+xml` to get results in XML. Set it to `application/sparql-results+json` to get results in JSON.

## Request body `application/x-www-form-urlencoded`

- object
  - `query` string, required: sparql query
  - `infer` boolean: Whether to get inferred results in the response

## Response `200`

success

---

[API](https://skmtc.dev/aucklandmuseum/apis/auckland-museum-api.md) - [All operations](https://skmtc.dev/aucklandmuseum/apis/auckland-museum-api/llms.txt) - [OpenAPI document](https://skmtc.dev/aucklandmuseum/apis/auckland-museum-api/revisions/892a068b75e7?raw)
