curl --request POST \
--url https://api.aisa.one/apis/v1/clinicaltrials-gov/clinical-trials/study-dates \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"nct_ids": [
"NCT05159778",
"NCT03544723",
"NCT05681728"
]
}
'import requests
url = "https://api.aisa.one/apis/v1/clinicaltrials-gov/clinical-trials/study-dates"
payload = { "nct_ids": ["NCT05159778", "NCT03544723", "NCT05681728"] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({nct_ids: ['NCT05159778', 'NCT03544723', 'NCT05681728']})
};
fetch('https://api.aisa.one/apis/v1/clinicaltrials-gov/clinical-trials/study-dates', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/clinicaltrials-gov/clinical-trials/study-dates",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'nct_ids' => [
'NCT05159778',
'NCT03544723',
'NCT05681728'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/clinicaltrials-gov/clinical-trials/study-dates"
payload := strings.NewReader("{\n \"nct_ids\": [\n \"NCT05159778\",\n \"NCT03544723\",\n \"NCT05681728\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/clinicaltrials-gov/clinical-trials/study-dates")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"nct_ids\": [\n \"NCT05159778\",\n \"NCT03544723\",\n \"NCT05681728\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/clinicaltrials-gov/clinical-trials/study-dates")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"nct_ids\": [\n \"NCT05159778\",\n \"NCT03544723\",\n \"NCT05681728\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"api_url": "https://clinicaltrials.gov/api/v2/studies?filter.ids=NCT05159778,NCT03544723,NCT05681728&fields=NCTId,OverallStatus,LastKnownStatus,WhyStopped,StatusVerifiedDate,StartDateStruct,PrimaryCompletionDateStruct,CompletionDateStruct,StudyFirstPostDateStruct,LastUpdatePostDateStruct&countTotal=true&pageSize=1000",
"found_count": 3,
"not_found_ids": [],
"observed_at_ms": 1790705149522,
"requested_count": 3,
"studies": [
{
"completion_date": {
"date": "2023-04-12",
"type": "ACTUAL"
},
"last_known_status": null,
"last_update_post_date": {
"date": "2023-06-22",
"type": "ACTUAL"
},
"nct_id": "NCT05159778",
"overall_status": "COMPLETED",
"primary_completion_date": {
"date": "2023-03-22",
"type": "ACTUAL"
},
"source_url": "https://clinicaltrials.gov/study/NCT05159778",
"start_date": {
"date": "2021-11-09",
"type": "ACTUAL"
},
"status_verified_date": "2022-07",
"study_first_post_date": {
"date": "2021-12-16",
"type": "ACTUAL"
},
"why_stopped": null
},
{
"completion_date": {
"date": "2022-12-31",
"type": "ESTIMATED"
},
"last_known_status": "RECRUITING",
"last_update_post_date": {
"date": "2020-06-09",
"type": "ACTUAL"
},
"nct_id": "NCT03544723",
"overall_status": "UNKNOWN",
"primary_completion_date": {
"date": "2022-06-30",
"type": "ESTIMATED"
},
"source_url": "https://clinicaltrials.gov/study/NCT03544723",
"start_date": {
"date": "2018-10-01",
"type": "ACTUAL"
},
"status_verified_date": "2020-06",
"study_first_post_date": {
"date": "2018-06-04",
"type": "ACTUAL"
},
"why_stopped": null
},
{
"completion_date": {
"date": "2024-06-01",
"type": "ESTIMATED"
},
"last_known_status": "RECRUITING",
"last_update_post_date": {
"date": "2023-01-12",
"type": "ACTUAL"
},
"nct_id": "NCT05681728",
"overall_status": "UNKNOWN",
"primary_completion_date": {
"date": "2024-02-01",
"type": "ESTIMATED"
},
"source_url": "https://clinicaltrials.gov/study/NCT05681728",
"start_date": {
"date": "2022-02-01",
"type": "ACTUAL"
},
"status_verified_date": "2022-12",
"study_first_post_date": {
"date": "2023-01-12",
"type": "ACTUAL"
},
"why_stopped": null
}
]
}Study dates
You already have NCT numbers and need to know whether their start and primary completion dates are actual or estimated, or their current status.
curl --request POST \
--url https://api.aisa.one/apis/v1/clinicaltrials-gov/clinical-trials/study-dates \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"nct_ids": [
"NCT05159778",
"NCT03544723",
"NCT05681728"
]
}
'import requests
url = "https://api.aisa.one/apis/v1/clinicaltrials-gov/clinical-trials/study-dates"
payload = { "nct_ids": ["NCT05159778", "NCT03544723", "NCT05681728"] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({nct_ids: ['NCT05159778', 'NCT03544723', 'NCT05681728']})
};
fetch('https://api.aisa.one/apis/v1/clinicaltrials-gov/clinical-trials/study-dates', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/clinicaltrials-gov/clinical-trials/study-dates",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'nct_ids' => [
'NCT05159778',
'NCT03544723',
'NCT05681728'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/clinicaltrials-gov/clinical-trials/study-dates"
payload := strings.NewReader("{\n \"nct_ids\": [\n \"NCT05159778\",\n \"NCT03544723\",\n \"NCT05681728\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/clinicaltrials-gov/clinical-trials/study-dates")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"nct_ids\": [\n \"NCT05159778\",\n \"NCT03544723\",\n \"NCT05681728\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/clinicaltrials-gov/clinical-trials/study-dates")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"nct_ids\": [\n \"NCT05159778\",\n \"NCT03544723\",\n \"NCT05681728\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"api_url": "https://clinicaltrials.gov/api/v2/studies?filter.ids=NCT05159778,NCT03544723,NCT05681728&fields=NCTId,OverallStatus,LastKnownStatus,WhyStopped,StatusVerifiedDate,StartDateStruct,PrimaryCompletionDateStruct,CompletionDateStruct,StudyFirstPostDateStruct,LastUpdatePostDateStruct&countTotal=true&pageSize=1000",
"found_count": 3,
"not_found_ids": [],
"observed_at_ms": 1790705149522,
"requested_count": 3,
"studies": [
{
"completion_date": {
"date": "2023-04-12",
"type": "ACTUAL"
},
"last_known_status": null,
"last_update_post_date": {
"date": "2023-06-22",
"type": "ACTUAL"
},
"nct_id": "NCT05159778",
"overall_status": "COMPLETED",
"primary_completion_date": {
"date": "2023-03-22",
"type": "ACTUAL"
},
"source_url": "https://clinicaltrials.gov/study/NCT05159778",
"start_date": {
"date": "2021-11-09",
"type": "ACTUAL"
},
"status_verified_date": "2022-07",
"study_first_post_date": {
"date": "2021-12-16",
"type": "ACTUAL"
},
"why_stopped": null
},
{
"completion_date": {
"date": "2022-12-31",
"type": "ESTIMATED"
},
"last_known_status": "RECRUITING",
"last_update_post_date": {
"date": "2020-06-09",
"type": "ACTUAL"
},
"nct_id": "NCT03544723",
"overall_status": "UNKNOWN",
"primary_completion_date": {
"date": "2022-06-30",
"type": "ESTIMATED"
},
"source_url": "https://clinicaltrials.gov/study/NCT03544723",
"start_date": {
"date": "2018-10-01",
"type": "ACTUAL"
},
"status_verified_date": "2020-06",
"study_first_post_date": {
"date": "2018-06-04",
"type": "ACTUAL"
},
"why_stopped": null
},
{
"completion_date": {
"date": "2024-06-01",
"type": "ESTIMATED"
},
"last_known_status": "RECRUITING",
"last_update_post_date": {
"date": "2023-01-12",
"type": "ACTUAL"
},
"nct_id": "NCT05681728",
"overall_status": "UNKNOWN",
"primary_completion_date": {
"date": "2024-02-01",
"type": "ESTIMATED"
},
"source_url": "https://clinicaltrials.gov/study/NCT05681728",
"start_date": {
"date": "2022-02-01",
"type": "ACTUAL"
},
"status_verified_date": "2022-12",
"study_first_post_date": {
"date": "2023-01-12",
"type": "ACTUAL"
},
"why_stopped": null
}
]
}Request contract
- Method and path: POST /apis/v1/clinicaltrials-gov/clinical-trials/study-dates
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/clinicaltrials-gov/clinical-trials/study-dates
{
"operationId": "clinicaltrials-gov.clinical-trials.study-dates",
"method": "POST",
"path": "/apis/v1/clinicaltrials-gov/clinical-trials/study-dates",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [],
"security": [
{
"bearerAuth": []
}
],
"requestBody": {
"content": {
"application/json": {
"examples": {
"provider": {
"summary": "Official provider example; checked against AIsa request constraints",
"value": {
"nct_ids": [
"NCT05159778",
"NCT03544723",
"NCT05681728"
]
}
}
},
"schema": {
"additionalProperties": true,
"properties": {
"nct_ids": {
"description": "NCT numbers to resolve. Duplicates are collapsed.",
"items": {
"type": "string"
},
"type": "array"
}
},
"required": [
"nct_ids"
],
"type": "object"
}
}
},
"required": true
},
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
Cost and request rules
Usage-based pricing. Default request estimate: $0.0005 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.Authorizations
Response
Raw status and date metadata for up to 200 known NCT numbers in one request (GET /api/v2/studies?filter.ids=...). Each study returns overallStatus, lastKnownStatus, whyStopped, statusVerifiedDate and the start, primary-completion, completion, first-post and last-update-post date structs with their ACTUAL or ESTIMATED type exactly as the registry states them. NCT numbers the registry does not know are listed in not_found_ids; the call fails with not_found only when none of them is known.
The response contains the tool result directly.
The provider identifies studies as the primary payload key.
| Documented field | Provider type | Description |
|---|---|---|
completion_date | object | A registry date struct; null when the record (or the requested subset) has no such date. |
last_known_status | string | Set only when overall_status is UNKNOWN. |
last_update_post_date | object | A registry date struct; null when the record (or the requested subset) has no such date. |
nct_id | string | |
overall_status | string | |
primary_completion_date | object | A registry date struct; null when the record (or the requested subset) has no such date. |
source_url | string | |
start_date | object | A registry date struct; null when the record (or the requested subset) has no such date. |
status_verified_date | string | |
study_first_post_date | object | A registry date struct; null when the record (or the requested subset) has no such date. |
why_stopped | string |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.