Skip to content
datum
esc
  • pageHomeOverview and playground↵
  • pageAPI referenceAll 25 APIs
  • pagePricingPlans and cost estimator
  • APIEmail Validator/email/v1 · Check an email address's syntax, mail servers and whether it is disposable or role-based. No mailbox probing.
  • APIPhone Validator/phone/v1 · Validate and format phone numbers worldwide: country, number type, time zones and original carrier.
  • APIBank and Card Validator/validate/v1 · Validate IBANs, US routing numbers, BIC/SWIFT codes and payment card numbers by checksum and structure.
  • APIEU VAT Validator/vat/v1 · Validate EU VAT numbers against the European Commission's VIES service and get the registered name and address.
  • APICompany LEI Lookup/lei/v1 · Look up companies by Legal Entity Identifier, search by name, and see parent and child entities.
  • APICountries/countries/v1 · Country data by ISO code: capital, currency, calling code, languages, time zones, neighbours and subdivisions.
  • APIPostal Codes/postal/v1 · Look up postal codes in 11 countries: place name, state, coordinates, nearby codes and distance between codes.
  • APIIP Lookup/ip/v1 · Country and network (ASN) for any IPv4 or IPv6 address, single or batch. Country level only.
  • APITime Zones/time/v1 · Current time in any IANA time zone, conversion between zones, time zone by coordinates, and DST changes.
  • APIPublic Holidays/holidays/v1 · Public holidays for 150+ countries, with next holiday, is-it-a-holiday checks and working-day calculations.
  • APIAirports/airports/v1 · Look up airports by IATA or ICAO code, search by name or city, and find the nearest airports to a point.
  • APIWeb Page Reader/web/v1 · Turn a public web page into clean Markdown, metadata, links or an SEO report. Honours robots.txt.
  • APIWebsite Contact Extractor/contacts/v1 · Find a company's emails, phone numbers, social profiles and address from its own website. Honours robots.txt.
  • APIDomain and DNS/domain/v1 · DNS records, domain registration data over RDAP, TLS certificate details and mail security checks.
  • APIApp Store Reviews/reviews/v1 · Recent Apple App Store customer reviews for any app, by country, with ratings summary and app search.
  • APICareer Site Jobs/jobs/v1 · Current job openings from a company's own careers site, across nine applicant tracking systems, in one format.
  • APIExchange Rates/fx/v1 · Daily European Central Bank reference rates: latest, historical, time series and currency conversion.
  • APIVIN Decoder/vin/v1 · Validate and decode vehicle VINs, with US recalls, safety ratings and complaints from NHTSA.
  • APIBarcode and Book Lookup/products/v1 · Validate UPC, EAN and ISBN barcodes, look up food products by barcode, and find books by ISBN or search.
  • APIUS Weather/weather/v1 · US weather by coordinates or ZIP code: 7-day and hourly forecasts, current conditions and active alerts.
  • APIEarthquakes/earthquakes/v1 · Recent earthquakes worldwide or near a point, filtered by magnitude and date, from the USGS catalogue.
  • APISunrise and Sunset/sun/v1 · Sunrise, sunset, twilight, golden hour, sun position and moon phase for any place and date.
  • APIDeveloper Utilities/tools/v1 · User-Agent parsing, cron explanations and next runs, password strength, JWT decoding, hashing and UUIDs.
  • APIQR and Barcode Generator/qr/v1 · Generate QR codes (PNG or SVG) for text, URLs, Wi-Fi and contacts, and standard barcodes as SVG.
  • APIText Analysis/text/v1 · Language detection, sentiment, readability scores, keyword extraction and slugs. Rule-based, no AI model.

Sunrise and Sunset

Sunrise, sunset, twilight, golden hour, sun position and moon phase for any place and date.

base https://prod.api.market/api/v1/claimcheckai/sunrise-and-sunset/sun/v1
endpoints
4
free plan, paid from
$2.50/mo
data
Self-contained

Calculate sunrise, sunset, dawn, dusk and day length for a location and date or a date range, the sun's position at a moment, and the moon phase.

// When does the sun set in New York on the solstice?

curl "https://prod.api.market/api/v1/claimcheckai/sunrise-and-sunset/sun/v1/times?lat=40.7128&lon=-74.006&date=2026-12-21&zone=America/New_York" \
  -H "x-api-market-key: $API_MARKET_KEY"
200 OKapplication/json
captured 2026-11-16
{
  "latitude": 40.7128,
  "longitude": -74.006,
  "zone": "America/New_York",
  "date": "2026-12-21",
  "sunrise": "2026-12-21T07:16:51-05:00",
  "sunset": "2026-12-21T16:31:33-05:00",
  "solar_noon": "2026-12-21T11:53:51-05:00",
  "day_length_seconds": 33282,
  "day_length": "09:14:42",
  "civil_dawn": "2026-12-21T06:45:15-05:00",
  "civil_dusk": "2026-12-21T17:03:08-05:00",
  "nautical_dawn": "2026-12-21T06:10:55-05:00",
  "nautical_dusk": "2026-12-21T17:37:28-05:00",
  "astronomical_dawn": "2026-12-21T05:37:37-05:00",
  "astronomical_dusk": "2026-12-21T18:10:46-05:00",
  "evening_golden_hour": {
    "start": "2026-12-21T15:48:58-05:00",
    "end": "2026-12-21T16:51:29-05:00"
  },
  "condition": null,
  "moon": {
    "age_days": 11.16,
    "phase": "waxing gibbous",
    "illumination_percent": 90
  }
}

Endpoints

GET/sun/v1/times#

Sunrise, sunset and twilight for one day

parameters
  • latqueryrequired
  • lonqueryrequired
  • datequery

    YYYY-MM-DD. Defaults to today in the chosen zone.

  • zonequery

    IANA time zone for the returned times, for example Europe/London.

GET/sun/v1/range#

Sunrise and sunset for up to 366 days

parameters
  • latqueryrequired
  • lonqueryrequired
  • startqueryrequired
  • daysquery
  • zonequery

    IANA time zone for the returned times, for example Europe/London.

GET/sun/v1/position#

Where the sun is in the sky

parameters
  • latqueryrequired
  • lonqueryrequired
  • timequery

    ISO 8601 time. Without an offset it is read in the chosen zone. Defaults to now.

  • zonequery

    IANA time zone for the returned times, for example Europe/London.

GET/sun/v1/moon#

Moon phase for a date

parameters
  • datequery

    YYYY-MM-DD. Defaults to today (UTC).

Data and limits

source

Calculated locally with the astral library.

Answers from bundled data or local computation. No upstream call.

limits

  • Accurate to about a minute; terrain and weather are not considered.
  • Polar day and night return nulls.

Plans

Monthly, in US dollars. Each plan stops at its quota, with no overage charges. Subscribe and pay on api.market.

planpricecalls / monthper 1k calls
Free trialFree100, once, for 7 days—start free on api.market ↗
Basic$2.5010,000$0.25subscribe on api.market ↗
Pro$9.50100,000$0.095subscribe on api.market ↗
Ultra$21500,000$0.042subscribe on api.market ↗