Skip to main content
POST
Get World Time

Request contract

  • Method and path: POST /apis/v1/api-ninjas/get-worldtime
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/api-ninjas/get-worldtime
Complete OpenAPI definition Effective request declaration (including authentication and referenced schemas):

Cost and request rules

Usage-based pricing. Default request estimate: $0.00089 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
city
string

City name to get current time. PREMIUM ONLY - requires premium API subscription.

Examples:

"London"

"New York"

"Tokyo"

lat
number

Latitude coordinate in decimal degrees (range: -90 to 90). PREMIUM ONLY - requires premium API subscription. Must be used with 'lon' parameter.

Required range: -90 <= x <= 90
lon
number

Longitude coordinate in decimal degrees (range: -180 to 180). PREMIUM ONLY - requires premium API subscription. Must be used with 'lat' parameter.

Required range: -180 <= x <= 180
timezone
string

IANA timezone identifier (e.g., 'America/New_York', 'Europe/London', 'Asia/Tokyo'). Available in FREE tier. Use this to get current time by timezone name.

Examples:

"America/New_York"

"Europe/London"

"Asia/Tokyo"

Response

Tool result data

date
string
datetime
string
day
string
day_of_week
string
hour
string
minute
string
month
string
second
string
timezone
string
year
string