> ## Documentation Index
> Fetch the complete documentation index at: https://aisa.one/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> - Base URLs: models `https://api.aisa.one/v1` (Gemini GenerateContent: `https://api.aisa.one/v1beta`); data APIs `https://api.aisa.one/apis/v1`. The `servers` of each operation in https://aisa.one/openapi.yaml is authoritative.
> - Auth: `Authorization: Bearer $AISA_API_KEY`. Never print, log, or commit the key.
> - MCP (preferred for agents): `https://mcp.aisa.one/mcp`, signed in with OAuth, so there is no key to paste.
> - Agent Skill: `npx skills add AIsa-team/agent-skills --skill aisa`. Fallback with the AIsa CLI: `aisa skills install aisa`.
> - Spending: docs, https://aisa.one/models, https://aisa.one/api, `/v1/models`, and MCP `search`, `list_categories`, `get_details`, `batch_quote`, and the `account` operation are free. Quote the exact calls before running them (MCP `batch_quote`, CLI `aisa quote --json`). If the quote reports `auto_execute_eligible: true`, run it unless the user set a tighter limit or asked only for a quote. Otherwise, tell the user in one message the planned calls, the quoted price, and a total USD budget for the task, then wait for approval. Direct HTTP calls follow the stricter rule at https://aisa.one/docs/get-started/cli.md#direct-http-fallback. Do not make paid calls to test availability. Full rule: https://aisa.one/llms.txt

# Search

> Discover NCT numbers for a topic before calling study or study_dates; list trials by sponsor, status or location.

## Request contract

* **Method and path:** POST /apis/v1/clinicaltrials-gov/clinical-trials/search
* **Availability:** enabled
* **Request URL template:** `https://api.aisa.one/apis/v1/clinicaltrials-gov/clinical-trials/search`

[Complete OpenAPI definition](https://aisa.one/docs/openapi/clinicaltrials-gov.json)

Effective request declaration (including authentication and referenced schemas):

```json theme={null}
{
  "operationId": "clinicaltrials-gov.clinical-trials.search",
  "method": "POST",
  "path": "/apis/v1/clinicaltrials-gov/clinical-trials/search",
  "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": {
              "condition": "Breast Cancer",
              "intervention": "Pembrolizumab",
              "page_size": 3
            }
          }
        },
        "schema": {
          "additionalProperties": true,
          "properties": {
            "advanced_filter": {
              "description": "Essie filter expression applied after the query (filter.advanced), e.g. AREA[StartDateType]ESTIMATED.",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "agg_filters": {
              "description": "Facet filters as the site encodes them (aggFilters), e.g. \"phase:3,status:rec\". Pattern: ^[a-zA-Z]+:[a-zA-Z0-9_ ]+(,[a-zA-Z]+:[a-zA-Z0-9_ ]+)*$.",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "condition": {
              "description": "Condition or disease (query.cond), e.g. \"Breast Cancer\". Essie syntax allowed.",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "intervention": {
              "description": "Intervention or treatment (query.intr), e.g. \"Pembrolizumab\".",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "location": {
              "description": "Location terms: city, state, country or facility (query.locn), e.g. \"Boston\".",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "near": {
              "additionalProperties": true,
              "description": "Only studies with a site within the radius of the coordinate (filter.geo=distance(lat,lon,radius)).",
              "type": "object",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "page_size": {
              "default": 10,
              "description": "Studies per page (the API accepts up to 1000; capped at 100 here).\n\nProvider reference: minimum 1; maximum 100; default 10.",
              "type": "number",
              "x-alexandria-option-metadata": {
                "in": "body",
                "max": 100,
                "min": 1
              }
            },
            "page_token": {
              "description": "next_page_token from the previous page. Send the same query parameters again. Pattern: ^[A-Za-z0-9_-]+$.",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "sort": {
              "description": "Sort by a field piece with optional direction, e.g. \"LastUpdatePostDate:desc\", or \"@relevance\" (default when a query is given). Pattern: ^(@relevance|[A-Za-z][A-Za-z0-9]*(:(asc|desc))?)$.",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "sponsor": {
              "description": "Sponsor or collaborator name (query.spons), e.g. \"Merck\".",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "status": {
              "description": "Overall status filter (filter.overallStatus); any of the listed values matches.",
              "items": {
                "type": "string"
              },
              "type": "array",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "term": {
              "description": "Other terms searched across the record (query.term). Accepts Essie expressions such as AREA[StartDate]RANGE[2025-01-01,MAX].",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "title": {
              "description": "Words in the brief or official title, or acronym (query.titles).",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            }
          },
          "type": "object"
        }
      }
    },
    "required": false
  },
  "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.


## OpenAPI

````yaml openapi/clinicaltrials-gov.json POST /apis/v1/clinicaltrials-gov/clinical-trials/search
openapi: 3.1.0
info:
  description: ''
  title: ClinicalTrials.gov
  version: '1'
  x-aisa-capabilities:
    idempotency: Idempotency-Key
    max_price: X-AISA-Max-Price-USD
    quote:
      header: X-AISA-Cost-Mode
      value: quote
  x-aisa-catalogs:
    clinicaltrials-gov:
      description: ''
      title: ClinicalTrials.gov
      x-aisa-capabilities:
        idempotency: Idempotency-Key
        max_price: X-AISA-Max-Price-USD
        quote:
          header: X-AISA-Cost-Mode
          value: quote
      x-aisa-document:
        facts_hash: d95f4589f3172bd1b5f2ea5f7e329543828caa3eba5f2e0f045b9685d77b5d92
        generator_version: '3'
        protocol_version: '1'
        schema_version: '1'
      x-aisa-plans:
        builder: 1
        display_plan: payg
        payg: 1
        similarweb_payg: 1
        team: 1
        version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-configured-paths:
    - /apis/v1/clinicaltrials-gov/clinical-trials/field-values
    - /apis/v1/clinicaltrials-gov/clinical-trials/search
    - /apis/v1/clinicaltrials-gov/clinical-trials/study
    - /apis/v1/clinicaltrials-gov/clinical-trials/study-dates
    - /apis/v1/clinicaltrials-gov/clinical-trials/suggest
  x-aisa-document:
    composer_version: '31'
    document_hash: sha256:d5f82fa126515cf238fd75aa4331969a1348b2db12c862624705206ace506f08
    facts_hash: d95f4589f3172bd1b5f2ea5f7e329543828caa3eba5f2e0f045b9685d77b5d92
    generator_version: '3'
    protocol_version: '1'
    response_pending: []
    schema_version: '1'
  x-aisa-plans:
    builder: 1
    display_plan: payg
    payg: 1
    similarweb_payg: 1
    team: 1
    version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-provider: clinicaltrials-gov
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/clinicaltrials-gov/clinical-trials/search:
    post:
      tags:
        - ClinicalTrials.gov
      summary: Search
      description: >-
        Discover NCT numbers for a topic before calling study or study_dates;
        list trials by sponsor, status or location.
      operationId: clinicaltrials-gov.clinical-trials.search
      requestBody:
        content:
          application/json:
            examples:
              provider:
                summary: >-
                  Official provider example; checked against AIsa request
                  constraints
                value:
                  condition: Breast Cancer
                  intervention: Pembrolizumab
                  page_size: 3
            schema:
              additionalProperties: true
              properties:
                advanced_filter:
                  description: >-
                    Essie filter expression applied after the query
                    (filter.advanced), e.g. AREA[StartDateType]ESTIMATED.
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                agg_filters:
                  description: >-
                    Facet filters as the site encodes them (aggFilters), e.g.
                    "phase:3,status:rec". Pattern: ^[a-zA-Z]+:[a-zA-Z0-9_
                    ]+(,[a-zA-Z]+:[a-zA-Z0-9_ ]+)*$.
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                condition:
                  description: >-
                    Condition or disease (query.cond), e.g. "Breast Cancer".
                    Essie syntax allowed.
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                intervention:
                  description: >-
                    Intervention or treatment (query.intr), e.g.
                    "Pembrolizumab".
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                location:
                  description: >-
                    Location terms: city, state, country or facility
                    (query.locn), e.g. "Boston".
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                near:
                  additionalProperties: true
                  description: >-
                    Only studies with a site within the radius of the coordinate
                    (filter.geo=distance(lat,lon,radius)).
                  type: object
                  x-alexandria-option-metadata:
                    in: body
                page_size:
                  default: 10
                  description: >-
                    Studies per page (the API accepts up to 1000; capped at 100
                    here).


                    Provider reference: minimum 1; maximum 100; default 10.
                  type: number
                  x-alexandria-option-metadata:
                    in: body
                    max: 100
                    min: 1
                page_token:
                  description: >-
                    next_page_token from the previous page. Send the same query
                    parameters again. Pattern: ^[A-Za-z0-9_-]+$.
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                sort:
                  description: >-
                    Sort by a field piece with optional direction, e.g.
                    "LastUpdatePostDate:desc", or "@relevance" (default when a
                    query is given). Pattern:
                    ^(@relevance|[A-Za-z][A-Za-z0-9]*(:(asc|desc))?)$.
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                sponsor:
                  description: Sponsor or collaborator name (query.spons), e.g. "Merck".
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                status:
                  description: >-
                    Overall status filter (filter.overallStatus); any of the
                    listed values matches.
                  items:
                    type: string
                  type: array
                  x-alexandria-option-metadata:
                    in: body
                term:
                  description: >-
                    Other terms searched across the record (query.term). Accepts
                    Essie expressions such as
                    AREA[StartDate]RANGE[2025-01-01,MAX].
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                title:
                  description: >-
                    Words in the brief or official title, or acronym
                    (query.titles).
                  type: string
                  x-alexandria-option-metadata:
                    in: body
              type: object
        required: false
      responses:
        '200':
          content:
            application/json:
              examples:
                provider:
                  description: Published by the provider on 2026-09-29.
                  summary: Official provider example
                  value:
                    api_url: >-
                      https://clinicaltrials.gov/api/v2/studies?query.cond=Breast%20Cancer&query.intr=Pembrolizumab&fields=NCTId,BriefTitle,OfficialTitle,Acronym,OverallStatus,WhyStopped,StudyType,Phase,Condition,InterventionName,InterventionType,LeadSponsorName,LeadSponsorClass,StartDateStruct,PrimaryCompletionDateStruct,CompletionDateStruct,StudyFirstPostDateStruct,LastUpdatePostDateStruct,EnrollmentInfo,HasResults,LocationCountry&countTotal=true&pageSize=3
                    next_page_token: ZVNj7o2Elu8o3lpwUd7_5bbumpOQJJxsY_Cl1Pg
                    observed_at_ms: 1790705160120
                    source_url: >-
                      https://clinicaltrials.gov/search?cond=Breast%20Cancer&intr=Pembrolizumab
                    studies:
                      - acronym: null
                        brief_title: >-
                          Safety and Efficacy of p53 Gene Therapy Combined With
                          Immune Checkpoint Inhibitors in Solid Tumors.
                        completion_date:
                          date: '2022-12-31'
                          type: ESTIMATED
                        conditions:
                          - Solid Tumor
                          - Lymphoma
                        countries:
                          - United States
                        enrollment:
                          count: 40
                          type: ESTIMATED
                        has_results: false
                        interventions:
                          - name: Ad-p53
                            type: DRUG
                        last_update_post_date:
                          date: '2020-06-09'
                          type: ACTUAL
                        lead_sponsor:
                          class: INDUSTRY
                          name: MultiVir, Inc.
                        nct_id: NCT03544723
                        official_title: >-
                          A Phase 2, Multi-Center, Open Label Study to Evaluate
                          Adenoviral p53 (Ad-p53) in Combination With Immune
                          Checkpoint Inhibitor Therapy in Patients With
                          Recurrent or Metastatic Head and Neck Squamous Cell
                          Carcinoma and Other Tumors Approved for Anti-PD-1 or
                          Anti-PD-L1 Therapy
                        overall_status: UNKNOWN
                        phases:
                          - PHASE2
                        primary_completion_date:
                          date: '2022-06-30'
                          type: ESTIMATED
                        source_url: https://clinicaltrials.gov/study/NCT03544723
                        start_date:
                          date: '2018-10-01'
                          type: ACTUAL
                        study_first_post_date:
                          date: '2018-06-04'
                          type: ACTUAL
                        study_type: INTERVENTIONAL
                        why_stopped: null
                      - acronym: null
                        brief_title: >-
                          A Phase II Study Evaluating the Efficacy and Safety of
                          Pembrolizumab in Combination With Chemotherapy as
                          Neoadjuvant Therapy for Triple-negative Breast Cancer
                        completion_date:
                          date: '2024-06-01'
                          type: ESTIMATED
                        conditions:
                          - Breast Cancer
                        countries:
                          - China
                        enrollment:
                          count: 26
                          type: ESTIMATED
                        has_results: false
                        interventions:
                          - name: Pembrolizumab
                            type: DRUG
                          - name: Paclitaxel
                            type: DRUG
                          - name: Epirubicin
                            type: DRUG
                          - name: Cyclophosphamide
                            type: DRUG
                        last_update_post_date:
                          date: '2023-01-12'
                          type: ACTUAL
                        lead_sponsor:
                          class: OTHER
                          name: >-
                            Cancer Institute and Hospital, Chinese Academy of
                            Medical Sciences
                        nct_id: NCT05681728
                        official_title: >-
                          A Phase II Study Evaluating the Efficacy and Safety of
                          Pembrolizumab in Combination With Chemotherapy as
                          Neoadjuvant Therapy for Triple-negative Breast Cancer
                        overall_status: UNKNOWN
                        phases:
                          - PHASE2
                        primary_completion_date:
                          date: '2024-02-01'
                          type: ESTIMATED
                        source_url: https://clinicaltrials.gov/study/NCT05681728
                        start_date:
                          date: '2022-02-01'
                          type: ACTUAL
                        study_first_post_date:
                          date: '2023-01-12'
                          type: ACTUAL
                        study_type: INTERVENTIONAL
                        why_stopped: null
                      - acronym: null
                        brief_title: A Study of LY3435151 in Participants With Solid Tumors
                        completion_date:
                          date: '2020-03-05'
                          type: ACTUAL
                        conditions:
                          - Solid Tumor
                          - Triple-negative Breast Cancer
                          - Gastric Adenocarcinoma
                          - Head and Neck Squamous Cell Carcinoma
                          - Cervical Carcinoma
                          - High Grade Serous Ovarian Carcinoma
                          - Hepatocellular Carcinoma
                          - Undifferentiated Pleomorphic Sarcoma
                          - Leiomyosarcoma
                        countries:
                          - United States
                          - Japan
                        enrollment:
                          count: 2
                          type: ACTUAL
                        has_results: true
                        interventions:
                          - name: LY3435151
                            type: DRUG
                          - name: Pembrolizumab
                            type: DRUG
                        last_update_post_date:
                          date: '2021-08-31'
                          type: ACTUAL
                        lead_sponsor:
                          class: INDUSTRY
                          name: Eli Lilly and Company
                        nct_id: NCT04099277
                        official_title: >-
                          A Phase 1a/1b Study of LY3435151 Administered to
                          Patients With Advanced Solid Tumors
                        overall_status: TERMINATED
                        phases:
                          - PHASE1
                        primary_completion_date:
                          date: '2020-03-05'
                          type: ACTUAL
                        source_url: https://clinicaltrials.gov/study/NCT04099277
                        start_date:
                          date: '2019-10-28'
                          type: ACTUAL
                        study_first_post_date:
                          date: '2019-09-23'
                          type: ACTUAL
                        study_type: INTERVENTIONAL
                        why_stopped: >-
                          Study terminated due to strategic business decision by
                          Eli Lilly and Company.
                    total_count: 339
              schema:
                not:
                  type: 'null'
                x-aisa-schema-completeness: documented-fields-only
          description: >-
            Search the registry (GET /api/v2/studies). Filter by condition,
            intervention, sponsor, location, title, free-text Essie expression,
            overall status, distance from a coordinate or an advanced Essie
            filter. Returns one page of study summaries with raw date structs
            (date + ACTUAL/ESTIMATED type) and a page token for the next page.
            Repeat every query parameter with page_token to continue.


            The response contains the tool result directly.


            The provider identifies `studies` as the primary payload key.


            | Documented field | Provider type | Description |

            | --- | --- | --- |

            | `acronym` | string |  |

            | `brief_title` | string |  |

            | `completion_date` | object | A registry date struct; null when the
            record (or the requested subset) has no such date. |

            | `conditions` | string[] |  |

            | `countries` | string[] | Distinct site countries in registry
            order. |

            | `enrollment` | object |  |

            | `has_results` | boolean |  |

            | `interventions` | object[] |  |

            | `last_update_post_date` | object | A registry date struct; null
            when the record (or the requested subset) has no such date. |

            | `lead_sponsor` | object |  |

            | `nct_id` | string |  |

            | `official_title` | string |  |

            | `overall_status` | string |  |

            | `phases` | string[] | Empty for observational studies and studies
            without a phase. |

            | `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. |

            | `study_first_post_date` | object | A registry date struct; null
            when the record (or the requested subset) has no such date. |

            | `study_type` | string |  |

            | `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.
        default:
          content:
            application/json:
              schema: {}
          description: >-
            Error response; upstream passthrough responses may use provider
            formats
components:
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.