Sand AISand AI MAGI-2ตอนนี้ MAGI-2 อยู่บน SandBase แล้ว: วิดีโอ 1080p พร้อมเสียงในตัวลองใช้เลย

FRED GeoFRED Shape Files

เอกสาร API
https://api.sandbase.ai/v1/api/fred/geo-shapes-file

GeoFRED Shape Files from FRED. Returns the official FRED API response unchanged.

ราคา
$0.00001USD / คำขอ
Method
POST
การตอบกลับ
JSON
พารามิเตอร์
1 จำเป็น · 0 ไม่บังคับ

Playground

อินพุต
The type of shape you want to pull GeoJSON data for. Available Shape Types: bea (Bureau of Economic Anaylis Region) msa (Metropolitan Statistical Area) frb (Federal Reserve Bank Districts) necta (New England City and Town Area) state country county (USA Counties) censusregion (US Census Regions) cen
เอาต์พุตพร้อมใช้งาน

เอาต์พุตของคุณจะแสดงที่นี่

กรอกอินพุตให้ครบ แล้วคลิก Run

API README

FRED GeoFRED Shape Files API

Returns GeoJSON boundary shapes for a chosen type of US region, such as BEA regions, states, counties or Federal Reserve districts. It needs one input, shape, which sets the region type.

Use cases

  • Draw a map of BEA economic regions in a web or desktop mapping tool.
  • Join the shapes to regional values from GeoFRED to build a choropleth map.
  • Match region names to shapes to label charts that group data by region.
  • Load county or state boundaries into a GIS tool without downloading shape files by hand.

Request

curl -X POST "https://api.sandbase.ai/v1/api/fred/geo-shapes-file" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"shape": "bea"}'

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

Parameters

NameTypeRequiredDescription
shapestringYesThe type of shape you want to pull GeoJSON data for. Available Shape Types: bea (Bureau of Economic Anaylis Region) msa (Metropolitan Statistical Area) frb (Federal Reserve Bank Districts) necta (New England City and Tow

Example response

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

{
  "crs": {
    "properties": {
      "name": "urn:ogc:def:crs:OGC:1.3:CRS84"
    },
    "type": "name"
  },
  "features": [
    {
      "geometry": {
        "coordinates": [
          [
            [
              [
                1485
              ]
            ]
          ]
        ],
        "type": "MultiPolygon"
      },
      "properties": {
        "bea_regi_1": "Far West",
        "bea_region": 8
      },
      "type": "Feature"
    }
  ],
  "name": "state_bea_region",
  "type": "FeatureCollection"
}

Response fields

FieldMeaning
nameName of the shape set returned. For shape set to bea it is state_bea_region.
typeGeoJSON type of the whole response. The value is FeatureCollection.
crs.properties.nameCoordinate reference system identifier for the shapes. The value is urn:ogc:def:crs:OGC:1.3:CRS84.
features[]One entry per region. Each entry is a GeoJSON Feature with a geometry and a properties object.
features[].geometry.typeGeometry type of the region. The sample shows MultiPolygon, so one region can have several separate parts.
features[].geometry.coordinatesNested lists of [x, y] points that outline each polygon of the region. The sample values are large whole numbers, not longitude and latitude degrees, so check them before you plot on a world map.
features[].properties.bea_regi_1Name of the BEA region, for example Far West, Great Lakes or Southwest.
features[].properties.bea_regionNumeric code for the BEA region, for example 8 for Far West.

Notes

  • Property names inside features[].properties depend on the shape value. The names bea_regi_1 and bea_region appear for bea.
  • Allowed shape values are bea, msa, frb, necta, state, country, county, censusregion and censusdivision.
  • To get data values for these regions, call FRED GeoFRED Regional Data and match them to the shapes by region name or code.
  • To find series that exist by region, see FRED GeoFRED Series Group.

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 Shape Files API ได้อย่างไร?

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

FRED GeoFRED Shape Files API ราคาเท่าไร?

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

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

ที่ต้องระบุ: shape (หนึ่งใน bea, msa, frb, necta, state, country, county, censusregion, censusdivision). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์

FRED GeoFRED Shape Files API ส่งคืนอะไร?

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

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

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