Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

IPGeolocation.io Astronomy API

API endpoints for retrieving astronomical information for a givenlocation, including sunrise and sunset times, moonrise and moonsettimes, twilight phases, golden hour and blue hour windows, solar noon,sun and moon position data (altitude, azimuth, distance), and moonphase.A time series endpoint is also available to retrieve daily astronomicaldata across a date range of up to 90 days.

IPGeolocation.io Astronomy API is one of 7 APIs that IPGeolocation.io publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Astronomy. The published artifact set on APIs.io includes an OpenAPI specification and API documentation.

This API exposes 2 operations across 2 paths, and defines 7 schemas. It is described by OpenAPI 3.0.7, at version 3.0.

Requests are made against a single base URL, https://api.ipgeolocation.io.

2 operations 2 paths 7 schemas 2 GET

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.7
API Version
3.0
Base URL
https://api.ipgeolocation.io
Authentication
API Key
Terms of Service
Resource Areas
1

Authentication & Security 1

IPGeolocation.io Astronomy API declares 1 security scheme for authenticating requests. An API key is passed in the query as apiKey (ApiKeyAuth). By default, every request must be authenticated.

  • ApiKeyAuth — API key passed as the apiKey query parameter. Get yours from the [IPGeolocation dashboard](https://app.ipgeolocation.io/). For client-side usage, consider usin…

Paths & Operations 2

Across 2 paths, the API surfaces 2 operations — 2 GET. Each is listed below with its method, path, parameters, and response codes.

Astronomy 2

API endpoints for retrieving astronomical information for a given location, including sunrise and sunset times, moonrise and moonset times, twilight phases, golden hour and blue h…

GET
/v3/astronomy
IPGeolocation.io Astronomy Lookup
lookupAstronomy 8 params → 200400401404405423429499
GET
/v3/astronomy/timeSeries
IPGeolocation.io Astronomy Time Series Lookup
lookupAstronomyTimeSeries 9 params → 200400401404405423429499

Schemas 7

The contract defines 7 schemas that model the data the API accepts and returns. The most detailed are AstronomyData (26 properties), Location (17 properties), AstronomyTimeSeriesEntry (15 properties), TwilightPhase (10 properties). Each schema is shown below with its type and property counts.

AstronomyTimeSeriesEntry
object
Astronomical data for a single calendar day within the time series response. Contains event times for sunrise, sunset, moonrise, moonset, twilight phases, sola…
15 properties
ErrorResponse
object
Returned for any non-200 response. Contains only a human-readable message. Message text can vary by status and condition; examples in this spec are representat…
1 property 1 required
Location
object
Geolocation information associated with the resolved location. For coordinate-based or location-string lookups, only basic geographic fields are returned (lati…
17 properties
AstronomyLookupResponse
object
Response returned by the single-date Astronomy Lookup API. Contains a location object with geolocation details for the resolved location, and an astronomy obje…
3 properties
AstronomyData
object
Astronomical data for the resolved location and requested date. Includes event times for sunrise, sunset, moonrise, moonset, twilight phases, golden hour, blue…
26 properties
TwilightPhase
object
Twilight phase times for either the morning (pre-sunrise) or evening (post-sunset) period. Includes astronomical, nautical, and civil twilight windows, as well…
10 properties
AstronomyTimeSeriesResponse
object
Response returned by the Astronomy Time Series API. Contains a location object and an astronomy array where each element represents astronomical data for a sin…
3 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

ipgeolocation-astronomy-api-openapi.yml Raw ↑

Other APIs IPGeolocation.io publishes across the network.

IPGeolocation.io ASN Lookup API
IPGeolocation.io IP Abuse Contact API
IPGeolocation.io IP Geolocation API
IPGeolocation.io IP Security API
IPGeolocation.io Timezone API
IPGeolocation.io User Agent API