The park
GET/park
Name, contact details, address, logo, colours, fonts, the cheapest ticket and who guests buy from. Start here: most pages need some of it.
- Show seller beside anything that sells tickets, and link the Ticket terms (/pages/ticket-terms).
curl "https://api.parkstack.net/site/v1/park" \
-H "Authorization: Bearer pk_live_demoRiversideParkstackSiteApiKey"const response = await fetch("https://api.parkstack.net/site/v1/park", {
headers: { Authorization: `Bearer ${process.env.PARKSTACK_SITE_KEY}` },
});
if (!response.ok) throw new Error((await response.json()).message);
const park = await response.json();{
"name": "Riverside Adventure Park",
"tagline": "Thrills on the river. Fun for every generation.",
"timezone": "Europe/London",
"currency": "GBP",
"contact": {
"email": null,
"phone": null
},
"address": {
"lines": null,
"postcode": null,
"parking": null,
"mapUrl": null
},
"social": [],
"logo": {
"url": "https://media.parkstack.net/riverside/1790686420307-78slhb.webp",
"width": 640,
"height": 640,
"alt": null,
"srcset": "https://media.parkstack.net/riverside/1790686420307-78slhb.webp?w=96 96w, https://media.parkstack.net/riverside/1790686420307-78slhb.webp?w=192 192w, https://media.parkstack.net/riverside/1790686420307-78slhb.webp?w=384 384w, https://med…"
},
"logoForDarkBackgrounds": null,
"colours": {
"main": "#0F5C4C",
"accent": "#E3B23C"
},
"fonts": [
{
"role": "Headings",
"name": "Fraunces",
"url": "https://fonts.google.com/specimen/Fraunces"
},
{
"role": "Text",
"name": "Source Sans 3",
"url": "https://fonts.google.com/specimen/Source+Sans+3"
}
],
"tickets": {
"onSaleOnline": true,
"fromPence": 2900,
"fromIncludesVat": false,
"shopUrl": "https://riverside.parkstack.net/tickets"
},
"seller": {
"name": null,
"address": null,
"email": null,
"phone": null,
"vatNumber": null,
"companyDetails": null
},
"parkstackUrl": "https://riverside.parkstack.net",
"demo": true
}Answer
namestring- The park's name as guests know it.
taglinestring or null- A short line under the name.
timezonestring- IANA time zone; every date and time in the API is on this clock.
currencystring- ISO 4217 code, "GBP". Every amount is in this currency's smallest unit (pence).
contactobject- For guests to get in touch.
emailstring or nullphonestring or nulladdressobjectlinesstring or null- The postal address; may hold line breaks.
postcodestring or nullparkingstring or null- The park's note on parking.
mapUrlstring or null- A Google Maps search for the address.
socialarray of object- Social media and other links, in the park's order.
labelstring- "Facebook", "Instagram", "TikTok", "X" or the park's own words.
urlstringlogoobject or nullurlstring- The full-size file.
widthinteger or null- In pixels, when known: set width and height on the <img> so the page does not jump.
heightinteger or null- In pixels, when known.
altstring or null- Null means decorative: give it alt="".
srcsetstring or null- For an <img srcset>, when the file can be served at smaller sizes.
logoForDarkBackgroundsobject or null- A white or light logo for dark backgrounds, when the park has one.
urlstring- The full-size file.
widthinteger or null- In pixels, when known: set width and height on the <img> so the page does not jump.
heightinteger or null- In pixels, when known.
altstring or null- Null means decorative: give it alt="".
srcsetstring or null- For an <img srcset>, when the file can be served at smaller sizes.
coloursobject- Hints for a matching design; the site is free to ignore them.
mainstring- A hex colour, "#0f5c4c".
accentstring- A hex colour.
fontsarray of object- The fonts the park chose; the site is free to use others.
role"Headings" | "Text" | "Headings and text"namestring- A Google Fonts family name.
urlstring- Its Google Fonts stylesheet.
ticketsobjectonSaleOnlineboolean- Whether guests can buy tickets online now. Hide ticket links while false.
fromPenceinteger or null- The cheapest ticket on sale, in pence: show it as the total price ("From £12").
fromIncludesVatboolean or null- Whether the "from" price includes VAT ("From £12 inc. VAT"); null when there is no "from" price.
shopUrlstring- Parkstack's ticket shop, until the site sells tickets itself.
sellerobject- Who guests buy tickets from; show it with the ticket terms. Null fields are not set.
namestring or nulladdressstring or nullemailstring or nullphonestring or nullvatNumberstring or nullcompanyDetailsstring or null- For a limited company: name, where registered, number and registered office, in one sentence.
parkstackUrlstring- Parkstack's own address for the park's guest pages (ticket confirmations and legal pages live there).
demoboolean- A demonstration park: checkout takes no payment and its tickets are not valid.
Cache-Control: public, max-age=60, stale-while-revalidate=300