Broker API HubMenu

Capital.com API GET /api/v1/time

GET/api/v1/timeversion v1General

The server's current time as a millisecond timestamp. The reference says no authentication is needed, so it doubles as a connectivity test.

Risk warning: CFDs and spread bets are complex instruments and come with a high risk of losing money rapidly due to leverage. You can lose money on these products, and each provider publishes its own loss figure under FCA rules. You should consider whether you understand how they work and whether you can afford to take the high risk of losing your money. Automated and API trading can amplify losses through bugs, connectivity failures and runaway orders.

Independent and unofficialopen-api.capital.comchecked

Read on Capital.com's own reference at open-api.capital.com on 12 Oct 2026: method, path and the example response. The reference states that this call needs no authentication.

Parameters

No parameters recorded beyond authentication.

Request

Written from the method, path and parameters recorded on this page, against the demo host. Not executed against a live or demo account. Credentials are read from environment variables on your own machine and are never entered on this site. The request builder writes these same snippets, from the same record.

Python
import requests

BASE_URL = "https://demo-api-capital.backend-capital.com"  # the demo host
headers = {}
resp = requests.get(BASE_URL + "/api/v1/time", headers=headers, timeout=10)
resp.raise_for_status()
print(resp.json())
JavaScript
// Run as a module, for example a .mjs file, on a Node version that has fetch built in.
const BASE_URL = "https://demo-api-capital.backend-capital.com"; // the demo host
const res = await fetch(BASE_URL + "/api/v1/time", {
  method: "GET",
  headers: {
  },
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
console.log(await res.json());
curl
curl -X GET "https://demo-api-capital.backend-capital.com/api/v1/time"

Response

A mock response. The values are invented, so check field names against the official reference.

{
  "_mock": true,
  "serverTime": 1789718400000
}

Limits that apply at Capital.com

LimitValueScopeSource
Headline limit10/s per useruseropen-api.capital.comchecked

Capital.com API errors you may meet

All Capital.com API error codes, including 18 more not listed here.