Skip to main content

Get Server Time

Description

Get the current system time.

HTTP Request

GET /fapi/v1/time

Weight

1

Response Example

{
"serverTime": 1499827319559 // Current system time
}

Code Examples

cURL

curl -s "https://api-sepolia.ztdx.io/fapi/v1/time"
# Response: {"serverTime":1774583534576}

Python

import requests

base_url = "https://api.ztdx.io"
response = requests.get(f"{base_url}/fapi/v1/time")
print(response.json()) # {"serverTime": 1774583534576}