← Back to Blog

Unlocking Clinical Trials: The GET /api/v1/clinical-trials/{nctId} Endpoint of the Free Cure Cancer With AI API

August 24, 2026

Modern empty large white hall of terminal with luminous bright lamps on ceiling

Photo by Stanislav Kondratiev on Pexels

Clinical trials are crucial for advancing cancer research and treatment options. However, finding the right clinical trial can be daunting for patients and caregivers. The GET /api/v1/clinical-trials/{nctId} endpoint of the free Cure Cancer With AI API simplifies this process by allowing users to fetch detailed information about specific clinical trials using their unique NCT IDs or internal IDs.

Why This Endpoint Matters

This endpoint is essential because it directly addresses a common challenge faced by patients: understanding the eligibility and location of clinical trials. When patients explore potential trials, knowing whether they meet the eligibility criteria and where the trials are located is crucial for making informed decisions about participation. By providing this information in a structured format, this endpoint empowers patients, researchers, and developers to better access and manage clinical trial data.

How to Use It

The GET /api/v1/clinical-trials/{nctId} endpoint allows you to retrieve detailed information about a specific clinical trial by providing its NCT ID or internal ID as a path parameter. Here's a breakdown of how it works:

  • Method: GET
  • Path: /api/v1/clinical-trials/{nctId}
  • Parameters:
    • nctId: The unique identifier for the clinical trial (either NCT ID or internal ID).

The response from the endpoint includes a single data{} record, which contains:

  • eligibilityCriteria: The criteria that determine if a patient is eligible to participate in the trial.
  • locations: The geographical locations where the trial is being conducted.

Here’s a code example using curl to fetch clinical trial details:

curl -X GET "https://curecancerwithai.com/api/v1/clinical-trials/NCT123456" \
-H "Authorization: Bearer ccw_live_YOUR_KEY"

This command sends a GET request to the specified endpoint while including the necessary authorization header. Replace NCT123456 with the actual NCT ID of the clinical trial you wish to query, and substitute YOUR_KEY with your valid API key.

What You Can Build

Here are some concrete use cases for this endpoint:

  • Render a Trial Detail Page: If you are developing a web application for patients, you can use this endpoint to display detailed information about a specific clinical trial, including eligibility criteria and locations.
  • Check Eligibility Against Patient Profiles: For developers creating decision support tools, this endpoint can help compare a patient's medical profile against trial eligibility criteria, streamlining the process of finding suitable trials.
  • Map Trial Locations: By integrating location data from the response, you can visualize trial locations on a map, helping patients find trials close to them.

Get Started for Free

The Cure Cancer With AI API is completely free! You can create your API key at /api-keys and explore the full documentation, including all parameters and code samples, at /developers. The free tier allows you to make up to 100 requests per hour, providing ample opportunity to explore and build innovative solutions using oncology data.

Remember, the information provided by the API, including clinical trial details, is purely for informational and research purposes and should not be interpreted as medical advice. Always consult with a healthcare professional for any medical concerns.

In conclusion, the GET /api/v1/clinical-trials/{nctId} endpoint is a powerful tool for anyone looking to access detailed clinical trial information. By leveraging this endpoint, developers can create meaningful applications that enhance patient access to vital cancer research opportunities.

To dive deeper into practical AI-for-cancer-research updates, explore our latest blog posts, learn more about our mission, and see how you can support ongoing work on our donations page.