# API Reference


Complete reference for weathervault functions, objects, and constants.


## Core Functions


Primary functions for retrieving weather data and station information.


[get_weather_data()](get_weather_data.md#weathervault.get_weather_data)  
Get weather data for a meteorological station.

[get_station_metadata()](get_station_metadata.md#weathervault.get_station_metadata)  
Get metadata for all weather stations.

[search_stations()](search_stations.md#weathervault.search_stations)  
Search for weather stations matching specified criteria.


## Station Discovery


Functions for exploring available stations and their data coverage.


[get_inventory()](get_inventory.md#weathervault.get_inventory)  
Get the data inventory for all stations and years.

[get_years_for_station()](get_years_for_station.md#weathervault.get_years_for_station)  
Get the list of years for which a station has data.

[get_countries()](get_countries.md#weathervault.get_countries)  
Get a DataFrame of country codes and names.


## Helper Objects


Convenience objects for station and location lookups with autocomplete support.


[station](station.md#weathervault.station)  

[country](country.md#weathervault.country)  

[state](state.md#weathervault.state)  


## Constants


Data constants and URL configurations used by the package.


[BASE_URL](BASE_URL.md#weathervault.BASE_URL)  
Base URL for NCEI NOAA Integrated Surface Database (ISD).

[COUNTRY_CODES](COUNTRY_CODES.md#weathervault.COUNTRY_CODES)  
FIPS country code to country name mapping.

[ISO_COUNTRY_NAMES](ISO_COUNTRY_NAMES.md#weathervault.ISO_COUNTRY_NAMES)  
ISO 3166-1 alpha-2 country code to display-friendly country name mapping.

[US_STATE_NAMES](US_STATE_NAMES.md#weathervault.US_STATE_NAMES)  
US state and territory code to name mapping.
