microdata_search_variables
Search IPUMS USA harmonized variables by name or label to get their metadata, including record type, thematic group, and sample availability, for planning extracts.
Instructions
Search IPUMS USA harmonized variable mnemonics by name or label. Returns matching variables with their label, record type (H=household / P=person), thematic group, and available sample IDs. Use this to discover variable names before building an extract. The samples field lists representative IPUMS USA sample IDs (e.g. 'us2024a') where the variable is available — cross-reference with microdata_list_samples. Database covers 827 harmonized variables scraped from usa.ipums.org.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Filter by record type: H = household-level, P = person-level | |
| group | No | Filter by thematic group (e.g. 'Income', 'Education', 'Geographic'). Partial match, case-insensitive. | |
| limit | No | Maximum number of results to return (default: 50, max: 500) | |
| query | No | Search term matched against variable name and label (case-insensitive). Leave empty to list all variables. | |
| sample | No | Filter to variables available in a specific sample ID (e.g. 'us2024a', 'us1990a'). Must be an exact sample ID match. |