Every API here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for apis
7 MCP tools reach this
find_apisBrowse and filter every API in the catalog.
get_api_artifactsOne API's artifacts, grouped by type.
get_openapiThe primary OpenAPI for this API.
find_similar_apisAPIs that look like this one.
apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
resolveTurn a domain, URL or GitHub org into the provider it belongs to.
find_cohortsEvery scored population of providers in the catalog.
All 92 tools →
Call it yourself
curl for this page
This API
curl "https://apis.io/api/v1/apis/microsoft-azure-maps:microsoft-azure-maps-timezone-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Maps Timezone API
version: '1.0'
description: Azure Maps Time Zone REST APIs
x-typespec-generated:
- emitter: '@azure-tools/typespec-autorest'
security:
- AadToken:
- https://atlas.microsoft.com/.default
- SharedKey: []
- SasToken: []
tags:
- name: Timezone
paths:
/timezone/byCoordinates/{format}:
get:
operationId: Timezone_GetTimezoneByCoordinates
summary: Use to get the current, historical, and future time zone information for the…
description: 'The `Get Timezone By Coordinates` API is an HTTP `GET` request that returns
current, historical, and future time zone information for a specified
latitude-longitude pair. In addition, the API provides sunset and sunrise times
for a given location, with the exception of regions that observe solar days.'
parameters:
- $ref: '#/components/parameters/Azure.Core.Foundations.ApiVersionParameter'
- name: format
in: path
description: Desired format of the response. Only `json` format is supported.
required: true
x-ms-enum:
name: JsonFormat
modelAsString: true
values:
- name: json
value: json
description: '[The JavaScript Object Notation Data Interchange
Format](https://tools.ietf.org/html/rfc8259)'
schema:
type: string
enum:
- json
- name: x-ms-client-id
in: header
description: 'Indicates the account intended for use with the Microsoft Entra ID security
model. This unique ID for the Azure Maps account can be obtained from the
[Azure Maps management plane Account API](/rest/api/maps-management/accounts).
For more information on using Microsoft Entra ID security in Azure Maps, see
[Manage authentication in Azure
Maps](/azure/azure-maps/how-to-manage-authentication).'
required: false
x-ms-client-name: clientId
schema:
type: string
- name: Accept-Language
in: header
description: 'Specifies the language code in which the timezone names should be returned. If
no language code is provided, the response will be in "EN". Please refer to
[Supported
Languages](https://docs.microsoft.com/azure/azure-maps/supported-languages) for
details.'
required: false
x-ms-client-name: acceptLanguage
schema:
type: string
- name: options
in: query
description: 'Alternatively, use alias "o". Options available for types of information
returned in the result.'
required: false
x-ms-enum:
name: TimezoneOptions
modelAsString: true
values:
- name: none
value: none
description: Do not include zoneinfo or transitions in the result.
- name: zoneInfo
value: zoneInfo
description: Include additional time zone info in the result.
- name: transitions
value: transitions
description: 'Include transition information in the result (The number of transitions is
currently capped at 250).'
- name: all
value: all
description: Include both zoneinfo and transitions in the result.
schema:
type: string
enum:
- none
- zoneInfo
- transitions
- all
- name: timeStamp
in: query
description: 'Alternatively, use alias "stamp", or "s". Reference time, if omitted, the API
will use the machine time serving the request.'
required: false
schema:
type: string
format: date-time
- name: transitionsFrom
in: query
description: 'Alternatively, use alias "tf". The start date from which daylight savings time
(DST) transitions are requested, only applies when "options" = all or "options"
= transitions.'
required: false
x-ms-client-name: daylightSavingsTimeFrom
schema:
type: string
format: date-time
- name: transitionsYears
in: query
description: 'Alternatively, use alias "ty". The number of years from "transitionsFrom" for
which DST transitions are requested, only applies when "options" = all or
"options" = transitions.'
required: false
x-ms-client-name: daylightSavingsTimeLastingYears
schema:
type: integer
format: int32
- name: query
in: query
description: 'Coordinates of the point for which time zone information is requested. This
parameter is a list of coordinates, containing a pair of coordinate(lat, long).
When this endpoint is called directly, coordinates are passed in as a single
string containing coordinates, separated by commas.'
required: true
x-ms-client-name: coordinates
style: form
explode: false
schema:
type: array
items:
type: number
format: double
responses:
'200':
description: The request has succeeded.
content:
application/json:
schema:
$ref: '#/components/schemas/TimezoneResult'
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
tags:
- Timezone
/timezone/byId/{format}:
get:
operationId: Timezone_GetTimezoneByID
summary: Use to get the current, historical, and future time zone information for the…
description: 'The `Get Timezone By ID` API is an HTTP `GET` request that returns current,
historical, and future time zone information for the specified IANA time zone
ID.'
parameters:
- $ref: '#/components/parameters/Azure.Core.Foundations.ApiVersionParameter'
- name: format
in: path
description: Desired format of the response. Only `json` format is supported.
required: true
x-ms-enum:
name: JsonFormat
modelAsString: true
values:
- name: json
value: json
description: '[The JavaScript Object Notation Data Interchange
Format](https://tools.ietf.org/html/rfc8259)'
schema:
type: string
enum:
- json
- name: x-ms-client-id
in: header
description: 'Indicates the account intended for use with the Microsoft Entra ID security
model. This unique ID for the Azure Maps account can be obtained from the
[Azure Maps management plane Account API](/rest/api/maps-management/accounts).
For more information on using Microsoft Entra ID security in Azure Maps, see
[Manage authentication in Azure
Maps](/azure/azure-maps/how-to-manage-authentication).'
required: false
x-ms-client-name: clientId
schema:
type: string
- name: Accept-Language
in: header
description: 'Specifies the language code in which the timezone names should be returned. If
no language code is provided, the response will be in "EN". Please refer to
[Supported
Languages](https://docs.microsoft.com/azure/azure-maps/supported-languages) for
details.'
required: false
x-ms-client-name: acceptLanguage
schema:
type: string
- name: options
in: query
description: 'Alternatively, use alias "o". Options available for types of information
returned in the result.'
required: false
x-ms-enum:
name: TimezoneOptions
modelAsString: true
values:
- name: none
value: none
description: Do not include zoneinfo or transitions in the result.
- name: zoneInfo
value: zoneInfo
description: Include additional time zone info in the result.
- name: transitions
value: transitions
description: 'Include transition information in the result (The number of transitions is
currently capped at 250).'
- name: all
value: all
description: Include both zoneinfo and transitions in the result.
schema:
type: string
enum:
- none
- zoneInfo
- transitions
- all
- name: timeStamp
in: query
description: 'Alternatively, use alias "stamp", or "s". Reference time, if omitted, the API
will use the machine time serving the request.'
required: false
schema:
type: string
format: date-time
- name: transitionsFrom
in: query
description: 'Alternatively, use alias "tf". The start date from which daylight savings time
(DST) transitions are requested, only applies when "options" = all or "options"
= transitions.'
required: false
x-ms-client-name: daylightSavingsTimeFrom
schema:
type: string
format: date-time
- name: transitionsYears
in: query
description: 'Alternatively, use alias "ty". The number of years from "transitionsFrom" for
which DST transitions are requested, only applies when "options" = all or
"options" = transitions.'
required: false
x-ms-client-name: daylightSavingsTimeLastingYears
schema:
type: integer
format: int32
- name: query
in: query
description: The IANA time zone ID.
required: true
x-ms-client-name: timezoneId
schema:
type: string
responses:
'200':
description: The request has succeeded.
content:
application/json:
schema:
$ref: '#/components/schemas/TimezoneResult'
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
tags:
- Timezone
/timezone/enumIana/{format}:
get:
operationId: Timezone_GetTimezoneEnumIANA
summary: Use to get the list of IANA time zone IDs
description: 'The `Get IANA Time Zones` API is an HTTP `GET` request that returns a full list
of Internet Assigned Numbers Authority (IANA) time zone IDs. Updates to the
IANA service are reflected in the system within one day.'
parameters:
- $ref: '#/components/parameters/Azure.Core.Foundations.ApiVersionParameter'
- name: format
in: path
description: Desired format of the response. Only `json` format is supported.
required: true
x-ms-enum:
name: JsonFormat
modelAsString: true
values:
- name: json
value: json
description: '[The JavaScript Object Notation Data Interchange
Format](https://tools.ietf.org/html/rfc8259)'
schema:
type: string
enum:
- json
- name: x-ms-client-id
in: header
description: 'Indicates the account intended for use with the Microsoft Entra ID security
model. This unique ID for the Azure Maps account can be obtained from the
[Azure Maps management plane Account API](/rest/api/maps-management/accounts).
For more information on using Microsoft Entra ID security in Azure Maps, see
[Manage authentication in Azure
Maps](/azure/azure-maps/how-to-manage-authentication).'
required: false
x-ms-client-name: clientId
schema:
type: string
responses:
'200':
description: The request has succeeded.
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/IanaId'
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
tags:
- Timezone
/timezone/enumWindows/{format}:
get:
operationId: Timezone_GetTimezoneEnumWindows
summary: Use to get the list of Windows Time Zone IDs
description: 'The `Get Windows Time Zones` API is an HTTP `GET` request that returns a full
list of Windows Time Zone IDs.'
parameters:
- $ref: '#/components/parameters/Azure.Core.Foundations.ApiVersionParameter'
- name: format
in: path
description: Desired format of the response. Only `json` format is supported.
required: true
x-ms-enum:
name: JsonFormat
modelAsString: true
values:
- name: json
value: json
description: '[The JavaScript Object Notation Data Interchange
Format](https://tools.ietf.org/html/rfc8259)'
schema:
type: string
enum:
- json
- name: x-ms-client-id
in: header
description: 'Indicates the account intended for use with the Microsoft Entra ID security
model. This unique ID for the Azure Maps account can be obtained from the
[Azure Maps management plane Account API](/rest/api/maps-management/accounts).
For more information on using Microsoft Entra ID security in Azure Maps, see
[Manage authentication in Azure
Maps](/azure/azure-maps/how-to-manage-authentication).'
required: false
x-ms-client-name: clientId
schema:
type: string
responses:
'200':
description: The request has succeeded.
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/TimezoneWindows'
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
tags:
- Timezone
/timezone/ianaVersion/{format}:
get:
operationId: Timezone_GetTimezoneIANAVersion
summary: Use to get the current IANA version number
description: 'The `Get Time Zone IANA Version` API is an HTTP `GET` request that returns the
current Internet Assigned Numbers Authority (IANA) version number as Metadata.'
parameters:
- $ref: '#/components/parameters/Azure.Core.Foundations.ApiVersionParameter'
- name: format
in: path
description: Desired format of the response. Only `json` format is supported.
required: true
x-ms-enum:
name: JsonFormat
modelAsString: true
values:
- name: json
value: json
description: '[The JavaScript Object Notation Data Interchange
Format](https://tools.ietf.org/html/rfc8259)'
schema:
type: string
enum:
- json
- name: x-ms-client-id
in: header
description: 'Indicates the account intended for use with the Microsoft Entra ID security
model. This unique ID for the Azure Maps account can be obtained from the
[Azure Maps management plane Account API](/rest/api/maps-management/accounts).
For more information on using Microsoft Entra ID security in Azure Maps, see
[Manage authentication in Azure
Maps](/azure/azure-maps/how-to-manage-authentication).'
required: false
x-ms-client-name: clientId
schema:
type: string
responses:
'200':
description: The request has succeeded.
content:
application/json:
schema:
$ref: '#/components/schemas/TimezoneIanaVersionResult'
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
tags:
- Timezone
/timezone/windowsToIana/{format}:
get:
operationId: Timezone_GetTimezoneWindowsToIANA
summary: Use to get the IANA ID
description: 'The `Get Windows to IANA Time Zone` API is an HTTP `GET` request that returns a
corresponding Internet Assigned Numbers Authority (IANA) ID, given a valid
Windows Time Zone ID. Multiple IANA IDs may be returned for a single Windows
ID. It is possible to narrow these results by adding an optional territory
parameter.'
parameters:
- $ref: '#/components/parameters/Azure.Core.Foundations.ApiVersionParameter'
- name: format
in: path
description: Desired format of the response. Only `json` format is supported.
required: true
x-ms-enum:
name: JsonFormat
modelAsString: true
values:
- name: json
value: json
description: '[The JavaScript Object Notation Data Interchange
Format](https://tools.ietf.org/html/rfc8259)'
schema:
type: string
enum:
- json
- name: x-ms-client-id
in: header
description: 'Indicates the account intended for use with the Microsoft Entra ID security
model. This unique ID for the Azure Maps account can be obtained from the
[Azure Maps management plane Account API](/rest/api/maps-management/accounts).
For more information on using Microsoft Entra ID security in Azure Maps, see
[Manage authentication in Azure
Maps](/azure/azure-maps/how-to-manage-authentication).'
required: false
x-ms-client-name: clientId
schema:
type: string
- name: query
in: query
description: The Windows time zone ID.
required: true
x-ms-client-name: windowsTimezoneId
schema:
type: string
- name: territory
in: query
description: Windows Time Zone territory code.
required: false
x-ms-client-name: windowsTerritoryCode
schema:
type: string
responses:
'200':
description: The request has succeeded.
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/IanaId'
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
tags:
- Timezone
components:
schemas:
ErrorResponse:
type: object
description: 'Common error response for all Azure Resource Manager APIs to return error
details for failed operations. (This also follows the OData error response
format.).'
properties:
error:
$ref: '#/components/schemas/ErrorDetail'
description: The error object.
TimezoneId:
type: object
description: Timezone ID information.
properties:
id:
type: string
description: Id property
readOnly: true
aliases:
type: array
description: 'An array of time zone ID aliases. Only returned when [options]=*zoneinfo* or
*all*.
Note: may be null.'
items:
type: string
readOnly: true
countries:
type: array
description: 'An array of country/region records. Only returned when [options]=*zoneinfo* or
*all*.'
items:
$ref: '#/components/schemas/CountryRecord'
readOnly: true
names:
$ref: '#/components/schemas/TimezoneNames'
description: Timezone names object.
referenceTime:
$ref: '#/components/schemas/ReferenceTime'
description: Details in effect at the local time.
readOnly: true
representativePoint:
$ref: '#/components/schemas/RepresentativePoint'
description: Representative point property
readOnly: true
timeTransitions:
type: array
description: Time zone DST transitions from [transitionsFrom] until timestamp + 1 year.
items:
$ref: '#/components/schemas/TimeTransition'
readOnly: true
IanaId:
type: object
description: IANA time zone ID information.
properties:
id:
type: string
description: Id property
readOnly: true
isAlias:
type: boolean
description: IsAlias property
readOnly: true
aliasOf:
type: string
description: AliasOf property
readOnly: true
hasZone1970Location:
type: boolean
description: 'This attribute returns `True` if the IanaId has any country/zone associated
with it.'
readOnly: true
CountryRecord:
type: object
description: A country/region record.
properties:
name:
type: string
description: country/region Name
readOnly: true
code:
type: string
description: ISO-3166 2-letter country/region code for the country/region.
readOnly: true
RepresentativePoint:
type: object
description: Representative point property
properties:
latitude:
type: number
format: float
description: Latitude property
readOnly: true
longitude:
type: number
format: float
description: Longitude property
readOnly: true
TimezoneNames:
type: object
description: Timezone names object.
properties:
iso6391LanguageCode:
type: string
description: The ISO 639-1 language code of the Names
readOnly: true
generic:
type: string
description: Generic Name
readOnly: true
standard:
type: string
description: Standard Name
readOnly: true
daylight:
type: string
description: Daylight Name
readOnly: true
TimezoneIanaVersionResult:
type: object
description: This object is returned from a successful Timezone IANA Version call
properties:
version:
type: string
description: Version property
readOnly: true
ReferenceTime:
type: object
description: Details in effect at the local time.
properties:
tag:
type: string
description: 'Time zone name in effect at the reference timestamp (i.e. PST or PDT depending
whether Daylight Savings Time is in effect).'
readOnly: true
standardOffset:
type: string
description: UTC offset in effect at the `ReferenceUTCTimestamp`.
readOnly: true
daylightSavings:
type: string
description: Time saving in minutes in effect at the `ReferenceUTCTimestamp`.
readOnly: true
wallTime:
type: string
description: Current wall time at the given time zone as shown in the `Tag` property.
readOnly: true
posixTzValidYear:
type: integer
format: int32
description: 'The year this POSIX string is valid for. Note: A POSIX string will only be
valid in the given year.'
readOnly: true
posixTz:
type: string
description: POSIX string used to set the time zone environment variable.
readOnly: true
sunrise:
type: string
format: date-time
description: 'Sunrise at the given time zone as shown in the `Tag` property, populated only
when the call is `byCoordinates`. The sunrise is represented as a UTC timestamp
conforming to [RFC 3339, section
5.6](https://www.rfc-editor.org/rfc/rfc3339#section-5.6). Note that
the Timezone API does not return sunrise and sunset times when solar day is
observed in the requested region.'
readOnly: true
sunset:
type: string
format: date-time
description: 'Sunset at the given time zone as shown in the `Tag` property, populated only
when the call is `byCoordinates`. The sunset is represented as a UTC timestamp
conforming to [RFC 3339, section
5.6](https://www.rfc-editor.org/rfc/rfc3339#section-5.6). Note that
the Timezone API does not return sunrise and sunset times when solar day is
observed in the requested region.'
readOnly: true
ErrorAdditionalInfo:
type: object
description: The resource management error additional info.
properties:
type:
type: string
description: The additional info type.
readOnly: true
info:
type: object
description: The additional info.
additionalProperties:
type: string
readOnly: true
TimezoneResult:
type: object
description: 'This object is returned from a successful Timezone By ID call or By Coordinates
call'
properties:
version:
type: string
description: Version property
readOnly: true
referenceUtcTimestamp:
type: string
format: date-time
description: Reference Utc Timestamp property
readOnly: true
timeZones:
type: array
description: TimeZoneId array
items:
$ref: '#/components/schemas/TimezoneId'
readOnly: true
TimezoneWindows:
type: object
description: Windows timezone information with IANA mappings.
properties:
windowsId:
type: string
description: Windows Id property
readOnly: true
territory:
type: string
description: Territory property
readOnly: true
ianaIds:
type: array
description: IanaIds array
items:
type: string
ErrorDetail:
type: object
description: The error detail.
properties:
code:
type: string
description: The error code.
readOnly: true
message:
type: string
description: The error message.
readOnly: true
target:
type: string
description: The error target.
readOnly: true
details:
type: array
description: The error details.
items:
$ref: '#/components/schemas/ErrorDetail'
readOnly: true
additionalInfo:
type: array
description: The error additional info.
items:
$ref: '#/components/schemas/ErrorAdditionalInfo'
readOnly: true
TimeTransition:
type: object
description: Represents a time zone transition.
properties:
tag:
type: string
description: Tag property
readOnly: true
standardOffset:
type: string
description: StandardOffset property
readOnly: true
daylightSavings:
type: string
description: DaylightSavings property
readOnly: true
utcStart:
type: string
format: date-time
description: Start date, start time for this transition period
readOnly: true
utcEnd:
type: string
format: date-time
description: End date, end time for this transition period
readOnly: true
parameters:
Azure.Core.Foundations.ApiVersionParameter:
name: api-version
in: query
description: The API version to use for this operation.
required: true
x-ms-parameter-location: method
x-ms-client-name: apiVersion
schema:
type: string
minLength: 1
securitySchemes:
AadToken:
type: oauth2
flows:
implicit:
scopes:
https://atlas.microsoft.com/.default: ''
authorizationUrl: https://login.microsoftonline.com/common/oauth2/authorize
description: 'These are the [Microsoft Entra OAuth 2.0](https://docs.microsoft.com/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure role-based access](https://docs.microsoft.com/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure role-based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built-in role or a custom role composed of one or more permissions to Azure Maps REST APIs.
To implement scenarios, we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.
> [!NOTE]
>
> * This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).
> * The `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Microsoft Entra ID configurations.
> * The Azure role-based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, PowerShell, CLI, Azure SDKs, or REST APIs.
> * Usage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.
> * For more information on Microsoft identity platform, see [Microsoft identity platform overview](https://learn.microsoft.com/entra/identity-platform/v2-overview).'
SasToken:
type: apiKey
description: 'This is a shared access signature token is created from the List SAS operation on the [Azure Maps resource](https://aka.ms/amauth) through the Azure management plane via Azure portal, PowerShell, CLI, Azure SDKs, or REST APIs.
With this token, any application is authorized to access with Azure role-based access controls and fine-grain control to the expiration, rate, and region(s) of use for the particular token. In other words, the SAS Token can be used to allow applications to control access in a more secured way than the shared key.
For publicly exposed applications, our recommendation is to configure a specific list of allowed origins on the [Map account resource](https://aka.ms/amauth) to limit rendering abuse and regularly renew the SAS Token.'
name: SAS Token
in: header
SharedKey:
type: apiKey
description: 'This is a shared key that is provisioned when you [Create an Azure Maps account](https://docs.microsoft.com/azure/azure-maps/quick-demo-map-app#create-an-azure-maps-account) in the Azure portal or using PowerShell, CLI, Azure SDKs, or REST API.
With this key, any application can access all REST API. In other words, this key can be used as a master key in the account that they are issued in.
For publicly exposed applications, our recommendation is to use the [confidential client applications](https://docs.microsoft.com/azure/azure-maps/authentication-best-practices#confidential-client-applications) approach to access Azure Maps REST APIs so your key can be securely stored.'
name: subscription-key
in: header
x-ms-parameterized-host:
hostTemplate: '{endpoint}'
useSchemePrefix: false
parameters:
# --- truncated at 32 KB (32 KB total) ---
# Full source: https://artifacts.apis.io/microsoft-azure-maps/openapi/microsoft-azure-maps-timezone-api-openapi.yml