Places API

Sunrise Sunset Opening Hours API

The Sunrise Sunset Opening Hours API returns places whose schedules are based on sunrise and sunset, with coverage including Canada, the United States, Nepal, Malawi, Tanzania, the Netherlands, Italy and Australia. Records include opening-hours rules, coordinates and place tags. Developers can filter the data, query it in supported formats or download datasets in bulk.

Canada, United States · JSON, GeoJSON, CSV, Parquet

POSThttps://api.outerview.ai/v1/stream
curl https://api.outerview.ai/v1/stream \
  -X POST \
  -H "Authorization: Bearer $OUTERVIEW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "query": "sunrise sunset opening hours",
    "region_id": "21837",
    "limit": 50
  }'

Key facts

  • The API returns OpenStreetMap places with opening hours based on sunrise and sunset.
  • Coverage includes Canada, the United States, Nepal, Malawi, Tanzania, the Netherlands, Italy and Australia.
  • Records can include coordinates, opening-hours rules, place tags and location context.
  • Supported formats are JSON, GeoJSON, CSV and Parquet.

Quick start

  1. 1. Create an account and generate an API key on the developer platform.
  2. 2. Send it as a Bearer token in the Authorization header.
  3. 3. Query by place, radius or date (the example searches Edmonton).

Bulk download

GET https://api.outerview.ai/api/v1/beacon/sunrise-sunset-opening-hours/download?format=geojson

Add &region_slug=… to limit to one place. Formats: csv, geojson, parquet.

Sample records

Real records from the data, trimmed to the main fields.

10 records
CityNameCountryHoursWheelchairBrandAddressWebsiteCuisine
Monte Santo de MinasPadaria Boa Massa do AlunoBrazilsunrise-sunset—————
—Rani Puwa ChurchNepalsunrise-sunsetyes————
—Ruinas de GallardoArgentinasunrise-sunset—————
—ElebarArgentinasunrise-sunsetnoTarjeta ElebarSarmiento & Almafuerte Henderson 6465https://www.elebar.com.ar—
—Plaza El SalarChilesunrise-sunset——1505 Paraguay Antofagasta——
—Hogar de DíaArgentinasunrise-sunset——Bulevar General Paz Pilar 5972——
Santa MariaBar da IvoneBrazilsunrise-sunset—————
Balneário RincãoKióski da BaianaBrazilsunrise-sunset——Avenida Aírton Laurindo de Bittencourt Balneário Rincão 88828-000—regional;marmitex_-_prato_feito
—Bingo CandilejasParaguaysunrise-sunset——1649 Bruselas Ycuá Satí 001410https://choicecasino.com/es/slothalls/paraguay/asuncion/bingo-candilejas—
Iporã do OesteBeijo FrioBrazilsunrise-sunset————ice_cream

Overview

This API provides OpenStreetMap place records with opening hours expressed relative to sunrise and sunset. Because these schedules change seasonally, the data is useful for finding places whose hours follow daylight rather than a fixed clock schedule.

Developers can use the records to build maps, place finders, schedule-aware directories and location analysis tools. The source is OpenStreetMap contributors, under the ODbL.

Coverage

Country coverage includes Canada, the United States, Nepal, Malawi, Tanzania, the Netherlands, Italy and Australia.

Named areas include Alberta, Illinois, Washington, Abruzzo, New South Wales, England, West Pomeranian Voivodeship, California, Kilifi County and Gelderland. Cities include Edmonton, Spruce Grove, Sydney, Stony Plain, Pescocostanzo, Greater London, Genova, Bam, Chicago, Tornimparte, Apeldoorn and Kołobrzeg.

Fields

Each record can include latitude and longitude, opening_hours in OpenStreetMap format, the place name, settlement class, climate group, population context, flood zone and land-use categories. The properties field contains the place’s OpenStreetMap tags, and source identifies the source dataset.

  • latLatitude
  • lngLongitude
  • opening_hoursOpening hours (OpenStreetMap format)
  • propertiesAll OpenStreetMap tags for the place
  • sourceSource dataset
  • nameName of the place
  • settlement_classCity, town or countryside
  • climate_groupClimate group
  • ghsl_pop_1km_2020How many people live here (people)
  • flood_zoneFlood risk
  • land_use_categoriesLand use

Queries

Filter records by region, radius, date or selected fields. Use streaming for live queries, or choose a bulk download when you need a whole dataset.

Available formats are JSON, GeoJSON, CSV and Parquet.

Use cases

Build a map of parks, attractions or other places with sunrise-to-sunset schedules. Create a directory that helps people find places open during daylight hours.

Combine opening-hours rules with coordinates to support trip planning, location research or daylight-aware recommendations. Use climate group, flood zone and land-use categories to add context to place analysis.

Pricing

Create an Outerview account, generate an API key on the developer platform and send it as a Bearer token in the Authorization header. The API offers JSON, GeoJSON, CSV and Parquet formats.

A free tier is available for testing. Paid plans raise limits and unlock bulk downloads; see the pricing page for plan details.

Frequently asked questions

Is there an API for places with sunrise-to-sunset opening hours?

Yes, the Outerview Sunrise Sunset Opening Hours API returns place records with schedules based on sunrise and sunset. Records include opening-hours rules, coordinates and OpenStreetMap tags, with options to filter and retrieve data in JSON, GeoJSON, CSV or Parquet.

Is there an API for sunrise-to-sunset opening hours in Sydney?

Yes, the Outerview Sunrise Sunset Opening Hours API covers Sydney, Australia, and returns places with opening hours based on sunrise and sunset. Records include coordinates, OpenStreetMap tags and place context that can support map-based directories and location applications.

What does each Sunrise Sunset Opening Hours API record contain?

The Outerview Sunrise Sunset Opening Hours API returns records with coordinates, opening_hours in OpenStreetMap format, place properties, source, settlement class, climate group, population context, flood zone and land-use categories. A record can also include the place name.

Which countries and cities does the Sunrise Sunset Opening Hours API cover?

The Outerview Sunrise Sunset Opening Hours API covers Canada, the United States, Nepal, Malawi, Tanzania, the Netherlands, Italy and Australia. Named cities include Edmonton, Chicago, Sydney, Genova, Greater London, Apeldoorn, Pescocostanzo, Bam, Spruce Grove, Stony Plain, Tornimparte and Kołobrzeg.

How can I filter sunrise-to-sunset opening hours by city, radius or date?

The Outerview Sunrise Sunset Opening Hours API supports filtering by region, radius, date and selected fields. Use regional filters to narrow results to a city or neighbourhood, and a radius filter to search around a location. Choose the fields you need for your application.

What formats are available, and can I download the full dataset?

The Outerview Sunrise Sunset Opening Hours API provides JSON, GeoJSON, CSV and Parquet formats. You can use streaming for live queries or choose a bulk download for a whole dataset. Paid plans unlock bulk downloads.

How current is the sunrise-to-sunset opening-hours data?

The Outerview Sunrise Sunset Opening Hours API data is refreshed as its sources publish. The records come from OpenStreetMap contributors and describe opening-hours rules that can change seasonally with sunrise and sunset.

How do I get an API key and authenticate requests?

To use the Outerview Sunrise Sunset Opening Hours API, create an Outerview account and generate an API key on the developer platform. Send the key as a Bearer token in the Authorization header when making requests.

Is there a free tier, and what do paid plans include?

The Outerview Sunrise Sunset Opening Hours API has a free tier for testing. Paid plans raise limits and unlock bulk downloads. See the Outerview pricing page for plan details.

How can I use sunrise-to-sunset opening-hours data in Python or JavaScript?

The Outerview Sunrise Sunset Opening Hours API can provide JSON, GeoJSON, CSV or Parquet data for Python and JavaScript applications. Use it to build a daylight-aware place finder for Sydney or a map of places whose schedules follow sunrise and sunset.

Start building with the Sunrise Sunset Opening Hours API

Free to try. Paid plans raise limits and unlock bulk downloads.