Skip to content

Commit c2f933e

Browse files
authored
Merge pull request #1167 from cmu-delphi/release/delphi-epidata-0.4.12
Release Delphi Epidata 0.4.12
2 parents 7c666fe + cab9043 commit c2f933e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+217
-78
lines changed

.bumpversion.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 0.4.11
2+
current_version = 0.4.12
33
commit = False
44
tag = False
55

dev/local/setup.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = Delphi Development
3-
version = 0.4.11
3+
version = 0.4.12
44

55
[options]
66
packages =

docs/Gemfile.lock

+3-3
Original file line numberDiff line numberDiff line change
@@ -205,14 +205,14 @@ GEM
205205
rb-fsevent (~> 0.10, >= 0.10.3)
206206
rb-inotify (~> 0.9, >= 0.9.10)
207207
mercenary (0.3.6)
208-
mini_portile2 (2.8.0)
208+
mini_portile2 (2.8.1)
209209
minima (2.5.1)
210210
jekyll (>= 3.5, < 5.0)
211211
jekyll-feed (~> 0.9)
212212
jekyll-seo-tag (~> 2.1)
213213
minitest (5.17.0)
214214
multipart-post (2.1.1)
215-
nokogiri (1.13.10)
215+
nokogiri (1.14.3)
216216
mini_portile2 (~> 2.8.0)
217217
racc (~> 1.4)
218218
octokit (4.20.0)
@@ -221,7 +221,7 @@ GEM
221221
pathutil (0.16.2)
222222
forwardable-extended (~> 2.6)
223223
public_suffix (4.0.6)
224-
racc (1.6.1)
224+
racc (1.6.2)
225225
rb-fsevent (0.10.4)
226226
rb-inotify (0.10.1)
227227
ffi (~> 1.0)

docs/api/README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Other Endpoints (COVID-19 and Other Diseases)
3-
nav_order: 2
3+
nav_order: 3
44
has_children: true
55
---
66

@@ -70,7 +70,7 @@ Please note that our `endpoint` parameters were previously referenced as `source
7070

7171
# The API
7272

73-
The base URL is: https://delphi.cmu.edu/epidata/
73+
The base URL is: https://api.delphi.cmu.edu/epidata/
7474

7575
## Specifying Epiweeks, Dates, and Lists
7676

@@ -154,7 +154,7 @@ The parameters available for each source are documented in each linked source-sp
154154
# Example URLs
155155

156156
### FluView on 2015w01 (national)
157-
https://delphi.cmu.edu/epidata/fluview/?regions=nat&epiweeks=201501
157+
https://api.delphi.cmu.edu/epidata/fluview/?regions=nat&epiweeks=201501
158158

159159
```json
160160
{
@@ -184,7 +184,7 @@ https://delphi.cmu.edu/epidata/fluview/?regions=nat&epiweeks=201501
184184
```
185185

186186
### Wikipedia Access article "influenza" on 2020w01
187-
https://delphi.cmu.edu/epidata/wiki/?language=en&articles=influenza&epiweeks=202001
187+
https://api.delphi.cmu.edu/epidata/wiki/?language=en&articles=influenza&epiweeks=202001
188188

189189
```json
190190
{

docs/api/afhsb.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ General topics not specific to any particular endpoint are discussed in the
1919

2020
# The API
2121

22-
The base URL is: https://delphi.cmu.edu/epidata/afhsb/
22+
The base URL is: https://api.delphi.cmu.edu/epidata/afhsb/
2323

2424
See [this documentation](README.md) for details on specifying epiweeks, dates, and lists.
2525

docs/api/api_keys.md

+64
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
---
2+
title: API Keys
3+
nav_order: 1
4+
has_children: true
5+
---
6+
7+
# Epidata API Keys
8+
9+
Anyone may access the Epidata API anonymously without providing any personal
10+
data. Anonymous API access is subject to the following restrictions; they may
11+
change as we learn more about their impact:
12+
13+
1. public datasets only
14+
1. rate-limited to 60 requests per hour
15+
1. only two parameters may have multiple selections
16+
17+
For example, a query for three signals on one date across all counties can be
18+
submitted anonymously, but a query for three signals on a period of four weeks
19+
across all counties requires an API key.
20+
21+
An API key is a pseudonymous access token that grants privileged access to the
22+
Epidata API. You can request an API key by
23+
[registering with us](https://forms.gle/hkBr5SfQgxguAfEt7).
24+
Privileges of registration may include:
25+
26+
1. no rate limit
27+
1. no limit on multiple selections
28+
29+
We require an email address for all registrations so that we can contact you to
30+
resolve problems with excessive or abnormal usage patterns. Any additional
31+
personal information you provide to us at registration will be much appreciated,
32+
because it will help us understand what our data is used for and inform our
33+
plans and priorities, but is voluntary. For more information on how we use and
34+
store the information you provide us at registration time, see our
35+
[privacy statement](api/privacy_statement.md).
36+
37+
## Usage
38+
39+
If you choose to [register for an API key](https://forms.gle/hkBr5SfQgxguAfEt7),
40+
there are several ways to use your key to authenticate your requests:
41+
42+
### Via request parameter
43+
44+
The request parameter “api_key” can be used to pass the API key to the server.
45+
Example:
46+
47+
https://api.delphi.cmu.edu/epidata/covidcast/meta?api_key=your_api_key_here
48+
49+
### Via Basic Authentication
50+
51+
Another method is using the HTTP basic authorization header with the username
52+
"epidata" and the API key as the password. Example:
53+
54+
```
55+
curl -u 'epidata:your_api_key_here' https://api.delphi.cmu.edu/epidata/covidcast/meta
56+
```
57+
58+
### Via Bearer Token
59+
60+
Another method is providing the key in a bearer token header. Example:
61+
62+
```
63+
curl -H 'Authorization: Bearer your_api_key_here' https://api.delphi.cmu.edu/epidata/covidcast/meta
64+
```

docs/api/cdc.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ General topics not specific to any particular endpoint are discussed in the
1919

2020
# The API
2121

22-
The base URL is: https://delphi.cmu.edu/epidata/cdc/
22+
The base URL is: https://api.delphi.cmu.edu/epidata/cdc/
2323

2424
See [this documentation](README.md) for details on specifying epiweeks, dates, and lists.
2525

docs/api/covid_hosp.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ dataset was published by HHS.
4646

4747
# The API
4848

49-
The base URL is: https://delphi.cmu.edu/epidata/covid_hosp_state_timeseries/
49+
The base URL is: https://api.delphi.cmu.edu/epidata/covid_hosp_state_timeseries/
5050

5151
See [this documentation](README.md) for details on specifying locations and dates.
5252

@@ -82,7 +82,7 @@ If `issues` is not specified, then the most recent issue is used by default.
8282
# Example URLs
8383

8484
### MA on 2020-05-10 (per most recent issue)
85-
https://delphi.cmu.edu/epidata/covid_hosp_state_timeseries/?states=MA&dates=20200510
85+
https://api.delphi.cmu.edu/epidata/covid_hosp_state_timeseries/?states=MA&dates=20200510
8686

8787
```json
8888
{

docs/api/covid_hosp_facility.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ HHS. New versions are expected to be published roughly weekly.
3737

3838
# The API
3939

40-
The base URL is: https://delphi.cmu.edu/epidata/covid_hosp_facility/
40+
The base URL is: https://api.delphi.cmu.edu/epidata/covid_hosp_facility/
4141

4242
See [this documentation](README.md) for details on specifying locations and dates.
4343

@@ -87,7 +87,7 @@ has been renamed here for clarity.
8787
# Example URLs
8888

8989
### Moses Taylor Hospital (Scranton, PA) on the first collection week of December 2020 (per most recent issue)
90-
https://delphi.cmu.edu/epidata/covid_hosp_facility/?hospital_pks=390119&collection_weeks=20201201-20201207
90+
https://api.delphi.cmu.edu/epidata/covid_hosp_facility/?hospital_pks=390119&collection_weeks=20201201-20201207
9191

9292
```json
9393
{

docs/api/covid_hosp_facility_lookup.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ This data source provides metadata about healthcare facilities in the US.
3030

3131
# The API
3232

33-
The base URL is: https://delphi.cmu.edu/epidata/covid_hosp_facility_lookup/
33+
The base URL is: https://api.delphi.cmu.edu/epidata/covid_hosp_facility_lookup/
3434

3535
See [this documentation](README.md) for details on specifying locations and dates.
3636

@@ -72,7 +72,7 @@ Use the `hospital_pk` value when querying
7272
# Example URLs
7373

7474
### Lookup facilities in the city of Southlake (TX)
75-
https://delphi.cmu.edu/epidata/covid_hosp_facility_lookup/?city=southlake
75+
https://api.delphi.cmu.edu/epidata/covid_hosp_facility_lookup/?city=southlake
7676

7777
```json
7878
{

docs/api/covidcast.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: COVIDcast Main Endpoint
33
has_children: true
4-
nav_order: 1
4+
nav_order: 2
55
---
66

77
# COVIDcast Epidata API
@@ -92,7 +92,7 @@ sources and signals.
9292
## Constructing API Queries
9393

9494
The COVIDcast API is based on HTTP GET queries and returns data in JSON form.
95-
The base URL is `https://api.covidcast.cmu.edu/epidata/covidcast/`.
95+
The base URL is `https://api.delphi.cmu.edu/epidata/covidcast/`.
9696

9797
See [this documentation](README.md) for details on specifying epiweeks, dates,
9898
and lists.
@@ -207,7 +207,7 @@ The `fields` parameter can be used to limit which fields are included in each re
207207

208208
### Facebook Survey CLI on 2020-04-06 to 2010-04-10 (county 06001)
209209

210-
https://api.covidcast.cmu.edu/epidata/covidcast/?data_source=fb-survey&signal=smoothed_cli&time_type=day&geo_type=county&time_values=20200406-20200410&geo_value=06001
210+
https://api.delphi.cmu.edu/epidata/covidcast/?data_source=fb-survey&signal=smoothed_cli&time_type=day&geo_type=county&time_values=20200406-20200410&geo_value=06001
211211

212212
```json
213213
{
@@ -229,7 +229,7 @@ https://api.covidcast.cmu.edu/epidata/covidcast/?data_source=fb-survey&signal=sm
229229

230230
### Facebook Survey CLI on 2020-04-06 (all counties)
231231

232-
https://api.covidcast.cmu.edu/epidata/covidcast/?data_source=fb-survey&signal=smoothed_cli&time_type=day&geo_type=county&time_values=20200406&geo_value=*
232+
https://api.delphi.cmu.edu/epidata/covidcast/?data_source=fb-survey&signal=smoothed_cli&time_type=day&geo_type=county&time_values=20200406&geo_value=*
233233

234234
```json
235235
{

docs/api/covidcast_meta.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ geographic levels at which they are reported.
1313

1414
## The API
1515

16-
The base URL is: https://api.covidcast.cmu.edu/epidata/covidcast_meta/
16+
The base URL is: https://api.delphi.cmu.edu/epidata/covidcast_meta/
1717

1818
See [this documentation](README.md) for details on specifying epiweeks, dates, and lists.
1919

@@ -45,7 +45,7 @@ None required.
4545

4646
## Example URLs
4747

48-
https://api.covidcast.cmu.edu/epidata/covidcast_meta/
48+
https://api.delphi.cmu.edu/epidata/covidcast_meta/
4949

5050
```json
5151
{

docs/api/delphi.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ General topics not specific to any particular endpoint are discussed in the
1919

2020
# The API
2121

22-
The base URL is: https://delphi.cmu.edu/epidata/delphi/
22+
The base URL is: https://api.delphi.cmu.edu/epidata/delphi/
2323

2424
See [this documentation](README.md) for details on specifying epiweeks, dates, and lists.
2525

@@ -58,7 +58,7 @@ See [this documentation](README.md) for details on specifying epiweeks, dates, a
5858
# Example URLs
5959

6060
### Delphi on 2020w01 (EC)
61-
https://delphi.cmu.edu/epidata/delphi/?system=ec&epiweek=202001
61+
https://api.delphi.cmu.edu/epidata/delphi/?system=ec&epiweek=202001
6262

6363
```json
6464
{

docs/api/dengue_nowcast.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ General topics not specific to any particular endpoint are discussed in the
2020

2121
# The API
2222

23-
The base URL is: https://delphi.cmu.edu/epidata/dengue_nowcast/
23+
The base URL is: https://api.delphi.cmu.edu/epidata/dengue_nowcast/
2424

2525
See [this documentation](README.md) for details on specifying epiweeks, dates, and lists.
2626

docs/api/dengue_sensors.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ General topics not specific to any particular endpoint are discussed in the
2020

2121
# The API
2222

23-
The base URL is: https://delphi.cmu.edu/epidata/dengue_sensors/
23+
The base URL is: https://api.delphi.cmu.edu/epidata/dengue_sensors/
2424

2525
See [this documentation](README.md) for details on specifying epiweeks, dates, and lists.
2626

docs/api/ecdc_ili.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ ECDC ILI data from ECDC website. ... <!-- TODO -->
1919

2020
# The API
2121

22-
The base URL is: https://delphi.cmu.edu/epidata/ecdc_ili/
22+
The base URL is: https://api.delphi.cmu.edu/epidata/ecdc_ili/
2323

2424
See [this documentation](README.md) for details on specifying epiweeks, dates, and lists.
2525

docs/api/flusurv.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ See also:
2626

2727
# The API
2828

29-
The base URL is: https://delphi.cmu.edu/epidata/flusurv/
29+
The base URL is: https://api.delphi.cmu.edu/epidata/flusurv/
3030

3131
See [this documentation](README.md) for details on specifying epiweeks, dates, and lists.
3232

@@ -79,7 +79,7 @@ Notes:
7979
# Example URLs
8080

8181
### FluSurv on 2020w01 (CA)
82-
https://delphi.cmu.edu/epidata/flusurv/?locations=ca&epiweeks=202001
82+
https://api.delphi.cmu.edu/epidata/flusurv/?locations=ca&epiweeks=202001
8383

8484
```json
8585
{

docs/api/fluview.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Influenza-like illness (ILI) from U.S. Outpatient Influenza-like Illness Surveil
2525

2626
# The API
2727

28-
The base URL is: https://delphi.cmu.edu/epidata/fluview/
28+
The base URL is: https://api.delphi.cmu.edu/epidata/fluview/
2929

3030
See [this documentation](README.md) for details on specifying epiweeks, dates, and lists.
3131

@@ -80,7 +80,7 @@ Notes:
8080
# Example URLs
8181

8282
### FluView on 2015w01 (national)
83-
https://delphi.cmu.edu/epidata/fluview/?regions=nat&epiweeks=201501
83+
https://api.delphi.cmu.edu/epidata/fluview/?regions=nat&epiweeks=201501
8484

8585
```json
8686
{
@@ -111,11 +111,11 @@ https://delphi.cmu.edu/epidata/fluview/?regions=nat&epiweeks=201501
111111

112112
### FluView in HHS Regions 4 and 6 for the 2014/2015 flu season
113113

114-
https://delphi.cmu.edu/epidata/fluview/?regions=hhs4,hhs6&epiweeks=201440-201520
114+
https://api.delphi.cmu.edu/epidata/fluview/?regions=hhs4,hhs6&epiweeks=201440-201520
115115

116116
### Updates to FluView on 2014w53, reported from 2015w01 through 2015w10 (national)
117117

118-
https://delphi.cmu.edu/epidata/fluview/?regions=nat&epiweeks=201453&issues=201501-201510
118+
https://api.delphi.cmu.edu/epidata/fluview/?regions=nat&epiweeks=201453&issues=201501-201510
119119

120120

121121
# Code Samples

docs/api/fluview_clinical.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ General topics not specific to any particular endpoint are discussed in the
2020

2121
# The API
2222

23-
The base URL is: https://delphi.cmu.edu/epidata/fluview_clinical/
23+
The base URL is: https://api.delphi.cmu.edu/epidata/fluview_clinical/
2424

2525
See [this documentation](README.md) for details on specifying epiweeks, dates, and lists.
2626

@@ -66,7 +66,7 @@ If neither is specified, the current issues are used.
6666
# Example URLs
6767

6868
### FluView Clinical on 2020w01 (national)
69-
https://delphi.cmu.edu/epidata/fluview_clinical/?regions=nat&epiweeks=202001
69+
https://api.delphi.cmu.edu/epidata/fluview_clinical/?regions=nat&epiweeks=202001
7070

7171
```json
7272
{

docs/api/fluview_meta.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Returns information about the [`fluview` endpoint](fluview.md).
2020

2121
# The API
2222

23-
The base URL is: https://delphi.cmu.edu/epidata/fluview_meta/
23+
The base URL is: https://api.delphi.cmu.edu/epidata/fluview_meta/
2424

2525
See [this documentation](README.md) for details on specifying epiweeks, dates, and lists.
2626

@@ -42,7 +42,7 @@ There are no parameters for this endpoint.
4242
# Example URLs
4343

4444
### FluView Metadata
45-
https://delphi.cmu.edu/epidata/fluview_meta/
45+
https://api.delphi.cmu.edu/epidata/fluview_meta/
4646

4747
```json
4848
{

0 commit comments

Comments
 (0)