Sand AISand AI MAGI-2MAGI-2 अब SandBase पर है: 1080p वीडियो, नेटीव ऑडियो के साथअभी आज़माएँ

FRED GeoFRED Regional Data

API दस्तावेज़
https://api.sandbase.ai/v1/api/fred/geo-regional-data

GeoFRED Regional Data from FRED. Returns the official FRED API response unchanged.

मूल्य
$0.00001USD / कॉल
मेथड
POST
प्रतिक्रिया
JSON
पैरामीटर
6 आवश्यक · 4 वैकल्पिक

प्लेग्राउंड

इनपुट
The date you want to pull a series group data from. YYYY-MM-DD formatted string, required
Frequency automatically assigns the default frequency of the map when using the Request Wizard above. The parameter can be used as a frequency aggregation feature. The maps frequency aggregation feature converts higher frequency data series into lower frequency data series (e.g. converts a monthly d
The region you want to pull data for. string, required One of the following values: bea msa frb necta state country county censusregion bea msa frb necta state country county censusregion
The seasonality of the series group. string, required, five possible SA (Seasonally Adjusted), NSA (Not Seasonally Adjusted), SSA (Smoothed Seasonally Adjusted), SAAR (Seasonally Adjusted Annual Rate), or NSAAR (Not Seasonally Adjusted Annual Rate)
The ID for a group of series found in FRED. string, required
The units of the series you want to pull. string, required
string, optional, default: avg One of the following values: 'avg', 'sum', 'eop' avg = Average sum = Sum eop = End of Period avg = Average sum = Sum eop = End of Period
Response format. Only json is supported.
The start date you want to request series group data from. This allows you to pull a range of data YYYY-MM-DD formatted string, optional
A key that indicates a data value transformation. string, optional, default: lin (No transformation) One of the following values: 'lin', 'chg', 'ch1', 'pch', 'pc1', 'pca', 'cch', 'cca', 'log' lin = Levels (No transformation) chg = Change ch1 = Change from Year Ago pch = Percent Change pc1 = Percent
आउटपुटतैयार

आपका आउटपुट यहाँ दिखाई देगा

इनपुट पूरा करें, फिर Run पर क्लिक करें।

API README

FRED GeoFRED Regional Data API

Returns one value per region for a FRED GeoFRED series group on a single date. You pass a series_group ID, a region_type, a date, a frequency, a season and units.

Use cases

  • Compare per capita personal income across all US states for one year.
  • Build a state-level choropleth map from the value for each code.
  • Rank regions by a series group value on a given date.
  • Join regional values to other datasets using the code and series_id of each region.

Request

curl -X POST "https://api.sandbase.ai/v1/api/fred/geo-regional-data" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"date": "2023-01-01", "frequency": "a", "region_type": "state", "season": "NSA", "series_group": "882", "units": "Dollars", "file_type": "json"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
datestringYesThe date you want to pull a series group data from. YYYY-MM-DD formatted string, required
frequencystringYesFrequency automatically assigns the default frequency of the map when using the Request Wizard above. The parameter can be used as a frequency aggregation feature. The maps frequency aggregation feature converts higher f
region_typestringYesThe region you want to pull data for. string, required One of the following values: bea msa frb necta state country county censusregion bea msa frb necta state country county censusregion
seasonstringYesThe seasonality of the series group. string, required, five possible SA (Seasonally Adjusted), NSA (Not Seasonally Adjusted), SSA (Smoothed Seasonally Adjusted), SAAR (Seasonally Adjusted Annual Rate), or NSAAR (Not Seas
series_groupstringYesThe ID for a group of series found in FRED. string, required
unitsstringYesThe units of the series you want to pull. string, required
aggregation_methodstringNostring, optional, default: avg One of the following values: 'avg', 'sum', 'eop' avg = Average sum = Sum eop = End of Period avg = Average sum = Sum eop = End of Period
file_typestringNoResponse format. Only json is supported.
start_datestringNoThe start date you want to request series group data from. This allows you to pull a range of data YYYY-MM-DD formatted string, optional
transformationstringNoA key that indicates a data value transformation. string, optional, default: lin (No transformation) One of the following values: 'lin', 'chg', 'ch1', 'pch', 'pc1', 'pca', 'cch', 'cca', 'log' lin = Levels (No transformat

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "meta": {
    "data": {
      "2023-01-01": [
        {
          "code": "01",
          "region": "Alabama",
          "series_id": "ALPCPI",
          "value": 54760
        }
      ]
    },
    "frequency": "Annual",
    "region": "state",
    "seasonality": "Not Seasonally Adjusted",
    "title": "2025 Per Capita Personal Income by State (Dollars)",
    "units": "Dollars"
  }
}

Response fields

FieldMeaning
meta.titleTitle of the map. It names the measure, the region level and the units.
meta.dataObject keyed by date in YYYY-MM-DD format. Each key holds a list of regional values for that date.
meta.data.*[].regionName of the region, for example Alabama.
meta.data.*[].codeShort code for the region. In this response it is a two-digit string for each state.
meta.data.*[].series_idFRED series ID for this region, for example ALPCPI. You can use it with other FRED APIs.
meta.data.*[].valueValue of the series for the region on that date, in the units named in meta.units.
meta.frequency / meta.seasonalityFrequency and seasonal adjustment of the data, written out in full, such as Annual and Not Seasonally Adjusted.
meta.region / meta.unitsRegion type and units that were applied to the request.

Notes

  • The key under meta.data is the requested date. The * in a path stands for that date key.
  • Use FRED GeoFRED Series Group to look up valid series_group values and their details.
  • Use the series_id from a row with FRED Get Series Observations to get the full history for one region.
  • Set start_date to request a range of dates instead of a single date.

Pricing

$0.00001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

और जानें

संबंधित APIs

सभी APIs
APIकीमतप्रतिक्रिया
FRED$0.00001 प्रति कॉलJSON
FRED$0.00001 प्रति कॉलJSON
FRED$0.00001 प्रति कॉलJSON
FRED$0.00001 प्रति कॉलJSON
FRED$0.00001 प्रति कॉलJSON
FRED$0.00001 प्रति कॉलJSON

प्रश्न

FAQ

FRED GeoFRED Regional Data API का उपयोग कैसे करें?

https://api.sandbase.ai/v1/api/fred/geo-regional-data पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।

FRED GeoFRED Regional Data API की लागत कितनी है?

$0.00001 प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।

FRED GeoFRED Regional Data API कौन-से parameters स्वीकार करती है?

आवश्यक: date (string), frequency (d, w, bw, m, q, sa, a, wef, weth, wew, wetu, wem, wesu, wesa, bwew, bwem में से एक), region_type (bea, msa, frb, necta, state, country, county, censusregion में से एक), season (string), series_group (string) और units (string)। वैकल्पिक: aggregation_method (avg, sum, eop में से एक), file_type (json में से एक), start_date (string) और transformation (lin, chg, ch1, pch, pc1, pca, cch, cca, log में से एक)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।

FRED GeoFRED Regional Data API क्या लौटाती है?

एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।

क्या मुझे एक FRED developer account या API key चाहिए?

नहीं। FRED GeoFRED Regional Data SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से FRED API access के लिए आवेदन करने की आवश्यकता नहीं है।