Search Jurisdictions
Search_Jurisdictions retrieves GovTribe jurisdiction participant records that represent state-level subdivisions and local governing entities.
When To Use
Which jurisdictions match a state, a jurisdiction name, or a known FIPS code?
Which jurisdiction records correspond to a list of IDs provided by a user or workflow?
Which states currently have the most jurisdiction records in a filtered set?
Which jurisdictions are similar to a known jurisdiction or related GovTribe entity?
Which jurisdiction records should be used as normalized inputs for downstream state-and-local opportunity analysis?
Required Reading
Search_Query_Guide: Required before setting free-text query strings when search_mode is used.
Search_Mode_Guide: Required before choosing keyword vs semantic retrieval.
Location_Filtering_Guide: Required before setting location filters.
Input Contract
query: Free-text query string. See Required Reading: Search_Query_Guide.type:stringrequired:nodefault:n/a
page: 1-based page index.type:null|numberrequired:nodefault:1
per_page: Rows per page.type:null|numberrequired:nodefault:10
search_mode: Query interpretation mode. See Required Reading: Search_Mode_Guide.type:stringrequired:nodefault:keywordoptions:keyword,semantic
state_ids: Filter by states. Use GovTribe IDs or USPS state codes. See Required Reading: Location_Filtering_Guide.type:array<string>required:nodefault:n/a
state_ids_operator: Choose whether to include or exclude values for State IDs (GovTribe or USPS code).type:null|stringrequired:nodefault:inoptions:in,not_in
similar_filter: Find similar to the provided govtribe_type + govtribe_id.type:null|objectrequired:nodefault:n/ashape:{ govtribe_type: string, govtribe_id: string }
jurisdiction_ids: Include or exclude results by jurisdictions. Use GovTribe IDs or FIPS codes. See Required Reading: Location_Filtering_Guide.type:array<string>required:nodefault:n/a
jurisdiction_ids_operator: Choose whether to include or exclude values for Jurisdiction IDs (GovTribe or FIPS code).type:null|stringrequired:nodefault:inoptions:in,not_in
aggregations: Aggregation keys to compute.type:array<string>required:nodefault:n/aoptions:top_states_by_doc_count
fields_to_return: Optional field list for row payloads. If omitted andper_page > 0, rows default togovtribe_id. Forper_page: 0aggregation/meta calls, this field may be omitted. Specifyfields_to_returnwhenever the user asks for fields beyondgovtribe_id, and prefer omitting it in pure aggregation workflows.type:array<string>required:nodefault:n/aoptions:govtribe_id,govtribe_type,govtribe_url,name,fips_code,updated_at
Output Contract
Top-level keys:
current_page: Current page number whenper_page > 0.data: Array of result rows whenper_page > 0.from: First row position in the current page.last_page: Last page number for current filters.path: GovTribe search URL for this result set.per_page: Applied page size.to: Last row position in the current page.total: Total matched row count for current query filters.contains: Dataset label for the returned result set.search_results_id_can_generate_saved_search: Saved-search eligibility flag.search_results_id: Server-side search result identifier.view_search_results_url: URL to open this exact result set.aggregations: Aggregation payload keyed by requested aggregation names when requested.
Row keys:
govtribe_idgovtribe_typegovtribe_urlnamefips_codeupdated_at
Relationship retrieval map:
none: This resource has no relationship fields.
Usage Patterns
Pattern A: Jurisdictions in a target state with row output. Tool: Search_Jurisdictions
Pattern B: Exact jurisdiction lookup by FIPS code. Tool: Search_Jurisdictions
Pattern C: Aggregation-only distribution of jurisdictions by state. Tool: Search_Jurisdictions
Pattern D: Similar jurisdictions to a known jurisdiction record. Tool: Search_Jurisdictions
Last updated
Was this helpful?
