Skip to main content
Ctrl+K
Version 2 is now available! Please check the special notes page for more information.
fedfred - Home fedfred - Home
  • Installation and Usage Guide
  • API Reference
  • Resources
  • Glossary
  • Contributing to FedFred
    • Changelog
    • Contributor Covenant Code of Conduct
    • Security Policy
    • License
  • GitHub
  • PyPI
  • Conda-Forge
  • Codecov
  • Socket
  • OpenSSF
  • Installation and Usage Guide
  • API Reference
  • Resources
  • Glossary
  • Contributing to FedFred
  • Changelog
  • Contributor Covenant Code of Conduct
  • Security Policy
  • License
  • GitHub
  • PyPI
  • Conda-Forge
  • Codecov
  • Socket
  • OpenSSF

Section Navigation

  • FredAPI
    • __init__
    • get_category
    • get_category_children
    • get_category_related
    • get_category_related_tags
    • get_category_series
    • get_category_tags
    • get_related_tags
    • get_release
    • get_release_dates
    • get_release_related_tags
    • get_release_series
    • get_release_sources
    • get_release_tables
    • get_release_tags
    • get_releases
    • get_releases_dates
    • get_series
    • get_series_categories
    • get_series_observations
    • get_series_release
    • get_series_search
    • get_series_search_related_tags
    • get_series_search_tags
    • get_series_tags
    • get_series_updates
    • get_series_vintagedates
    • get_source
    • get_source_releases
    • get_sources
    • get_tags
    • get_tags_series
  • AsyncAPI
    • __init__
    • get_category
    • get_category_children
    • get_category_related
    • get_category_related_tags
    • get_category_series
    • get_category_tags
    • get_related_tags
    • get_release
    • get_release_dates
    • get_release_related_tags
    • get_release_series
    • get_release_sources
    • get_release_tables
    • get_release_tags
    • get_releases
    • get_releases_dates
    • get_series
    • get_series_categories
    • get_series_observations
    • get_series_release
    • get_series_search
    • get_series_search_related_tags
    • get_series_search_tags
    • get_series_tags
    • get_series_updates
    • get_series_vintagedates
    • get_source
    • get_source_releases
    • get_sources
    • get_tags
    • get_tags_series
  • MapsAPI
    • __init__
    • get_regional_data
    • get_series_data
    • get_series_group
    • get_shape_files
  • AsyncMapsAPI
    • __init__
    • get_regional_data
    • get_series_data
    • get_series_group
    • get_shape_files
  • FredHelpers
    • __init__
    • datestring_validation
    • datestring_validation_async
    • datetime_conversion
    • datetime_conversion_async
    • datetime_hh_mm_conversion
    • datetime_hh_mm_conversion_async
    • extract_region_type
    • extract_region_type_async
    • geo_parameter_validation
    • geo_parameter_validation_async
    • hh_mm_datestring_validation
    • hh_mm_datestring_validation_async
    • liststring_conversion
    • liststring_conversion_async
    • liststring_validation
    • liststring_validation_async
    • parameter_validation
    • parameter_validation_async
    • to_dd_df
    • to_dd_df_async
    • to_dd_gpd_gdf
    • to_dd_gpd_gdf_async
    • to_gpd_gdf
    • to_gpd_gdf_async
    • to_pd_df
    • to_pd_df_async
    • to_pl_df
    • to_pl_df_async
    • to_pl_st_gdf
    • to_pl_st_gdf_async
    • vintage_dates_type_conversion
    • vintage_dates_type_conversion_async
    • vintage_dates_validation
    • vintage_dates_validation_async
  • Category
    • __init__
    • to_object
    • to_object_async
    • parent_id
    • id
    • name
  • Series
    • __init__
    • to_object
    • to_object_async
    • group_popularity
    • notes
    • realtime_end
    • realtime_start
    • id
    • title
    • observation_start
    • observation_end
    • frequency
    • frequency_short
    • units
    • units_short
    • seasonal_adjustment
    • seasonal_adjustment_short
    • last_updated
    • popularity
  • Tag
    • __init__
    • to_object
    • to_object_async
    • notes
    • name
    • group_id
    • created
    • popularity
    • series_count
  • Release
    • __init__
    • to_object
    • to_object_async
    • link
    • notes
    • id
    • realtime_start
    • realtime_end
    • name
    • press_release
  • ReleaseDate
    • __init__
    • to_object
    • to_object_async
    • release_name
    • release_id
    • date
  • Source
    • __init__
    • to_object
    • to_object_async
    • link
    • notes
    • id
    • realtime_start
    • realtime_end
    • name
  • Element
    • __init__
    • to_object
    • to_object_async
    • children
    • element_id
    • release_id
    • series_id
    • parent_id
    • line
    • type
    • name
    • level
  • VintageDate
    • __init__
    • to_object
    • to_object_async
    • vintage_date
  • SeriesGroup
    • __init__
    • to_object
    • to_object_async
    • title
    • region_type
    • series_group
    • season
    • units
    • frequency
    • min_date
    • max_date
  • API Reference
  • FredAPI
  • get_series_search

get_series_search#

FredAPI.get_series_search(search_text, search_type=None, realtime_start=None, realtime_end=None, limit=None, offset=None, order_by=None, sort_order=None, filter_variable=None, filter_value=None, tag_names=None, exclude_tag_names=None)[source]#

Get FRED series search

Searches for economic data series based on text queries.

Parameters:
  • search_text (str) – The text to search for in economic data series. if ‘search_type’=’series_id’, it’s possible to put an ‘*’ in the middle of a string. ‘m*sl’ finds any series starting with ‘m’ and ending with ‘sl’.

  • search_type (str, optional) – The type of search to perform. Options include ‘full_text’ or ‘series_id’. Defaults to None.

  • realtime_start (str | datetime, optional) – The start of the real-time period. String format: YYYY-MM-DD. Defaults to None.

  • realtime_end (str | datetime, optional) – The end of the real-time period. String format: YYYY-MM-DD. Defaults to None.

  • limit (int, optional) – The maximum number of results to return. Defaults to None.

  • offset (int, optional) – The offset for the results. Defaults to None.

  • order_by (str, optional) – The attribute to order results by. Options include ‘search_rank’, ‘series_id’, ‘title’, etc. Defaults to None.

  • sort_order (str, optional) – The order to sort results. Options include ‘asc’ or ‘desc’. Defaults to None.

  • filter_variable (str, optional) – The variable to filter results by. Defaults to None.

  • filter_value (str, optional) – The value to filter results by. Defaults to None.

  • tag_names (str | list, optional) – A comma-separated list of tag names to include in the search. Defaults to None.

  • exclude_tag_names (str | list, optional) – A comma-separated list of tag names to exclude from the search. Defaults to None.

Returns:

If multiple series are returned.

Return type:

List[Series]

Raises:

ValueError – If the API request fails or returns an error.

Example

>>> import fedfred as fd
>>> fred = fd.FredAPI('your_api_key')
>>> series = fred.get_series_search('monetary services index')
>>> for s in series:
>>>     print(s.id)
'MSIM2'
'MSIM1P'
'OCM1P'...
FRED API Documentation:

https://fred.stlouisfed.org/docs/api/fred/series_search.html

previous

get_series_release

next

get_series_search_related_tags

On this page
  • FredAPI.get_series_search()
Edit on GitHub

This Page

  • Show Source

© Copyright 2025, Nikhil Sunder.

Created using Sphinx 8.1.3.

Built with the PyData Sphinx Theme 0.16.1.