# Recruiting phase 3 trials for type 2 diabetes

**Use case:** 

Searches ClinicalTrials.gov for interventional phase 3 studies in type 2 diabetes that are recruiting right now, newest update first, and returns one row each: NCT id, title, status, phase, lead sponsor and sponsor class, enrolment, start and primary completion dates, conditions, interventions, site count, countries and the registry URL. Change the condition or phase. $0.50 per 1,000 trials.

## Input

```json
{
  "conditions": [
    "type 2 diabetes"
  ],
  "statuses": [
    "RECRUITING"
  ],
  "maxTrials": 100,
  "trialFields": "summary",
  "sort": "LastUpdatePostDate:desc",
  "interventions": [],
  "terms": [],
  "sponsors": [],
  "leadSponsors": [],
  "nctIds": [],
  "phases": [
    "PHASE3"
  ],
  "studyTypes": [
    "INTERVENTIONAL"
  ],
  "locationName": "",
  "updatedSince": "",
  "fdaEndpoints": [],
  "drugNames": [],
  "deviceNames": [],
  "fdaSearch": "",
  "fdaCount": [],
  "maxFdaRecords": 100,
  "fdaDateFrom": "",
  "fdaDateTo": "",
  "fdaFullText": false,
  "fdaRaw": true,
  "openFdaApiKey": "<YOUR_SECRET>",
  "location": {},
  "startDateFrom": "",
  "startDateTo": "",
  "titles": [],
  "outcomes": [],
  "includeResults": false,
  "maxResultFetches": 25,
  "maxLocationsPerTrial": 50,
  "includeSummary": true,
  "maxConcurrency": 2,
  "maxRunSecs": 240,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

## Output

```json
{
  "nctId": {
    "label": "NCT ID",
    "format": "string"
  },
  "title": {
    "label": "Title",
    "format": "string"
  },
  "status": {
    "label": "Overall status",
    "format": "string"
  },
  "phases": {
    "label": "Phases",
    "format": "array"
  },
  "studyType": {
    "label": "Study type",
    "format": "string"
  },
  "conditions": {
    "label": "Conditions",
    "format": "array"
  },
  "interventions": {
    "label": "Interventions",
    "format": "array"
  },
  "leadSponsor": {
    "label": "Lead sponsor",
    "format": "string"
  },
  "sponsorClass": {
    "label": "Sponsor class",
    "format": "string"
  },
  "enrollment": {
    "label": "Enrollment",
    "format": "integer"
  },
  "startDate": {
    "label": "Start date",
    "format": "string"
  },
  "primaryCompletionDate": {
    "label": "Primary completion date",
    "format": "string"
  },
  "lastUpdatedAt": {
    "label": "Last updated",
    "format": "string"
  },
  "hasResults": {
    "label": "Has posted results",
    "format": "boolean"
  },
  "locationsCount": {
    "label": "Locations",
    "format": "integer"
  },
  "countries": {
    "label": "Countries",
    "format": "array"
  },
  "sourceUrl": {
    "label": "Source URL",
    "format": "string"
  }
}
```

## About this Actor

This example demonstrates how to use [Clinical Trials & FDA API — ClinicalTrials.gov + openFDA](https://apify.com/insight.solutions/clinical-trials-fda-api.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/insight.solutions/clinical-trials-fda-api.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
This Task's input is already configured above — use it as-is rather than inventing a new one.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

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

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).
