# timeanddate moonrise and moonset table for a month 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.

Documentation: https://openany.si/timeanddate/timeanddate-moonrise-and-moonset-table-for-a-month-api/11d60368-279c-44b5-88c9-32a7d87097e7/
API ID: 11d60368-279c-44b5-88c9-32a7d87097e7
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/timeanddate/v1/moon
Page update time: 2026-12-03T02:45:13.705Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.002 / billing credit
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:45:12.287Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "rules",
  "parameters": [],
  "policy_version": 2,
  "sale": {
    "addons": [],
    "base_price_micro_usd": "0",
    "max_cost_micro_usd": "2000",
    "quantities": [
      {
        "id": "upstream_credits",
        "label": "Actual API.SH credits used",
        "max_quantity": "1",
        "measure": "value",
        "pointer": "/credits_used",
        "price_micro_usd": "2000",
        "quantity_scale": 0,
        "source": "response",
        "unit": "credit",
        "unit_quantity": "1"
      }
    ],
    "rounding": "ceil",
    "variants": []
  }
}
```

## Usage and limits
## 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.

## 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 |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "timeanddate moonrise and moonset table for a month API request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "place": {
          "type": "string",
          "description": "timeanddate place path (e.g. usa/new-york) or a place link."
        },
        "q": {
          "type": "string",
          "description": "Or a place name."
        },
        "month": {
          "type": "integer",
          "description": "Month 1-12 (default: this month)."
        },
        "year": {
          "type": "integer",
          "description": "Year (default: this year)."
        },
        "raw": {
          "type": "string",
          "description": "0 leaves out the bulky `raw` source blocks (often 10-30x smaller).",
          "enum": [
            "0",
            "1"
          ]
        },
        "fields": {
          "type": "string",
          "description": "Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included."
        },
        "fresh": {
          "type": "string",
          "description": "1 skips the 24-hour cache and fetches live.",
          "enum": [
            "1"
          ]
        },
        "output": {
          "type": "string",
          "description": "JSON only for this OpenAny product. CSV and NDJSON exports are not supported; omit output or send json.",
          "enum": [
            "json"
          ]
        },
        "records": {
          "type": "string",
          "description": "With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row."
        }
      }
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "cached": {
      "type": "boolean"
    },
    "count": {
      "type": "integer"
    },
    "credits_used": {
      "type": "integer"
    },
    "days": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "date": {
            "type": "string"
          },
          "distance_km": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ]
          },
          "illumination_percent": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "meridian_altitude": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "meridian_passing": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "moonrise": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "string"
              }
            ]
          },
          "moonrise_azimuth": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "integer"
              }
            ]
          },
          "moonset": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "moonset_azimuth": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ]
          },
          "phase": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "phase_time": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "second_moonrise": {
            "type": "null"
          }
        }
      }
    },
    "fetched_at": {
      "type": "string"
    },
    "month": {
      "type": "integer"
    },
    "name": {
      "type": "string"
    },
    "place": {
      "type": "string"
    },
    "url": {
      "type": "string"
    },
    "year": {
      "type": "integer"
    }
  }
}
```

## Request example
Scenario: Official example · Live API.SH response · Minimal request
```bash
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'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Documented HTTP 200
```json
{
  "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
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## 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.

## Available implementations
- apish: https://openany.si/timeanddate/timeanddate-moonrise-and-moonset-table-for-a-month-api/11d60368-279c-44b5-88c9-32a7d87097e7/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
