public apis
/
CategoriesMCPBlogRandomStar491.6K
Public APIs

A searchable directory of 2,000+ free public APIs, curated by the community and maintained with APILayer.

Powered byAPILayer

Popular

  • Weather APIs
  • Finance APIs
  • Crypto APIs
  • Geocoding APIs
  • Machine learning APIs
  • Games APIs

Directory

  • Categories
  • All APIs
  • MCP servers
  • FAQ
  • Stats
  • JSON API
  • llms.txt

APILayer

  • Browse the API suite ↗
  • Get a free API key ↗
  • APILayer blog ↗
  • Postman collection ↗
  • Discord community ↗

Project

  • public-apis on GitHub ↗
  • Contribute an API ↗
Public APIs · by APILayerData from public-apis (MIT)
  1. Home
  2. /Science & Math
  3. /Sunrise and Sunset
Science & Math
Sunrise and Sunset logo

Sunrise and Sunset

Sunset and sunrise times for a given latitude and longitude.

Sunrise and Sunset API is a free Science & Math API that requires no API key, is served over HTTPS and does not support CORS, so it should be called from a server.

Authentication
None required
HTTPS
Yes
CORS
No
Category
Science & Math
Visit documentation ↗sunrise-sunset.org

About Sunrise-Sunset.org

API v2: sunrise, sunset, twilight, golden hour and solar position for any location, with automatic local timezone, ISO 8601 times and date ranges.

Provider
Sunrise-Sunset.org
Website
sunrise-sunset.org ↗

Details from sunrise-sunset.org.

APILayer

Unified API suite · now live

Geocode an address, validate an email, track a flight or pull stock data with one account, one dashboard and one API key.

Get your free API key→Free tier on every API

Sunrise and Sunset API alternatives

SpaceX logo

SpaceX

GraphQL, Company, Ships, launchpad and launch data

No authHTTPSCORS ?
Tallytopia logo

Tallytopia

Calculators for finance, health, math, space and sports with step-by-step results

No authHTTPSCORS
SpaceX logo

SpaceX

Company, vehicle, launchpad and launch data

No authHTTPSNo CORS
Times Adder logo

Times Adder

With this API you can add each of the times introduced in the array sended

No authHTTPSNo CORS
Solar System OpenData logo

Solar System OpenData

Data and facts on solar system bodies and planets

No authHTTPSCORS
TLE logo

TLE

Satellite information

No authHTTPSNo CORS

Sunrise and Sunset API FAQ

Who provides the Sunrise and Sunset API?

The Sunrise and Sunset API is provided by Sunrise-Sunset.org (sunrise-sunset.org). API v2: sunrise, sunset, twilight, golden hour and solar position for any location, with automatic local timezone, ISO 8601 times and date ranges.

Is the Sunrise and Sunset API free?

Yes. The Sunrise and Sunset API is listed in the Science & Math category of the public-apis directory, which only includes APIs that are free or have a free tier. Check its documentation for rate limits and paid plans.

Does the Sunrise and Sunset API require an API key?

No. The Sunrise and Sunset API requires no authentication, so you can start making requests without signing up.

Can I call the Sunrise and Sunset API from the browser?

Not directly. The Sunrise and Sunset API does not allow CORS, so call it from a server, serverless function or proxy instead of front-end JavaScript.

Does the Sunrise and Sunset API support HTTPS?

Yes. The Sunrise and Sunset API is served over HTTPS, so it's safe to use in production.