Auckland Museum API
aucklandmuseum · Data
This is technical documentation for the Auckland Museum API
Authentication
Sample Requests
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-re
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/aucklandmuseum.com/2.0.0/sparql?infer=true&query=test&callback=callback"
import requests
params = {
"infer": "true",
"query": "test",
"callback": "callback"
}
response = requests.get(
"https://api.apis.guru/v2/specs/aucklandmuseum.com/2.0.0/sparql",
params=params,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/aucklandmuseum.com/2.0.0/sparql');
url.searchParams.set('infer', 'true');
url.searchParams.set('query', 'test');
url.searchParams.set('callback', 'callback');
const response = await fetch(url);
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/aucklandmuseum.com/2.0.0/sparql")
q := baseURL.Query()
q.Set("infer", "true")
q.Set("query", "test")
q.Set("callback", "callback")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/aucklandmuseum.com/2.0.0/sparql")
uri.query = URI.encode_www_form({
"infer" => "true",
"query" => "test",
"callback" => "callback"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/aucklandmuseum.com/2.0.0/sparql?" . http_build_query([
"infer" => "true",
"query" => "test",
"callback" => "callback"
]);
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Gets `media` at a given path
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/aucklandmuseum.com/2.0.0/id/media/{path}?rendering=example"import requests
params = {
"rendering": "example"
}
response = requests.get(
"https://api.apis.guru/v2/specs/aucklandmuseum.com/2.0.0/id/media/{path}",
params=params,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/aucklandmuseum.com/2.0.0/id/media/{path}');
url.searchParams.set('rendering', 'example');
const response = await fetch(url);
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/aucklandmuseum.com/2.0.0/id/media/{path}")
q := baseURL.Query()
q.Set("rendering", "example")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/aucklandmuseum.com/2.0.0/id/media/{path}")
uri.query = URI.encode_www_form({
"rendering" => "example"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/aucklandmuseum.com/2.0.0/id/media/{path}?" . http_build_query([
"rendering" => "example"
]);
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Gets information about a `subject` identified by the `identifier`. The response format depends upon the `Accept` header. - `text/html` - the default response type. Returned data can be easily viewed in any modern Internet Browser - `application/ld+json` - the response will be in [JSON-LD](http:
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/aucklandmuseum.com/2.0.0/id/{identifier}"import requests
response = requests.get(
"https://api.apis.guru/v2/specs/aucklandmuseum.com/2.0.0/id/{identifier}",
)
print(response.json())const url = 'https://api.apis.guru/v2/specs/aucklandmuseum.com/2.0.0/id/{identifier}';
const response = await fetch(url);
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
)
func main() {
targetURL := "https://api.apis.guru/v2/specs/aucklandmuseum.com/2.0.0/id/{identifier}"
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/aucklandmuseum.com/2.0.0/id/{identifier}")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/aucklandmuseum.com/2.0.0/id/{identifier}";
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Postman Setup Guide
- See official documentation for authentication and setup.
What can you build with Auckland Museum API?
Auckland Museum API is a Data API. Developers commonly use data APIs for:
- enriching your app with third-party datasets
- building data pipelines and ETL workflows
- querying and searching large datasets
- powering research, analysis, and reporting tools
- syncing reference data into your own systems
No authentication required. This API is open — no signup or key needed. Ideal for quick prototypes and public-facing features. Auckland Museum API is free to use, making it a low-risk choice to experiment with.
New to APIs? Read our beginner's guide