Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,19 @@
description: Our free API tells you when the sun rises and sets anywhere on Earth, plus **twilight**, **golden hour**, **solar position** and **moon data**. All you need is a **latitude** and **longitude**; you make a simple GET request and get the answer as JSON.<br /><br />Time come in the local timezone of the place, and you can ask for a single day or up to a whole year in one request.<br /><br />The API is **free to use**; no sign up or API key required.
termsOfService: https://sunrise-sunset.org/
version: 'Version 2'
license:

Check warning on line 8 in openapi.yml

View workflow job for this annotation

GitHub Actions / build

info-license-strict

License object should contain one of the fields: `url`, `identifier`. Reference: https://redocly.com/docs/cli/rules/oas/info-license-strict
name: MIT
#The server object to include the URLs to the production server of the API.
servers:
- url: https://api.sunrise-sunset.org
description: Version 2
#The API is free to use and requires no API key or authentication.
security: []
#The `paths` object holds the relative paths to the individual endpoints and their operations. The path is appended to the URL from the Server Object in order to construct the full URL to query the API. There is only one operation for this API.
paths:
/v2:
get:
summary: Get sunrise, sunset, twilight, and moon data for a location
description: Returns when the sun rises and sets anywhere on Earth, plus twilight, golden hour, solar position and moon data.
operationId: getSunriseSunset
parameters:
Expand Down Expand Up @@ -342,8 +347,7 @@
error: too many requests too quickly
message: "slow down"
docs: https://sunrise-sunset.org/api#rate-limits
#The externalDocs object is for a single link of external documentation or reference that might be relevant to the API. Here is it used as attribution as required by the [API](https://sunrise-sunset.org/api)
#The externalDocs object is for a single link of external documentation or reference that might be relevant to the API. Here it is used as attribution as required by the [API](https://sunrise-sunset.org/api)
externalDocs:
description: https://sunrise-sunset.org/api
url: https://sunrise-sunset.org/api

url: https://sunrise-sunset.org/api
Loading