OpenAny
Get API keyAPI Key
APIData

timeanddate logo
timeanddate Moon Table API

Get timeanddate Moon Table data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as month, output, place, and retrieve structured data including resolved source place path, selected month, selected year, table date, and moonrise time when supplied for calendar context, and follow-up calculations.

Selected price
$0.002 / billing creditPublished pricing
Sellers / APIs
1 / 1
Requests · 30d
0Selected implementation · last 30 days
Success rate · 30d
—No requests in this period
USE THIS API

timeanddate Moon Table API

Prepare your request, then continue with your agent.

Pricing

$0.002 / billing credit

Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.

Provider
API
Pricing
Connect your agent
On this page

Overview

Overview
timeanddate Moon Table API

timeanddate Moon Table API

Use place as a source place path or place URL, or q for name resolution. month accepts 1–12 and defaults to this month; year defaults to this year. days contains the monthly table. Keep absent rise/set values, phase times and second-event fields distinct; a missing event is not zero.

Quick Facts

Fact Value
Access OpenAny REST
Authentication OpenAny API key in the Authorization header
Core inputs Choose the lookup or search inputs described below. Optional: place, q, month, year. JSON output; fresh=1 bypasses cache and raw=0 omits raw source blocks.
Selected implementation apish · timeanddate moonrise and moonset table for a month API
Billing See the pricing area for the selected implementation and request options

What You Can Build

  • Calendar context: Retain the requested date range and returned source context when displaying calendar information.
  • Follow-up calculations: Use explicit source conventions and the returned identifiers or dates when planning a follow-up calculation.

Returned Data

Field Meaning
place Resolved source place path
month Selected month
year Selected year
days[].date Table date
days[].moonrise Moonrise time when supplied
days[].moonset Moonset time when supplied

Quick Start

  1. Set OPENANY_API_KEY to your OpenAny API key.
  2. Review the selected implementation and pricing, then adapt the request below to your target.
  3. Check the HTTP response and business result before reading optional fields.
bash
curl --request GET --get \
  https://api.openany.si/v1/agent-apis/apish/timeanddate/v1/moon \
  -H "Authorization: Bearer ${OPENANY_API_KEY}" \
  --data-urlencode month=12 \
  --data-urlencode output=json \
  --data-urlencode place=usa/new-york \
  --data-urlencode raw=0 \
  --data-urlencode year=2026

Request and Response Examples

The response example is a documentation reference and may be abbreviated. The documented request is a calling template; use the published contract and returned response for the selected implementation.

Published timeanddate Moon Table API implementation contract.

Pricing and Billing

The pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service's public availability does not determine OpenAny billing.

Frequently Asked Questions

View FAQ

Related APIs

Playground

Run sends a real API request. Charges follow the published API contract.

Request parameters
Optional parameters (9)
timeanddate place path (e.g. usa/new-york) or a place link.
Or a place name.
Month 1-12 (default: this month).
Year (default: this year).
0 leaves out the bulky `raw` source blocks (often 10-30x smaller).
Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.
1 skips the 24-hour cache and fetches live.
JSON only for this OpenAny product. CSV and NDJSON exports are not supported; omit output or send json.
With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row.

Sample response

Run a request to see the actual response. Published samples are in Examples.

Response result

Sellers

SellerPricingRequests · 30dPerformanceAccess
apishCurrent
timeanddate moonrise and moonset table for a month API · GET · View API reference
$0.002 / billing credit0
—successP50—
Selected implementation traffic · 11/3/2026 – 12/3/2026 (UTC)
Selected pricing · apishUSD / billing credit
Pricing
$0.002

Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.

Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 3. Price update time: not supplied.

API

Method
GET
Endpoint
https://api.openany.si/v1/agent-apis/apish/timeanddate/v1/moon
Content type
application/json
Authentication
Authorization: Bearer $OPENANY_API_KEY
View request and response examples

Input parameters

Fields in this listing; additional options and input encoding can vary by provider.

ParameterLocationTypeRequiredDescription
placeURL query parametersquerystringNo

timeanddate place path (e.g. usa/new-york) or a place link.

qURL query parametersquerystringNo

Or a place name.

monthURL query parametersqueryintegerNo

Month 1-12 (default: this month).

yearURL query parametersqueryintegerNo

Year (default: this year).

rawURL query parametersquerystringNo

0 leaves out the bulky `raw` source blocks (often 10-30x smaller).

enum: "0", "1"

fieldsURL query parametersquerystringNo

Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.

freshURL query parametersquerystringNo

1 skips the 24-hour cache and fetches live.

enum: "1"

outputURL query parametersquerystringNo

JSON only for this OpenAny product. CSV and NDJSON exports are not supported; omit output or send json.

enum: "json"

recordsURL query parametersquerystringNo

With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row.

Required markers inside a nested object or variant apply when that object or variant is used.

Response structure

Inferred from examples
  • cachedboolean
  • countinteger
  • credits_usedinteger
  • daysobject[]
    • datestring
    • distance_kminteger | null
    • illumination_percentnumber | null
    • meridian_altitudenumber | null
    • meridian_passingstring | null
    • moonrisenull | string
    • moonrise_azimuthnull | integer
    • moonsetstring | null
    • moonset_azimuthinteger | null
    • phasestring | null
    • phase_timestring | null
    • second_moonrisenull
  • fetched_atstring
  • monthinteger
  • namestring
  • placestring
  • urlstring
  • yearinteger

Composite rule pricing

Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.

Base fee: $0.000000. One matching variant replaces the base fee. Matching add-ons and quantity charges are added.

Fee itemPriceMetering sourceWhenQuantity limit
Actual API.SH credits used$0.002000 / billing creditResponse · /credits_used · Numeric valueAlways1 billing credit · Decimal places: 0

Each quantity charge is rounded before summing: ceil. Requests exceeding this cost limit are rejected; it is not a price cap: $0.002000.

Response quantities settle after the response. Before execution, the maximum quantity determines the reservation; unused reservation is released. Missing or invalid quantities are not treated as zero.

Pricing parameters and defaults
[]

Agent integration

Copy the resource contract without sharing an API key.

Download MDView API Markdown

Error handling

StatusNext step
400Check the offering and request fields.
401 / 403Verify your credentials and access permissions.
402Inspect the selected access mode and returned payment requirements.
429Respect the returned rate limit and retry guidance.
5xxInspect the error and usage record before retrying a paid operation.

Examples

Official example · Live API.SH response · Minimal request

Example from the provider's documentation. Field values in your results will differ.

  1. Prepare your environment

    Use a terminal with cURL installed.

    Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.

    Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.

    Terminal · macOS / Linux
    printf 'OpenAny API key: '
    read -r -s OPENANY_API_KEY
    export OPENANY_API_KEY
    printf '\n'
  2. Run the request

    Paste the complete command below into your terminal.

    Values to replace before running 9

    Review these request fields before running. Keep the published provider and request method unchanged.

    place
    timeanddate place path (e.g. usa/new-york) or a place link.
    q
    Or a place name.
    month
    Month 1-12 (default: this month).
    year
    Year (default: this year).
    raw
    0 leaves out the bulky `raw` source blocks (often 10-30x smaller).
    fields
    Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.
    fresh
    1 skips the 24-hour cache and fetches live.
    output
    JSON only for this OpenAny product. CSV and NDJSON exports are not supported; omit output or send json.
    records
    With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row.
    Terminal · cURL
    curl \
      'https://api.openany.si/v1/agent-apis/apish/timeanddate/v1/moon?month=12&output=json&place=usa%2Fnew-york&raw=0&year=2026' \
      -X GET \
      -H "Authorization: Bearer $OPENANY_API_KEY" \
      -H 'Content-Type: application/json'
  3. Check the response

    Sample response · Documented HTTP 200

    Sample response
    {
      "cached": false,
      "count": 31,
      "credits_used": 1,
      "days": [
        {
          "date": "2026-12-01",
          "distance_km": 378806,
          "illumination_percent": 47.9,
          "meridian_altitude": 54.4,
          "meridian_passing": "06:05",
          "moonrise": null,
          "moonrise_azimuth": null,
          "moonset": "12:30",
          "moonset_azimuth": 275,
          "phase": "Third Quarter",
          "phase_time": "01:08",
          "second_moonrise": null
        },
        {
          "date": "2026-12-02",
          "distance_km": 383870,
          "illumination_percent": 37,
          "meridian_altitude": 48,
          "meridian_passing": "06:50",
          "moonrise": "00:36",
          "moonrise_azimuth": 89,
          "moonset": "12:52",
          "moonset_azimuth": 267,
          "phase": null,
          "phase_time": null,
          "second_moonrise": null
        },
        {
          "date": "2026-12-03",
          "distance_km": 388576,
          "illumination_percent": 27,
          "meridian_altitude": 41.8,
          "meridian_passing": "07:33",
          "moonrise": "01:42",
          "moonrise_azimuth": 97,
          "moonset": "13:14",
          "moonset_azimuth": 259,
          "phase": null,
          "phase_time": null,
          "second_moonrise": null
        },
        {
          "date": "2026-12-04",
          "distance_km": 392793,
          "illumination_percent": 18.3,
          "meridian_altitude": 36,
          "meridian_passing": "08:17",
          "moonrise": "02:47",
          "moonrise_azimuth": 105,
          "moonset": "13:37",
          "moonset_azimuth": 252,
          "phase": null,
          "phase_time": null,
          "second_moonrise": null
        },
        {
          "date": "2026-12-05",
          "distance_km": 396460,
          "illumination_percent": 11.1,
          "meridian_altitude": 30.9,
          "meridian_passing": "09:02",
          "moonrise": "03:53",
          "moonrise_azimuth": 112,
          "moonset": "14:03",
          "moonset_azimuth": 245,
          "phase": null,
          "phase_time": null,
          "second_moonrise": null
        },
        {
          "date": "2026-12-06",
          "distance_km": 399573,
          "illumination_percent": 5.6,
          "meridian_altitude": 26.6,
          "meridian_passing": "09:49",
          "moonrise": "04:58",
          "moonrise_azimuth": 119,
          "moonset": "14:33",
          "moonset_azimuth": 239,
          "phase": null,
          "phase_time": null,
          "second_moonrise": null
        },
        {
          "date": "2026-12-07",
          "distance_km": 402135,
          "illumination_percent": 2,
          "meridian_altitude": 23.4,
          "meridian_passing": "10:38",
          "moonrise": "06:02",
          "moonrise_azimuth": 123,
          "moonset": "15:09",
          "moonset_azimuth": 235,
          "phase": null,
          "phase_time": null,
          "second_moonrise": null
        },
        {
          "date": "2026-12-08",
          "distance_km": 404142,
          "illumination_percent": 0.3,
          "meridian_altitude": 21.5,
          "meridian_passing": "11:28",
          "moonrise": "07:03",
          "moonrise_azimuth": 127,
          "moonset": "15:52",
          "moonset_azimuth": 233,
          "phase": "New Moon",
          "phase_time": "19:51",
          "second_moonrise": null
        },
        {
          "date": "2026-12-09",
          "distance_km": 405558,
          "illumination_percent": 0.6,
          "meridian_altitude": 20.9,
          "meridian_passing": "12:20",
          "moonrise": "07:58",
          "moonrise_azimuth": 128,
          "moonset": "16:42",
          "moonset_azimuth": 232,
          "phase": null,
          "phase_time": null,
          "second_moonrise": null
        },
        {
          "date": "2026-12-10",
          "distance_km": 406318,
          "illumination_percent": 2.8,
          "meridian_altitude": 21.7,
          "meridian_passing": "13:11",
          "moonrise": "08:47",
          "moonrise_azimuth": 127,
          "moonset": "17:38",
          "moonset_azimuth": 234,
          "phase": null,
          "phase_time": null,
          "second_moonrise": null
        },
        {
          "date": "2026-12-11",
          "distance_km": 406318,
          "illumination_percent": 6.7,
          "meridian_altitude": 23.8,
          "meridian_passing": "14:00",
          "moonrise": "09:27",
          "moonrise_azimuth": 124,
          "moonset": "18:38",
          "moonset_azimuth": 237,
          "phase": null,
          "phase_time": null,
          "second_moonrise": null
        },
        {
          "date": "2026-12-12",
          "distance_km": 405442,
          "illumination_percent": 12.4,
          "meridian_altitude": 27,
          "meridian_passing": "14:47",
          "moonrise": "10:01",
          "moonrise_azimuth": 120,
          "moonset": "19:40",
          "moonset_azimuth": 242,
          "phase": null,
          "phase_time": null,
          "second_moonrise": null
        },
        {
          "date": "2026-12-13",
          "distance_km": 403578,
          "illumination_percent": 19.4,
          "meridian_altitude": 31.2,
          "meridian_passing": "15:32",
          "moonrise": "10:30",
          "moonrise_azimuth": 114,
          "moonset": "20:42",
          "moonset_azimuth": 248,
          "phase": null,
          "phase_time": null,
          "second_moonrise": null
        },
        {
          "date": "2026-12-14",
          "distance_km": 400646,
          "illumination_percent": 27.7,
          "meridian_altitude": 36.2,
          "meridian_passing": "16:15",
          "moonrise": "10:54",
          "moonrise_azimuth": 108,
          "moonset": "21:45",
          "moonset_azimuth": 255,
          "phase": null,
          "phase_time": null,
          "second_moonrise": null
        },
        {
          "date": "2026-12-15",
          "distance_km": 396626,
          "illumination_percent": 37.1,
          "meridian_altitude": 41.7,
          "meridian_passing": "16:57",
          "moonrise": "11:16",
          "moonrise_azimuth": 101,
          "moonset": "22:47",
          "moonset_azimuth": 263,
          "phase": null,
          "phase_time": null,
          "second_moonrise": null
        },
        {
          "date": "2026-12-16",
          "distance_km": 391581,
          "illumination_percent": 47.2,
          "meridian_altitude": 47.6,
          "meridian_passing": "17:38",
          "moonrise": "11:37",
          "moonrise_azimuth": 93,
          "moonset": "23:50",
          "moonset_azimuth": 271,
          "phase": null,
          "phase_time": null,
          "second_moonrise": null
        },
        {
          "date": "2026-12-17",
          "distance_km": 385687,
          "illumination_percent": 57.7,
          "meridian_altitude": 53.8,
          "meridian_passing": "18:21",
          "moonrise": "11:58",
          "moonrise_azimuth": 86,
          "moonset": null,
          "moonset_azimuth": null,
          "phase": "First Quarter",
          "phase_time": "00:42",
          "second_moonrise": null
        },
        {
          "date": "2026-12-18",
          "distance_km": 379250,
          "illumination_percent": 68.2,
          "meridian_altitude": 60,
          "meridian_passing": "19:06",
          "moonrise": "12:21",
          "moonrise_azimuth": 78,
          "moonset": "00:55",
          "moonset_azimuth": 279,
          "phase": null,
          "phase_time": null,
          "second_moonrise": null
        },
        {
          "date": "2026-12-19",
          "distance_km": 372703,
          "illumination_percent": 78.3,
          "meridian_altitude": 65.8,
          "meridian_passing": "19:56",
          "moonrise": "12:47",
          "moonrise_azimuth": 70,
          "moonset": "02:04",
          "moonset_azimuth": 287,
          "phase": null,
          "phase_time": null,
          "second_moonrise": null
        },
        {
          "date": "2026-12-20",
          "distance_km": 366594,
          "illumination_percent": 87.2,
          "meridian_altitude": 70.9,
          "meridian_passing": "20:50",
          "moonrise": "13:19",
          "moonrise_azimuth": 63,
          "moonset": "03:17",
          "moonset_azimuth": 295,
          "phase": null,
          "phase_time": null,
          "second_moonrise": null
        },
        {
          "date": "2026-12-21",
          "distance_km": 361526,
          "illumination_percent": 94.2,
          "meridian_altitude": 74.7,
          "meridian_passing": "21:51",
          "moonrise": "14:00",
          "moonrise_azimuth": 57,
          "moonset": "04:34",
          "moonset_azimuth": 301,
          "phase": null,
          "phase_time": null,
          "second_moonrise": null
        },
        {
          "date": "2026-12-22",
          "distance_km": 358077,
          "illumination_percent": 98.6,
          "meridian_altitude": 76.6,
          "meridian_passing": "22:57",
          "moonrise": "14:52",
          "moonrise_azimuth": 53,
          "moonset": "05:52",
          "moonset_azimuth": 306,
          "phase": null,
          "phase_time": null,
          "second_moonrise": null
        },
        {
          "date": "2026-12-23",
          "distance_km": null,
          "illumination_percent": null,
          "meridian_altitude": null,
          "meridian_passing": null,
          "moonrise": "15:58",
          "moonrise_azimuth": 53,
          "moonset": "07:05",
          "moonset_azimuth": 308,
          "phase": "Full Moon",
          "phase_time": "20:28",
          "second_moonrise": null
        },
        {
          "date": "2026-12-24",
          "distance_km": 356671,
          "illumination_percent": 99.9,
          "meridian_altitude": 76.2,
          "meridian_passing": "00:05",
          "moonrise": "17:15",
          "moonrise_azimuth": 56,
          "moonset": "08:07",
          "moonset_azimuth": 306,
          "phase": null,
          "phase_time": null,
          "second_moonrise": null
        },
        {
          "date": "2026-12-25",
          "distance_km": 357469,
          "illumination_percent": 97.8,
          "meridian_altitude": 73.5,
          "meridian_passing": "01:11",
          "moonrise": "18:36",
          "moonrise_azimuth": 61,
          "moonset": "08:56",
          "moonset_azimuth": 301,
          "phase": null,
          "phase_time": null,
          "second_moonrise": null
        },
        {
          "date": "2026-12-26",
          "distance_km": 360329,
          "illumination_percent": 92.5,
          "meridian_altitude": 69,
          "meridian_passing": "02:12",
          "moonrise": "19:56",
          "moonrise_azimuth": 69,
          "moonset": "09:35",
          "moonset_azimuth": 294,
          "phase": null,
          "phase_time": null,
          "second_moonrise": null
        },
        {
          "date": "2026-12-27",
          "distance_km": 364851,
          "illumination_percent": 84.8,
          "meridian_altitude": 63.2,
          "meridian_passing": "03:08",
          "moonrise": "21:12",
          "moonrise_azimuth": 77,
          "moonset": "10:06",
          "moonset_azimuth": 287,
          "phase": null,
          "phase_time": null,
          "second_moonrise": null
        },
        {
          "date": "2026-12-28",
          "distance_km": 370498,
          "illumination_percent": 75.3,
          "meridian_altitude": 56.7,
          "meridian_passing": "03:59",
          "moonrise": "22:24",
          "moonrise_azimuth": 86,
          "moonset": "10:32",
          "moonset_azimuth": 278,
          "phase": null,
          "phase_time": null,
          "second_moonrise": null
        },
        {
          "date": "2026-12-29",
          "distance_km": 376693,
          "illumination_percent": 64.7,
          "meridian_altitude": 50.1,
          "meridian_passing": "04:46",
          "moonrise": "23:33",
          "moonrise_azimuth": 95,
          "moonset": "10:56",
          "moonset_azimuth": 270,
          "phase": null,
          "phase_time": null,
          "second_moonrise": null
        },
        {
          "date": "2026-12-30",
          "distance_km": 382916,
          "illumination_percent": 53.8,
          "meridian_altitude": 43.6,
          "meridian_passing": "05:31",
          "moonrise": null,
          "moonrise_azimuth": null,
          "moonset": "11:18",
          "moonset_azimuth": 261,
          "phase": "Third Quarter",
          "phase_time": "13:59",
          "second_moonrise": null
        },
        {
          "date": "2026-12-31",
          "distance_km": 388748,
          "illumination_percent": 43.1,
          "meridian_altitude": 37.6,
          "meridian_passing": "06:15",
          "moonrise": "00:39",
          "moonrise_azimuth": 103,
          "moonset": "11:41",
          "moonset_azimuth": 254,
          "phase": null,
          "phase_time": null,
          "second_moonrise": null
        }
      ],
      "fetched_at": "2026-11-19T12:20:15.110Z",
      "month": 12,
      "name": "New York, New York, USA — Moonrise, Moonset, and Moon Phases, December 2026",
      "place": "usa/new-york",
      "url": "https://www.timeanddate.com/moon/usa/new-york?month=12&year=2026",
      "year": 2026
    }

Common questions

Which location forms are supported?

A source place path or place URL in place, or a name in q.

Can I choose an entire year in one request?

The endpoint is a monthly table; select month and year.

What do missing event times mean?

Preserve missing values and the source event context rather than substituting midnight.

What are the default month and year?

The current month and year, unless supplied explicitly.

How do I bypass cached results?

Pass fresh=1. A cache bypass retrieves available source data; it does not make unpublished or restricted records available.

Can I request CSV or NDJSON?

This OpenAny implementation serves JSON only. Omit output or set output=json.

Use timeanddate Moon Table API with your agent

Inspect endpoint contracts and confirm availability and pricing before a paid call.