Sand AISand AI MAGI-2ตอนนี้ MAGI-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 / คำขอ
Method
POST
การตอบกลับ
JSON
พารามิเตอร์
6 จำเป็น · 4 ไม่บังคับ

Playground

อินพุต
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

คำถาม

คำถามที่พบบ่อย

ฉันจะใช้ FRED GeoFRED Regional Data API ได้อย่างไร?

ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/fred/geo-regional-data โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด

FRED GeoFRED Regional Data API ราคาเท่าไร?

$0.00001 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน

FRED GeoFRED Regional Data API รับพารามิเตอร์อะไรบ้าง?

ที่ต้องระบุ: 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 และ Playground ในหน้านี้แสดงทุกฟิลด์

FRED GeoFRED Regional Data API ส่งคืนอะไร?

การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ

ฉันจำเป็นต้องมีบัญชีนักพัฒนาหรือ API key ของ FRED ไหม?

ไม่จำเป็น FRED GeoFRED Regional Data ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง FRED API แยกต่างหาก