version: Get API version

API: clinicaltrials.gov:clinicaltrials.gov-api
Endpoint: /version
Response format: application/json
Auth: none
Method: GET
Last Status: 200
Latency: 196ms

Description

Returns the current API version and data timestamp. This is the simplest endpoint in the API and serves as a health check - it doesn't require any parameters and always returns the API version string (e.g., "2.0.5") and the timestamp when the data was last updated. Call this endpoint when you want to verify the API is online, check which version is deployed, or confirm your integration is working before making more complex queries. The response is always small and fast, making it ideal for monitoring and testing connectivity.

From spec: Returns the current API version and data timestamp.

Usage Tips

- This endpoint accepts no parameters and returns a static response - Use as a quick health check before attempting complex searches - The dataTimestamp indicates when the underlying database was last refreshed - Response is always small (~70 bytes) and fast

Examples (1)

Get API version curl

Retrieves the current API version and data timestamp - a simple health check endpoint.

curl 'https://clinicaltrials.gov/api/v2/version'
import requests

resp = requests.get("https://clinicaltrials.gov/api/v2/version")
data = resp.json()
import zingu_apis

api = zingu_apis.api("clinicaltrials")
result = api.fetch("version")

for item in result:
    print(item)
const resp = await fetch("https://clinicaltrials.gov/api/v2/version");
const data = await resp.json();

Probe History

Latency

Status Codes

TimeStatusLatencySize
2026-04-16 17:39:20.643488 200 196ms
2026-04-16 04:00:12.684452 200 228ms
2026-04-15 01:17:02.084263 200 284ms
2026-04-14 02:41:37.837295 200 203ms
2026-04-12 13:32:48.081714 200 181ms
2026-04-10 02:35:29.456607 200 164ms
2026-04-09 02:32:09.072190 200 190ms
2026-04-08 07:55:17.825167 200 201ms
2026-04-07 00:49:36.610986 200 206ms
2026-04-05 16:56:42.347241 ERR
2026-04-05 00:08:58.307458 200 269ms
2026-04-04 02:08:27.224169 200 202ms
2026-04-03 12:24:19.033823 200 621ms
2026-03-30 02:29:19.567042 200 212ms
2026-03-29 13:19:23.419671 200 190ms
2026-03-23 09:01:12.055890 200 217ms