Unfortunately, this feature is not supported on mobile devices. For the best experience, please use a computer.

Redocly Museum API (1.0.0)

An imaginary, but delightful Museum API for interacting with museum services and information. Built with love by Redocly.

Download OpenAPI description
Languages
Servers
Mock server
https://redocly.com/_mock/docs/openapi/museum-api/
https://api.fake-museum-example.com/v1/

Operations

Operational information about the museum.

Operations

Get museum hours

Request

Get upcoming museum operating hours

Query
startDatestring(date)

The starting date to retrieve future operating hours from. Defaults to today's date.

Example:

startDate=2023-02-23T00:00:00.000Z

pageinteger

The page number to retrieve.

Default 1
Example:

page=2

limitinteger<= 30

The number of days per page.

Default 10
Example:

limit=15

curl -i -X GET \
  -u undefined:undefined \
  'https://redocly.com/_mock/docs/openapi/museum-api/museum-hours?limit=15&page=2&startDate=2023-02-23T00%3A00%3A00.000Z'
Experience it firsthand in the API Explorer!

Responses

Success

Bodyapplication/jsonArray [
datestring(date)(Date)required

Date the operating hours apply to.

Example:

"02-02-2022"

timeOpenstring^([01]\d|2[0-3]):?([0-5]\d)$required

Time the museum opens on a specific date. Uses 24 hour time format (HH:mm).

Example:

"09:00"

timeClosestring^([01]\d|2[0-3]):?([0-5]\d)$required

Time the museum closes on a specific date. Uses 24 hour time format (HH:mm).

Example:

"18:00"

]
Response
application/json
[ { "date": "2023-09-11", "timeOpen": "09:00", "timeClose": "18:00" }, { "date": "2023-09-12", "timeOpen": "09:00", "timeClose": "18:00" }, { "date": "2023-09-13", "timeOpen": "09:00", "timeClose": "18:00" }, { "date": "2023-09-14", "timeOpen": "09:00", "timeClose": "18:00" }, { "date": "2023-09-15", "timeOpen": "10:00", "timeClose": "16:00" }, { "date": "2023-09-18", "timeOpen": "09:00", "timeClose": "18:00" }, { "date": "2023-09-19", "timeOpen": "09:00", "timeClose": "18:00" }, { "date": "2023-09-20", "timeOpen": "09:00", "timeClose": "18:00" }, { "date": "2023-09-21", "timeOpen": "09:00", "timeClose": "18:00" }, { "date": "2023-09-22", "timeOpen": "10:00", "timeClose": "16:00" } ]

Events

Special events hosted by the Museum

Operations

Tickets

Museum tickets for general entrance or special events.

Operations