Skip to content

ClinicalTrials Study Fields

Retrieves available study field values from ClinicalTrials.gov via the v2 API. You can optionally filter by field type and specify a comma-separated list of fields to include. Returns the raw results and a lightweight metadata summary as JSON strings.
Preview

Usage

Use this node to explore or retrieve lists of values for study fields (e.g., conditions, intervention names) to support downstream filtering, validation, or UI population. Commonly placed before search or analytics nodes to determine which fields and values are available for a given context.

Inputs

FieldRequiredTypeDescriptionExample
typeFalseSTRINGFilter by field types. When provided, limits the returned values to the specified field type category.Study
fieldsFalseSTRINGComma-separated list of field names to include in the response.Condition, InterventionName

Outputs

FieldTypeDescriptionExample
resultsSTRINGJSON string containing the fetched field values from ClinicalTrials.gov.{ "Condition": ["Diabetes Mellitus", "Hypertension", ...], "InterventionName": ["Metformin", "Placebo", ...] }
metadataSTRINGJSON string containing a simple summary of the request, including result_count.{ "result_count": 2 }

Important Notes

  • Outputs are JSON strings: You may need to parse the strings into objects before further processing.
  • Optional inputs: Both 'type' and 'fields' are optional; leaving them empty returns broader results.
  • Network and parsing errors: On errors, the node returns JSON strings with an "error" field for both outputs rather than raising exceptions.
  • Timeout: The request uses a 30-second timeout; slow responses may cause a network error.
  • API endpoint: Uses ClinicalTrials.gov v2 endpoint for field values.

Troubleshooting

  • Empty or unexpected results: Verify the 'fields' list contains valid field names (comma-separated, no extra spaces if possible). Remove 'type' to broaden the query.
  • Network error returned: Check internet connectivity, VPN/proxy settings, and try again. The node returns '{"error": "Network error"}' in both outputs when the request fails or times out.
  • JSON decode error: The API response could not be parsed. Retry later; if persistent, ensure inputs are valid and not causing a non-JSON response.
  • Incorrect filtering: If results lack expected fields, ensure the 'fields' input is correctly spelled and comma-separated, e.g., "Condition, InterventionName".