Expand description
Async client for the data.gov Catalog API.
The Catalog API replaced data.gov’s CKAN action API in 2026. It exposes full-text search over the federal dataset catalog together with organization and keyword listings, spatial lookups, and direct access to individual harvest records. Metadata is returned in the DCAT-US 3 vocabulary.
Start with CatalogClient: construct a Configuration (the default
points at https://catalog.data.gov), wrap it in an Arc, and call one
of the async methods such as CatalogClient::search or
CatalogClient::organizations.
use data_gov_catalog::{CatalogClient, Configuration, SearchParams};
use std::sync::Arc;
let client = CatalogClient::new(Arc::new(Configuration::default()));
let page = client
.search(SearchParams::new().q("climate").per_page(5))
.await?;
println!("{} results on this page", page.results.len());Re-exports§
pub use client::CatalogClient;pub use client::CatalogError;pub use client::Configuration;pub use client::SearchParams;