GeoFRED Series Group
curl --request GET \
--url https://api.aisa.one/apis/v1/geofred/series/group \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/geofred/series/group"
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/group', 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/group",
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/group"
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/group")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/geofred/series/group")
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{
"series_group": {
"frequency": "Annual",
"max_date": "2021-01-01",
"min_date": "1990-01-01",
"region_type": "state",
"season": "NSA",
"series_group": "1223",
"title": "All Employees: Total Private",
"units": "Thousands of Persons"
}
}FRED
GeoFRED Series Group
This request returns the meta information needed to make requests for FRED data. Minimum and maximum date are also supplied for the data range available.
{"methods":[{"methodType":"GET","methodDesc":"Returns the meta information needed to make requests for FRED map data. Includes min/max date and data range.","requestParams":[{"name":"series_id","type":"string","required":true,"description":"The FRED series id to request maps meta information for. Not all series have geographical data."}],"responseParams":[{"name":"series_group","type":"object","description":"Object with title, region_type, series_group, season, units, frequency, min_date, max_date."}]}]}
GET
https://api.aisa.one
/
apis
/
v1
/
geofred
/
series
/
group
GeoFRED Series Group
curl --request GET \
--url https://api.aisa.one/apis/v1/geofred/series/group \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/geofred/series/group"
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/group', 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/group",
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/group"
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/group")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/geofred/series/group")
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{
"series_group": {
"frequency": "Annual",
"max_date": "2021-01-01",
"min_date": "1990-01-01",
"region_type": "state",
"season": "NSA",
"series_group": "1223",
"title": "All Employees: Total Private",
"units": "Thousands of Persons"
}
}请求规范
- 方法与路径: GET /apis/v1/geofred/series/group
- 可用状态: enabled
- 请求 URL 模板:
https://api.aisa.one/apis/v1/geofred/series/group - file_type: query; 可选
- series_id: query; 必填
{
"operationId": "any_fred_apis_v1_geofred_series_group",
"method": "GET",
"path": "/apis/v1/geofred/series/group",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [
{
"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. json = JavaScript Object Notation. The HTTP Content-Type is application/json.\nxml = Extensible Markup Language. The HTTP Content-Type is text/xml. 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 meta information 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"
]
}
],
"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. json = JavaScript Object Notation. The HTTP Content-Type is application/json. xml = Extensible Markup Language. The HTTP Content-Type is text/xml. json = JavaScript Object Notation. The HTTP Content-Type is application/json.
可用选项:
xml, json 响应
Successful response. The payload schema has not been reviewed yet.