ClinicalTrials Study Fields¶
Retrieves available ClinicalTrials.gov study fields and their values via the API's field values endpoint. You can optionally filter by field type and select specific fields to include. Returns two JSON strings: the raw results and a small metadata object with a result count.

Usage¶
Use this node when you need to discover or enumerate study fields (for example, to understand which field names and values you can query against) before running searches or building downstream filtering. Typical workflow: run this node to list fields/values, inspect results and metadata, then feed chosen fields into study search or detail nodes.
Inputs¶
| Field | Required | Type | Description | Example | 
|---|---|---|---|---|
| type | False | STRING | Optional filter for field categories/types provided by the ClinicalTrials.gov API. | Study, Location, Condition | 
| fields | False | STRING | Comma-separated list of field names to include in the response. | Condition, InterventionName | 
Outputs¶
| Field | Type | Description | Example | 
|---|---|---|---|
| results | STRING | JSON string containing the field values data returned by the API. | { "Condition": ["Lung Cancer", "Diabetes"], "InterventionName": ["Drug A", "Procedure B"] } | 
| metadata | STRING | JSON string with basic metadata about the response, including result_count. | { "result_count": 2 } | 
Important Notes¶
- API dependency: Requires live access to ClinicalTrials.gov API v2; network issues will prevent retrieval.
- Input formatting: Supply multiple fields as a comma-separated string with proper field names recognized by the API.
- Timeouts: Requests use a 30-second timeout; slow networks or large responses may need retries.
- Error handling: On errors, outputs return JSON strings like {"error": "Network error"} instead of structured data.
- Categories: The node is grouped under SALT/ClinicalTrials/Study Fields for organization with related nodes.
Troubleshooting¶
- No results or empty lists: Verify 'fields' and/or 'type' values are valid API-recognized names. Try removing filters to test connectivity.
- Network error: Check internet connectivity, firewall settings, or API availability; retry later.
- JSON decode error: Ensure the API is returning valid JSON; temporarily remove filters and test again.
- Unexpected field names: Consult ClinicalTrials.gov documentation for valid field identifiers or first call without 'type' to explore available options.
- Slow or timed-out requests: Reduce the number of requested fields, ensure stable connectivity, and retry.