-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathfred-schema.yaml
More file actions
3330 lines (3324 loc) · 109 KB
/
Copy pathfred-schema.yaml
File metadata and controls
3330 lines (3324 loc) · 109 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
openapi: 3.0.3
info:
title: FRED API
description: 'Federal Reserve Economic Data (FRED) web service, published by the Economic Research Division
of the Federal Reserve Bank of St. Louis.
The API exposes economic data series and the categories, releases, sources and tags that organise
them, plus the regional data and GeoJSON shape files behind the FRED maps (the /geofred paths).
Every request needs a free API key, passed as the api_key query parameter: https://fredaccount.stlouisfed.org/apikeys
Responses are XML by default; set file_type=json for JSON.'
version: 2.0.0
contact:
name: FRED API support
url: https://fred.stlouisfed.org/docs/api/fred/
externalDocs:
description: Official FRED API documentation
url: https://fred.stlouisfed.org/docs/api/fred/
servers:
- url: https://api.stlouisfed.org
description: FRED API server
security:
- ApiKeyAuth: []
tags:
- name: Categories
description: Browse the category tree that organises FRED's series.
- name: Releases
description: Data releases and their publication dates.
- name: Series
description: Economic data series, their observations and metadata.
- name: Sources
description: Organisations that publish the data FRED redistributes.
- name: Tags
description: Free-form tags attached to series, releases and categories.
- name: Maps
description: Regional data and GeoJSON shape files behind the FRED maps.
paths:
/fred/category:
get:
tags:
- Categories
summary: Get a category.
operationId: getCategory
parameters:
- name: file_type
in: query
description: 'A key or file extension that indicates the type of file to send. Values: xml = Extensible
Markup Language. The HTTP Content-Type is text/xml; json = JavaScript Object Notation. The HTTP
Content-Type is application/json.'
schema:
type: string
enum:
- xml
- json
default: xml
- name: category_id
in: query
description: The id for a category.
schema:
type: integer
default: 0
example: 125
responses:
'200':
description: Successful response.
content:
application/json:
schema:
type: object
text/xml:
schema:
type: string
'400':
description: 'Bad request: a parameter is missing, malformed or out of range, or the API key
was rejected.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/fred/category/children:
get:
tags:
- Categories
summary: Get the child categories for a specified parent category.
operationId: getCategoryChildren
parameters:
- name: file_type
in: query
description: 'A key or file extension that indicates the type of file to send. Values: xml = Extensible
Markup Language. The HTTP Content-Type is text/xml; json = JavaScript Object Notation. The HTTP
Content-Type is application/json.'
schema:
type: string
enum:
- xml
- json
default: xml
- name: category_id
in: query
description: The id for a category.
schema:
type: integer
default: 0
example: 125
- name: realtime_start
in: query
description: 'The start of the real-time period. For more information, see Real-Time Periods.
Default: today''s date. Together with realtime_end this selects the vintage of the data: leaving
both at their defaults returns the data as it stands today, while an earlier period returns
the figures as they were then.'
schema:
type: string
format: date
example: '2013-01-01'
- name: realtime_end
in: query
description: 'The end of the real-time period. For more information, see Real-Time Periods. Default:
today''s date. See realtime_start.'
schema:
type: string
format: date
example: '9999-12-31'
responses:
'200':
description: Successful response.
content:
application/json:
schema:
type: object
text/xml:
schema:
type: string
'400':
description: 'Bad request: a parameter is missing, malformed or out of range, or the API key
was rejected.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/fred/category/related:
get:
tags:
- Categories
summary: Get the related categories for a category.
description: Get the related categories for a category. A related category is a one-way relation
between 2 categories that is not part of a parent-child category hierarchy. Most categories do
not have related categories.
operationId: getCategoryRelated
parameters:
- name: file_type
in: query
description: 'A key or file extension that indicates the type of file to send. Values: xml = Extensible
Markup Language. The HTTP Content-Type is text/xml; json = JavaScript Object Notation. The HTTP
Content-Type is application/json.'
schema:
type: string
enum:
- xml
- json
default: xml
- name: category_id
in: query
required: true
description: The id for a category.
schema:
type: integer
example: 125
- name: realtime_start
in: query
description: 'The start of the real-time period. For more information, see Real-Time Periods.
Default: today''s date. Together with realtime_end this selects the vintage of the data: leaving
both at their defaults returns the data as it stands today, while an earlier period returns
the figures as they were then.'
schema:
type: string
format: date
example: '2013-01-01'
- name: realtime_end
in: query
description: 'The end of the real-time period. For more information, see Real-Time Periods. Default:
today''s date. See realtime_start.'
schema:
type: string
format: date
example: '9999-12-31'
responses:
'200':
description: Successful response.
content:
application/json:
schema:
type: object
text/xml:
schema:
type: string
'400':
description: 'Bad request: a parameter is missing, malformed or out of range, or the API key
was rejected.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/fred/category/related_tags:
get:
tags:
- Categories
summary: Get the related FRED tags for one or more FRED tags within a category.
description: Get the related FRED tags for one or more FRED tags within a category. Optionally,
filter results by tag group or search.
operationId: getCategoryRelatedTags
parameters:
- name: file_type
in: query
description: 'A key or file extension that indicates the type of file to send. Values: xml = Extensible
Markup Language. The HTTP Content-Type is text/xml; json = JavaScript Object Notation. The HTTP
Content-Type is application/json.'
schema:
type: string
enum:
- xml
- json
default: xml
- name: category_id
in: query
required: true
description: The id for a category.
schema:
type: integer
example: 125
- name: realtime_start
in: query
description: 'The start of the real-time period. For more information, see Real-Time Periods.
Default: today''s date. Together with realtime_end this selects the vintage of the data: leaving
both at their defaults returns the data as it stands today, while an earlier period returns
the figures as they were then.'
schema:
type: string
format: date
example: '2013-01-01'
- name: realtime_end
in: query
description: 'The end of the real-time period. For more information, see Real-Time Periods. Default:
today''s date. See realtime_start.'
schema:
type: string
format: date
example: '9999-12-31'
- name: tag_names
in: query
required: true
description: A semicolon delimited list of tag names that series match all of. See the related
request fred/category/tags.
schema:
type: string
example: services;quarterly
- name: exclude_tag_names
in: query
description: A semicolon delimited list of tag names that series match none of.
schema:
type: string
example: discontinued;annual
- name: tag_group_id
in: query
description: A tag group id to filter tags by type.
schema:
type: string
example: geo
- name: search_text
in: query
description: The words to find matching tags with.
schema:
type: string
example: monetary service index
- name: limit
in: query
description: The maximum number of results to return.
schema:
type: integer
minimum: 1
maximum: 1000
default: 1000
- name: offset
in: query
schema:
type: integer
minimum: 0
default: 0
description: Number of results to skip before the first row returned. Combine with limit to page
through a result set.
- name: order_by
in: query
description: Order results by values of the specified attribute.
schema:
type: string
enum:
- series_count
- popularity
- created
- name
- group_id
default: series_count
- name: sort_order
in: query
description: Sort results is ascending or descending order for attribute values specified by order_by.
schema:
type: string
enum:
- asc
- desc
default: asc
responses:
'200':
description: Successful response.
content:
application/json:
schema:
type: object
text/xml:
schema:
type: string
'400':
description: 'Bad request: a parameter is missing, malformed or out of range, or the API key
was rejected.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/fred/category/series:
get:
tags:
- Categories
summary: Get the series in a category.
operationId: getCategorySeries
parameters:
- name: file_type
in: query
description: 'A key or file extension that indicates the type of file to send. Values: xml = Extensible
Markup Language. The HTTP Content-Type is text/xml; json = JavaScript Object Notation. The HTTP
Content-Type is application/json.'
schema:
type: string
enum:
- xml
- json
default: xml
- name: category_id
in: query
required: true
description: The id for a category.
schema:
type: integer
example: 125
- name: realtime_start
in: query
description: 'The start of the real-time period. For more information, see Real-Time Periods.
Default: today''s date. Together with realtime_end this selects the vintage of the data: leaving
both at their defaults returns the data as it stands today, while an earlier period returns
the figures as they were then.'
schema:
type: string
format: date
example: '2013-01-01'
- name: realtime_end
in: query
description: 'The end of the real-time period. For more information, see Real-Time Periods. Default:
today''s date. See realtime_start.'
schema:
type: string
format: date
example: '9999-12-31'
- name: limit
in: query
description: The maximum number of results to return.
schema:
type: integer
minimum: 1
maximum: 1000
default: 1000
- name: offset
in: query
schema:
type: integer
minimum: 0
default: 0
description: Number of results to skip before the first row returned. Combine with limit to page
through a result set.
- name: order_by
in: query
description: Order results by values of the specified attribute.
schema:
type: string
enum:
- series_id
- title
- units
- frequency
- seasonal_adjustment
- realtime_start
- realtime_end
- last_updated
- observation_start
- observation_end
- popularity
- group_popularity
default: series_id
- name: sort_order
in: query
description: Sort results is ascending or descending order for attribute values specified by order_by.
schema:
type: string
enum:
- asc
- desc
default: asc
- name: filter_variable
in: query
description: The attribute to filter results by. Use together with filter_value.
schema:
type: string
example: frequency
- name: filter_value
in: query
description: The value of the filter_variable attribute to filter results by.
schema:
type: string
example: Monthly
- name: tag_names
in: query
description: A semicolon delimited list of tag names that series match all of.
schema:
type: string
example: services;quarterly
- name: exclude_tag_names
in: query
description: A semicolon delimited list of tag names that series match none of.
schema:
type: string
example: discontinued;annual
responses:
'200':
description: Successful response.
content:
application/json:
schema:
type: object
text/xml:
schema:
type: string
'400':
description: 'Bad request: a parameter is missing, malformed or out of range, or the API key
was rejected.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/fred/category/tags:
get:
tags:
- Categories
summary: Get the FRED tags for a category.
description: Get the FRED tags for a category. Optionally, filter results by tag name, tag group,
or search. Series are assigned tags and categories. Indirectly through series, it is possible
to get the tags for a category. No tags exist for a category that does not have series. See the
related request fred/category/related_tags.
operationId: getCategoryTags
parameters:
- name: file_type
in: query
description: 'A key or file extension that indicates the type of file to send. Values: xml = Extensible
Markup Language. The HTTP Content-Type is text/xml; json = JavaScript Object Notation. The HTTP
Content-Type is application/json.'
schema:
type: string
enum:
- xml
- json
default: xml
- name: category_id
in: query
required: true
description: The id for a category.
schema:
type: integer
example: 125
- name: realtime_start
in: query
description: 'The start of the real-time period. For more information, see Real-Time Periods.
Default: today''s date. Together with realtime_end this selects the vintage of the data: leaving
both at their defaults returns the data as it stands today, while an earlier period returns
the figures as they were then.'
schema:
type: string
format: date
example: '2013-01-01'
- name: realtime_end
in: query
description: 'The end of the real-time period. For more information, see Real-Time Periods. Default:
today''s date. See realtime_start.'
schema:
type: string
format: date
example: '9999-12-31'
- name: tag_names
in: query
description: A semicolon delimited list of tag names to only include in the response. See the
related request fred/category/related_tags.
schema:
type: string
example: services;quarterly
- name: tag_group_id
in: query
description: A tag group id to filter tags by type.
schema:
type: string
example: geo
- name: search_text
in: query
description: The words to find matching tags with.
schema:
type: string
example: monetary service index
- name: limit
in: query
description: The maximum number of results to return.
schema:
type: integer
minimum: 1
maximum: 1000
default: 1000
- name: offset
in: query
schema:
type: integer
minimum: 0
default: 0
description: Number of results to skip before the first row returned. Combine with limit to page
through a result set.
- name: order_by
in: query
description: Order results by values of the specified attribute.
schema:
type: string
enum:
- series_count
- popularity
- created
- name
- group_id
default: series_count
- name: sort_order
in: query
description: Sort results is ascending or descending order for attribute values specified by order_by.
schema:
type: string
enum:
- asc
- desc
default: asc
responses:
'200':
description: Successful response.
content:
application/json:
schema:
type: object
text/xml:
schema:
type: string
'400':
description: 'Bad request: a parameter is missing, malformed or out of range, or the API key
was rejected.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/geofred/regional/data:
get:
tags:
- Maps
summary: This request returns a cross section of regional data.
operationId: getGeoFredRegionalData
parameters:
- name: file_type
in: query
description: A key or file extension that indicates the type of file to send.
schema:
type: string
enum:
- xml
- json
- name: series_group
in: query
required: true
description: The ID for a group of series found in FRED.
schema:
type: string
example: '882'
- name: region_type
in: query
required: true
description: The region you want to pull data for.
schema:
type: string
example: state
- name: date
in: query
required: true
description: The date you want to pull a series group data from.
schema:
type: string
format: date
example: '2013-01-01'
- name: start_date
in: query
description: The start date you want to request series group data from. This allows you to pull
a range of data
schema:
type: string
format: date
example: '2012-01-01'
- name: season
in: query
required: true
description: The seasonality of the series group.
schema:
type: string
example: NSA
- name: units
in: query
required: true
description: The units of the series you want to pull.
schema:
type: string
example: Dollars
- name: transformation
in: query
description: 'A key that indicates a data value transformation. Values: lin = Levels (No transformation);
chg = Change; ch1 = Change from Year Ago; pch = Percent Change; pc1 = Percent Change from Year
Ago; pca = Compounded Annual Rate of Change; cch = Continuously Compounded Rate of Change; cca
= Continuously Compounded Annual Rate of Change; log = Natural Log.'
schema:
type: string
enum:
- lin
- chg
- ch1
- pch
- pc1
- pca
- cch
- cca
- log
default: lin
- name: frequency
in: query
required: true
description: '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 data series into an annual data series). In maps, the highest
frequency data is daily, and the lowest frequency data is annual. There are 3 aggregation methods
available- average, sum, and end of period. See the aggregation_method parameter. Values: d
= Daily; w = Weekly; bw = Biweekly; m = Monthly; q = Quarterly; sa = Semiannual; a = Annual;
wef = Weekly, Ending Friday; weth = Weekly, Ending Thursday; wew = Weekly, Ending Wednesday;
wetu = Weekly, Ending Tuesday; wem = Weekly, Ending Monday; wesu = Weekly, Ending Sunday; wesa
= Weekly, Ending Saturday; bwew = Biweekly, Ending Wednesday; bwem = Biweekly, Ending Monday.'
schema:
type: string
enum:
- d
- w
- bw
- m
- q
- sa
- a
- wef
- weth
- wew
- wetu
- wem
- wesu
- wesa
- bwew
- bwem
example: a
- name: aggregation_method
in: query
schema:
type: string
enum:
- avg
- sum
- eop
default: avg
description: 'Has no effect unless frequency is set. Values: avg = Average; sum = Sum; eop = End
of Period.'
responses:
'200':
description: Successful response.
content:
application/json:
schema:
type: object
text/xml:
schema:
type: string
'400':
description: 'Bad request: a parameter is missing, malformed or out of range, or the API key
was rejected.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/geofred/series/data:
get:
tags:
- Maps
summary: This request returns a cross section of regional data for a specified release date.
description: 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.
operationId: getGeoFredSeriesData
parameters:
- name: file_type
in: query
description: A key or file extension that indicates the type of file to send.
schema:
type: string
enum:
- xml
- json
- name: series_id
in: query
required: true
description: The FRED series_id you want to request maps data for. Not all series that are in
FRED have geographical data.
schema:
type: string
example: GNPCA
- name: date
in: query
description: The date you want to request series group data from.
schema:
type: string
format: date
example: '2013-01-01'
- name: start_date
in: query
description: The start date you want to request series group data from. This allows you to pull
a range of data
schema:
type: string
format: date
example: '2012-01-01'
responses:
'200':
description: Successful response.
content:
application/json:
schema:
type: object
text/xml:
schema:
type: string
'400':
description: 'Bad request: a parameter is missing, malformed or out of range, or the API key
was rejected.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/geofred/series/group:
get:
tags:
- Maps
summary: This request returns the meta information needed to make requests for FRED data.
description: 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.
operationId: getGeoFredSeriesGroup
parameters:
- name: file_type
in: query
description: 'A key or file extension that indicates the type of file to send. Values: xml = Extensible
Markup Language. The HTTP Content-Type is text/xml; json = JavaScript Object Notation. The HTTP
Content-Type is application/json.'
schema:
type: string
enum:
- xml
- json
- name: series_id
in: query
required: true
description: The FRED series id you want to request maps meta information for. Not all series
that are in FRED have geographical data.
schema:
type: string
example: GNPCA
responses:
'200':
description: Successful response.
content:
application/json:
schema:
type: object
text/xml:
schema:
type: string
'400':
description: 'Bad request: a parameter is missing, malformed or out of range, or the API key
was rejected.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/geofred/shapes/file:
get:
tags:
- Maps
summary: This request returns shape files from FRED in GeoJSON format.
operationId: getGeoFredShapesFile
parameters:
- name: shape
in: query
required: true
description: The type of shape you want to pull GeoJSON data for.
schema:
type: string
enum:
- bea
- msa
- frb
- necta
- state
- country
- county
- censusregion
- censusdivision
example: bea
responses:
'200':
description: Successful response.
content:
application/json:
schema:
type: object
text/xml:
schema:
type: string
'400':
description: 'Bad request: a parameter is missing, malformed or out of range, or the API key
was rejected.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/fred/release:
get:
tags:
- Releases
summary: Get a release of economic data.
operationId: getRelease
parameters:
- name: file_type
in: query
description: 'A key or file extension that indicates the type of file to send. Values: xml = Extensible
Markup Language. The HTTP Content-Type is text/xml; json = JavaScript Object Notation. The HTTP
Content-Type is application/json.'
schema:
type: string
enum:
- xml
- json
default: xml
- name: release_id
in: query
required: true
description: The id for a release.
schema:
type: integer
example: 53
- name: realtime_start
in: query
description: 'The start of the real-time period. For more information, see Real-Time Periods.
Default: today''s date. Together with realtime_end this selects the vintage of the data: leaving
both at their defaults returns the data as it stands today, while an earlier period returns
the figures as they were then.'
schema:
type: string
format: date
example: '2013-01-01'
- name: realtime_end
in: query
description: 'The end of the real-time period. For more information, see Real-Time Periods. Default:
today''s date. See realtime_start.'
schema:
type: string
format: date
example: '9999-12-31'
responses:
'200':
description: Successful response.
content:
application/json:
schema:
type: object
text/xml:
schema:
type: string
'400':
description: 'Bad request: a parameter is missing, malformed or out of range, or the API key
was rejected.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/fred/release/dates:
get:
tags:
- Releases
summary: Get release dates for a release of economic data.
operationId: getReleaseDates
parameters:
- name: release_id
in: query
required: true
description: The id for a release.
schema:
type: integer
example: 53
- name: file_type
in: query
description: 'A key or file extension that indicates the type of file to send. Values: xml = Extensible
Markup Language. The HTTP Content-Type is text/xml; json = JavaScript Object Notation. The HTTP
Content-Type is application/json.'
schema:
type: string
enum:
- xml
- json
default: xml
- name: realtime_start
in: query
description: 'The start of the real-time period. For more information, see Real-Time Periods.
Together with realtime_end this selects the vintage of the data: leaving both at their defaults
returns the data as it stands today, while an earlier period returns the figures as they were
then.'
schema:
type: string
format: date
default: '1776-07-04'
example: '2013-01-01'
- name: realtime_end
in: query
description: The end of the real-time period. For more information, see Real-Time Periods. See
realtime_start.
schema:
type: string
format: date
default: '9999-12-31'
- name: limit
in: query
description: The maximum number of results to return.
schema:
type: integer
minimum: 1
maximum: 10000
default: 10000
- name: offset
in: query
schema:
type: integer
minimum: 0
default: 0
description: Number of results to skip before the first row returned. Combine with limit to page
through a result set.
- name: sort_order
in: query
description: Sort results is ascending or descending release date order.
schema:
type: string
enum:
- asc
- desc
default: asc
- name: include_release_dates_with_no_data
in: query
description: Determines whether release dates with no data available are returned. The defalut
value 'false' excludes release dates that do not have data. In particular, this excludes future
release dates which may be available in the FRED release calendar or the ALFRED release calendar.
schema:
type: string
enum:
- 'true'
- 'false'
default: 'false'