# Find Recruiting Diabetes Clinical Trials

**Use case:** 

Find currently recruiting diabetes studies from ClinicalTrials.gov with NCT IDs, phases, enrollment, sponsors, dates, and locations.

## Input

```json
{
  "query": "diabetes",
  "status": [
    "RECRUITING"
  ],
  "max_items": 10
}
```

## Output

```json
{
  "nct_id": {
    "label": "NCT ID",
    "format": "string"
  },
  "title": {
    "label": "Title",
    "format": "string"
  },
  "status": {
    "label": "Overall Status",
    "format": "string"
  },
  "phase": {
    "label": "Phase",
    "format": "string"
  },
  "study_type": {
    "label": "Study Type",
    "format": "string"
  },
  "conditions": {
    "label": "Conditions",
    "format": "string"
  },
  "interventions": {
    "label": "Interventions",
    "format": "string"
  },
  "sponsor": {
    "label": "Lead Sponsor",
    "format": "string"
  },
  "sponsor_class": {
    "label": "Sponsor Class",
    "format": "string"
  },
  "enrollment": {
    "label": "Enrollment",
    "format": "integer"
  },
  "start_date": {
    "label": "Start Date",
    "format": "string"
  },
  "primary_completion_date": {
    "label": "Primary Completion Date",
    "format": "string"
  },
  "location_count": {
    "label": "Location Count",
    "format": "integer"
  },
  "countries": {
    "label": "Countries",
    "format": "string"
  },
  "url": {
    "label": "Source record URL",
    "format": "string"
  }
}
```

## About this Actor

This example demonstrates how to use [Clinical Trials API - ClinicalTrials.gov Search & Data Export](https://apify.com/captainhandsome/clinical-trials-search.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/captainhandsome/clinical-trials-search.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/captainhandsome/clinical-trials-search.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
