GeoFRED Series Data
curl --request GET \
--url https://api.aisa.one/apis/v1/geofred/series/data \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/geofred/series/data"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aisa.one/apis/v1/geofred/series/data', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/geofred/series/data",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/geofred/series/data"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.aisa.one/apis/v1/geofred/series/data")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/geofred/series/data")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"meta": {
"data": [
{
"code": "01",
"region": "Alabama",
"series_id": "ALPCPI",
"value": "35942"
},
{
"code": "02",
"region": "Alaska",
"series_id": "AKPCPI",
"value": "49906"
},
{
"code": "04",
"region": "Arizona",
"series_id": "AZPCPI",
"value": "36624"
},
{
"code": "05",
"region": "Arkansas",
"series_id": "ARPCPI",
"value": "36423"
},
{
"code": "06",
"region": "California",
"series_id": "CAPCPI",
"value": "47505"
},
{
"code": "08",
"region": "Colorado",
"series_id": "COPCPI",
"value": "46315"
},
{
"code": "09",
"region": "Connecticut",
"series_id": "CTPCPI",
"value": "60223"
},
{
"code": "10",
"region": "Delaware",
"series_id": "DEPCPI",
"value": "44031"
},
{
"code": "11",
"region": "District of Columbia",
"series_id": "DCPCPI",
"value": "75950"
},
{
"code": "12",
"region": "Florida",
"series_id": "FLPCPI",
"value": "41041"
},
{
"code": "13",
"region": "Georgia",
"series_id": "GAPCPI",
"value": "37229"
},
{
"code": "15",
"region": "Hawaii",
"series_id": "HIPCPI",
"value": "44578"
},
{
"code": "16",
"region": "Idaho",
"series_id": "IDPCPI",
"value": "35142"
},
{
"code": "17",
"region": "Illinois",
"series_id": "ILPCPI",
"value": "46009"
},
{
"code": "18",
"region": "Indiana",
"series_id": "INPCPI",
"value": "38136"
},
{
"code": "19",
"region": "Iowa",
"series_id": "IAPCPI",
"value": "44014"
},
{
"code": "20",
"region": "Kansas",
"series_id": "KSPCPI",
"value": "43380"
},
{
"code": "21",
"region": "Kentucky",
"series_id": "KYPCPI",
"value": "35857"
},
{
"code": "22",
"region": "Louisiana",
"series_id": "LAPCPI",
"value": "40617"
},
{
"code": "23",
"region": "Maine",
"series_id": "MEPCPI",
"value": "39863"
},
{
"code": "24",
"region": "Maryland",
"series_id": "MDPCPI",
"value": "53659"
},
{
"code": "25",
"region": "Massachusetts",
"series_id": "MAPCPI",
"value": "56713"
},
{
"code": "26",
"region": "Michigan",
"series_id": "MIPCPI",
"value": "38585"
},
{
"code": "27",
"region": "Minnesota",
"series_id": "MNPCPI",
"value": "47377"
},
{
"code": "28",
"region": "Mississippi",
"series_id": "MSPCPI",
"value": "33446"
},
{
"code": "29",
"region": "Missouri",
"series_id": "MOPCPI",
"value": "39933"
},
{
"code": "30",
"region": "Montana",
"series_id": "MTPCPI",
"value": "39142"
},
{
"code": "31",
"region": "Nebraska",
"series_id": "NEPCPI",
"value": "45914"
},
{
"code": "32",
"region": "Nevada",
"series_id": "NVPCPI",
"value": "39229"
},
{
"code": "33",
"region": "New Hampshire",
"series_id": "NHPCPI",
"value": "50056"
},
{
"code": "34",
"region": "New Jersey",
"series_id": "NJPCPI",
"value": "54932"
},
{
"code": "35",
"region": "New Mexico",
"series_id": "NMPCPI",
"value": "35805"
},
{
"code": "36",
"region": "New York",
"series_id": "NYPCPI",
"value": "54099"
},
{
"code": "37",
"region": "North Carolina",
"series_id": "NCPCPI",
"value": "38538"
},
{
"code": "38",
"region": "North Dakota",
"series_id": "NDPCPI",
"value": "56310"
},
{
"code": "39",
"region": "Ohio",
"series_id": "OHPCPI",
"value": "40230"
},
{
"code": "40",
"region": "Oklahoma",
"series_id": "OKPCPI",
"value": "41399"
},
{
"code": "41",
"region": "Oregon",
"series_id": "ORPCPI",
"value": "39258"
},
{
"code": "42",
"region": "Pennsylvania",
"series_id": "PAPCPI",
"value": "45577"
},
{
"code": "44",
"region": "Rhode Island",
"series_id": "RIPCPI",
"value": "46257"
},
{
"code": "45",
"region": "South Carolina",
"series_id": "SCPCPI",
"value": "35347"
},
{
"code": "46",
"region": "South Dakota",
"series_id": "SDPCPI",
"value": "45676"
},
{
"code": "47",
"region": "Tennessee",
"series_id": "TNPCPI",
"value": "39002"
},
{
"code": "48",
"region": "Texas",
"series_id": "TXPCPI",
"value": "43271"
},
{
"code": "49",
"region": "Utah",
"series_id": "UTPCPI",
"value": "35891"
},
{
"code": "50",
"region": "Vermont",
"series_id": "VTPCPI",
"value": "44443"
},
{
"code": "51",
"region": "Virginia",
"series_id": "VAPCPI",
"value": "48715"
},
{
"code": "53",
"region": "Washington",
"series_id": "WAPCPI",
"value": "47055"
},
{
"code": "54",
"region": "West Virginia",
"series_id": "WVPCPI",
"value": "35140"
},
{
"code": "55",
"region": "Wisconsin",
"series_id": "WIPCPI",
"value": "42475"
},
{
"code": "56",
"region": "Wyoming",
"series_id": "WYPCPI",
"value": "52469"
}
],
"date": "2012-01-01",
"frequency": "Annual",
"region": "state",
"seasonality": "Not Seasonally Adjusted",
"title": "2012 Per Capita Personal Income by State (Dollars)",
"units": "Dollars"
}
}FRED
GeoFRED Series Data
This request returns a cross section of regional data for a specified release date. If no date is specified, the most recent data available are returned.
{"methods":[{"methodType":"GET","methodDesc":"Returns a cross section of regional data for a specified release date. If no date is specified, the most recent data available are returned.","requestParams":[{"name":"series_id","type":"string","required":true,"description":"The FRED series_id to request maps data for."},{"name":"date","type":"string","required":false,"description":"YYYY-MM-DD formatted string. The date to request data from."},{"name":"start_date","type":"string","required":false,"description":"YYYY-MM-DD formatted string. The start date to pull a range of data."}],"responseParams":[{"name":"series_data","type":"object","description":"Object with title, region, seasonality, units, frequency, and observations array (date, region, code, value, series_id)."}]}]}
GET
https://api.aisa.one
/
apis
/
v1
/
geofred
/
series
/
data
GeoFRED Series Data
curl --request GET \
--url https://api.aisa.one/apis/v1/geofred/series/data \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/geofred/series/data"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aisa.one/apis/v1/geofred/series/data', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/geofred/series/data",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/geofred/series/data"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.aisa.one/apis/v1/geofred/series/data")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/geofred/series/data")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"meta": {
"data": [
{
"code": "01",
"region": "Alabama",
"series_id": "ALPCPI",
"value": "35942"
},
{
"code": "02",
"region": "Alaska",
"series_id": "AKPCPI",
"value": "49906"
},
{
"code": "04",
"region": "Arizona",
"series_id": "AZPCPI",
"value": "36624"
},
{
"code": "05",
"region": "Arkansas",
"series_id": "ARPCPI",
"value": "36423"
},
{
"code": "06",
"region": "California",
"series_id": "CAPCPI",
"value": "47505"
},
{
"code": "08",
"region": "Colorado",
"series_id": "COPCPI",
"value": "46315"
},
{
"code": "09",
"region": "Connecticut",
"series_id": "CTPCPI",
"value": "60223"
},
{
"code": "10",
"region": "Delaware",
"series_id": "DEPCPI",
"value": "44031"
},
{
"code": "11",
"region": "District of Columbia",
"series_id": "DCPCPI",
"value": "75950"
},
{
"code": "12",
"region": "Florida",
"series_id": "FLPCPI",
"value": "41041"
},
{
"code": "13",
"region": "Georgia",
"series_id": "GAPCPI",
"value": "37229"
},
{
"code": "15",
"region": "Hawaii",
"series_id": "HIPCPI",
"value": "44578"
},
{
"code": "16",
"region": "Idaho",
"series_id": "IDPCPI",
"value": "35142"
},
{
"code": "17",
"region": "Illinois",
"series_id": "ILPCPI",
"value": "46009"
},
{
"code": "18",
"region": "Indiana",
"series_id": "INPCPI",
"value": "38136"
},
{
"code": "19",
"region": "Iowa",
"series_id": "IAPCPI",
"value": "44014"
},
{
"code": "20",
"region": "Kansas",
"series_id": "KSPCPI",
"value": "43380"
},
{
"code": "21",
"region": "Kentucky",
"series_id": "KYPCPI",
"value": "35857"
},
{
"code": "22",
"region": "Louisiana",
"series_id": "LAPCPI",
"value": "40617"
},
{
"code": "23",
"region": "Maine",
"series_id": "MEPCPI",
"value": "39863"
},
{
"code": "24",
"region": "Maryland",
"series_id": "MDPCPI",
"value": "53659"
},
{
"code": "25",
"region": "Massachusetts",
"series_id": "MAPCPI",
"value": "56713"
},
{
"code": "26",
"region": "Michigan",
"series_id": "MIPCPI",
"value": "38585"
},
{
"code": "27",
"region": "Minnesota",
"series_id": "MNPCPI",
"value": "47377"
},
{
"code": "28",
"region": "Mississippi",
"series_id": "MSPCPI",
"value": "33446"
},
{
"code": "29",
"region": "Missouri",
"series_id": "MOPCPI",
"value": "39933"
},
{
"code": "30",
"region": "Montana",
"series_id": "MTPCPI",
"value": "39142"
},
{
"code": "31",
"region": "Nebraska",
"series_id": "NEPCPI",
"value": "45914"
},
{
"code": "32",
"region": "Nevada",
"series_id": "NVPCPI",
"value": "39229"
},
{
"code": "33",
"region": "New Hampshire",
"series_id": "NHPCPI",
"value": "50056"
},
{
"code": "34",
"region": "New Jersey",
"series_id": "NJPCPI",
"value": "54932"
},
{
"code": "35",
"region": "New Mexico",
"series_id": "NMPCPI",
"value": "35805"
},
{
"code": "36",
"region": "New York",
"series_id": "NYPCPI",
"value": "54099"
},
{
"code": "37",
"region": "North Carolina",
"series_id": "NCPCPI",
"value": "38538"
},
{
"code": "38",
"region": "North Dakota",
"series_id": "NDPCPI",
"value": "56310"
},
{
"code": "39",
"region": "Ohio",
"series_id": "OHPCPI",
"value": "40230"
},
{
"code": "40",
"region": "Oklahoma",
"series_id": "OKPCPI",
"value": "41399"
},
{
"code": "41",
"region": "Oregon",
"series_id": "ORPCPI",
"value": "39258"
},
{
"code": "42",
"region": "Pennsylvania",
"series_id": "PAPCPI",
"value": "45577"
},
{
"code": "44",
"region": "Rhode Island",
"series_id": "RIPCPI",
"value": "46257"
},
{
"code": "45",
"region": "South Carolina",
"series_id": "SCPCPI",
"value": "35347"
},
{
"code": "46",
"region": "South Dakota",
"series_id": "SDPCPI",
"value": "45676"
},
{
"code": "47",
"region": "Tennessee",
"series_id": "TNPCPI",
"value": "39002"
},
{
"code": "48",
"region": "Texas",
"series_id": "TXPCPI",
"value": "43271"
},
{
"code": "49",
"region": "Utah",
"series_id": "UTPCPI",
"value": "35891"
},
{
"code": "50",
"region": "Vermont",
"series_id": "VTPCPI",
"value": "44443"
},
{
"code": "51",
"region": "Virginia",
"series_id": "VAPCPI",
"value": "48715"
},
{
"code": "53",
"region": "Washington",
"series_id": "WAPCPI",
"value": "47055"
},
{
"code": "54",
"region": "West Virginia",
"series_id": "WVPCPI",
"value": "35140"
},
{
"code": "55",
"region": "Wisconsin",
"series_id": "WIPCPI",
"value": "42475"
},
{
"code": "56",
"region": "Wyoming",
"series_id": "WYPCPI",
"value": "52469"
}
],
"date": "2012-01-01",
"frequency": "Annual",
"region": "state",
"seasonality": "Not Seasonally Adjusted",
"title": "2012 Per Capita Personal Income by State (Dollars)",
"units": "Dollars"
}
}请求规范
- 方法与路径: GET /apis/v1/geofred/series/data
- 可用状态: enabled
- 请求 URL 模板:
https://api.aisa.one/apis/v1/geofred/series/data - date: query; 可选
- file_type: query; 可选
- series_id: query; 必填
- start_date: query; 可选
{
"operationId": "any_fred_apis_v1_geofred_series_data",
"method": "GET",
"path": "/apis/v1/geofred/series/data",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [
{
"description": "The date you want to request series group data from.\nYYYY-MM-DD formatted string, optional",
"in": "query",
"name": "date",
"required": false,
"schema": {
"format": "date",
"type": "string"
},
"x-aisa-reference-declarations": [
"YYYY-MM-DD formatted string, optional"
]
},
{
"description": "A key or file extension that indicates the type of file to send.\nOne of the following values: 'xml', 'json' xml = Extensible Markup Language. The HTTP Content-Type is text/xml (xml is not available for county data). json = JavaScript Object Notation. The HTTP Content-Type is application/json.\nxml = Extensible Markup Language. The HTTP Content-Type is text/xml (xml is not available for county data). json = JavaScript Object Notation. The HTTP Content-Type is application/json.",
"in": "query",
"name": "file_type",
"required": false,
"schema": {
"default": "xml",
"enum": [
"xml",
"json"
],
"type": "string"
},
"x-aisa-reference-declarations": [
"One of the following values: 'xml', 'json'",
"optional, default: xml"
]
},
{
"description": "The FRED series_id you want to request maps data for. Not all series that are in FRED have geographical data.\nstring, required",
"in": "query",
"name": "series_id",
"required": true,
"schema": {
"type": "string"
},
"x-aisa-reference-declarations": [
"string, required"
]
},
{
"description": "The start date you want to request series group data from. This allows you to pull a range of data\nYYYY-MM-DD formatted string, optional",
"in": "query",
"name": "start_date",
"required": false,
"schema": {
"format": "date",
"type": "string"
},
"x-aisa-reference-declarations": [
"YYYY-MM-DD formatted string, optional"
]
}
],
"security": [
{
"bearerAuth": []
}
],
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
费用与请求规则
公开参考价格:每次成功请求 $0.00001 USD。 账户适用价格可能不同;支持报价的接口可按实际请求获取报价。授权
查询参数
A key or file extension that indicates the type of file to send. One of the following values: 'xml', 'json' xml = Extensible Markup Language. The HTTP Content-Type is text/xml (xml is not available for county data). json = JavaScript Object Notation. The HTTP Content-Type is application/json. xml = Extensible Markup Language. The HTTP Content-Type is text/xml (xml is not available for county data). json = JavaScript Object Notation. The HTTP Content-Type is application/json.
可用选项:
xml, json 响应
Successful response. The payload schema has not been reviewed yet.