# timeanddate current local time in a place API

Get timeanddate Local Time data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as output, place, raw, and retrieve structured data including resolved source place path, resolved location name, source local-date text, source local-time text, and available clock-change context for calendar context, and follow-up calculations.

Documentation: https://openany.si/market/apis/timeanddate/timeanddate-current-local-time-in-a-place-api/?offering=784bcaf0-8a61-44f4-bed5-e3d405b4179c
API ID: 784bcaf0-8a61-44f4-bed5-e3d405b4179c
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/timeanddate/v1/time
Page update time: 2026-12-03T02:45:13.737Z
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. Price update time: not supplied.
Contract update time: 2026-12-03T02:45:12.552Z. 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": []
  }
}
```

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "timeanddate current local time in a place 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, uk/london, @2988507) or a timeanddate.com place link."
        },
        "q": {
          "type": "string",
          "description": "Or a place name (the best match is used)."
        },
        "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"
    },
    "credits_used": {
      "type": "integer"
    },
    "daylight_saving": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "change": {
            "type": "string"
          },
          "date": {
            "type": "string"
          },
          "event": {
            "type": "string"
          }
        }
      }
    },
    "fetched_at": {
      "type": "string"
    },
    "local_date": {
      "type": "string"
    },
    "local_time": {
      "type": "string"
    },
    "location": {
      "type": "object",
      "properties": {
        "coordinates": {
          "type": "string"
        },
        "country": {
          "type": "string"
        },
        "currency": {
          "type": "string"
        },
        "dialing_code": {
          "type": "string"
        },
        "elevation_m": {
          "type": "integer"
        },
        "languages": {
          "type": "string"
        },
        "lat": {
          "type": "number"
        },
        "lon": {
          "type": "number"
        },
        "population": {
          "type": "null"
        },
        "region": {
          "type": "null"
        },
        "state": {
          "type": "string"
        }
      }
    },
    "moon": {
      "type": "object",
      "properties": {
        "illumination_percent": {
          "type": "number"
        },
        "next_phase": {
          "type": "object",
          "properties": {
            "date": {
              "type": "string"
            },
            "phase": {
              "type": "string"
            },
            "time": {
              "type": "string"
            }
          }
        },
        "previous_phase": {
          "type": "object",
          "properties": {
            "date": {
              "type": "string"
            },
            "phase": {
              "type": "string"
            },
            "time": {
              "type": "string"
            }
          }
        },
        "rise": {
          "type": "string"
        },
        "set": {
          "type": "string"
        }
      }
    },
    "name": {
      "type": "string"
    },
    "place": {
      "type": "string"
    },
    "sun": {
      "type": "object",
      "properties": {
        "astronomical_twilight": {
          "type": "object",
          "properties": {
            "evening_end": {
              "type": "string"
            },
            "evening_start": {
              "type": "string"
            },
            "morning_end": {
              "type": "string"
            },
            "morning_start": {
              "type": "string"
            }
          }
        },
        "civil_twilight": {
          "type": "object",
          "properties": {
            "evening_end": {
              "type": "string"
            },
            "evening_start": {
              "type": "string"
            },
            "morning_end": {
              "type": "string"
            },
            "morning_start": {
              "type": "string"
            }
          }
        },
        "day_length": {
          "type": "string"
        },
        "day_length_change": {
          "type": "string"
        },
        "nautical_twilight": {
          "type": "object",
          "properties": {
            "evening_end": {
              "type": "string"
            },
            "evening_start": {
              "type": "string"
            },
            "morning_end": {
              "type": "string"
            },
            "morning_start": {
              "type": "string"
            }
          }
        },
        "solar_noon": {
          "type": "string"
        },
        "solar_noon_altitude": {
          "type": "number"
        },
        "sunrise": {
          "type": "string"
        },
        "sunrise_azimuth": {
          "type": "integer"
        },
        "sunset": {
          "type": "string"
        },
        "sunset_azimuth": {
          "type": "integer"
        }
      }
    },
    "tides": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string"
          },
          "time": {
            "type": "string"
          }
        }
      }
    },
    "time_zone": {
      "type": "object",
      "properties": {
        "abbreviation": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "utc_offset": {
          "type": "string"
        },
        "utc_offset_hours": {
          "type": "integer"
        }
      }
    },
    "url": {
      "type": "string"
    }
  }
}
```

## Request example
Scenario: Official example · Live API.SH response · Minimal request
```bash
curl \
  'https://api.openany.si/v1/agent-apis/apish/timeanddate/v1/time?output=json&place=usa%2Fnew-york&raw=0' \
  -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,
  "credits_used": 1,
  "daylight_saving": [
    {
      "change": "Forward 1 hour",
      "date": "Mar 8, 2026",
      "event": "DST started"
    },
    {
      "change": "Back 1 hour",
      "date": "Nov 1, 2026",
      "event": "DST ended"
    }
  ],
  "fetched_at": "2026-11-19T12:20:16.780Z",
  "local_date": "Thursday, November 19, 2026",
  "local_time": "07:20:16",
  "location": {
    "coordinates": "40°43'N / 74°01'W",
    "country": "United States",
    "currency": "United States Dollar (USD)",
    "dialing_code": "+1",
    "elevation_m": 8,
    "languages": "English",
    "lat": 40.709,
    "lon": -74.011,
    "population": null,
    "region": null,
    "state": "New York (NY)"
  },
  "moon": {
    "illumination_percent": 69.9,
    "next_phase": {
      "date": "November 24, 2026",
      "phase": "Full Moon",
      "time": "09:53"
    },
    "previous_phase": {
      "date": "November 17, 2026",
      "phase": "First Quarter",
      "time": "06:47"
    },
    "rise": "13:35",
    "set": "01:00"
  },
  "name": "New York, New York, USA",
  "place": "usa/new-york",
  "sun": {
    "astronomical_twilight": {
      "evening_end": "18:10",
      "evening_start": "17:37",
      "morning_end": "05:44",
      "morning_start": "05:12"
    },
    "civil_twilight": {
      "evening_end": "17:04",
      "evening_start": "16:34",
      "morning_end": "06:47",
      "morning_start": "06:17"
    },
    "day_length": "9 hours, 47 minutes",
    "day_length_change": "-1m 51s shorter",
    "nautical_twilight": {
      "evening_end": "17:37",
      "evening_start": "17:04",
      "morning_end": "06:17",
      "morning_start": "05:44"
    },
    "solar_noon": "11:41",
    "solar_noon_altitude": 29.7,
    "sunrise": "06:47",
    "sunrise_azimuth": 115,
    "sunset": "16:34",
    "sunset_azimuth": 245
  },
  "tides": [
    {
      "kind": "high",
      "time": "03:08"
    },
    {
      "kind": "low",
      "time": "09:40"
    },
    {
      "kind": "high",
      "time": "15:26"
    },
    {
      "kind": "low",
      "time": "22:00"
    }
  ],
  "time_zone": {
    "abbreviation": "EST",
    "name": "Eastern Standard Time",
    "utc_offset": "UTC/GMT -5 hours",
    "utc_offset_hours": -5
  },
  "url": "https://www.timeanddate.com/worldclock/usa/new-york"
}
```

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

## Available implementations
- apish: https://openany.si/market/apis/timeanddate/timeanddate-current-local-time-in-a-place-api/?offering=784bcaf0-8a61-44f4-bed5-e3d405b4179c

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