Skip to content

Commit 56eaba2

Browse files
authored
Merge pull request #123 from cmu-delphi/better-covidcast
Make COVIDcast docs more welcoming and link to mailing list
2 parents bc48d62 + e1f191d commit 56eaba2

File tree

3 files changed

+40
-11
lines changed

3 files changed

+40
-11
lines changed

docs/api/covidcast.md

Lines changed: 28 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,33 @@
22

33
This is the documentation of the API for accessing the Delphi's COVID-19
44
Surveillance Streams (`covidcast`) endpoint of
5-
[Delphi](https://delphi.cmu.edu/)'s epidemiological data.
6-
7-
General topics not specific to any particular data source are discussed in the
8-
[API overview](README.md). Such topics include:
9-
[contributing](README.md#contributing), [citing](README.md#citing), and
10-
[data licensing](README.md#data-licensing).
5+
[Delphi](https://delphi.cmu.edu/)'s epidemiological data. This API provides the
6+
data used in our public [COVIDcast map](https://covidcast.cmu.edu/), and
7+
includes other data sources and signals not currently shown on the map. The API
8+
allows users to select specific signals and download data for selected
9+
geographical areas---counties, states, metropolitan statistical areas, and other
10+
divisions.
11+
12+
This data is freely available under our [data
13+
licensing](README.md#data-licensing) terms; we encourage academic users to
14+
[cite](README.md#citing) the data if they use it in any publications. Further
15+
documentation on Delphi's APIs is available in the [API overview](README.md).
16+
17+
**For users:** Delphi operates a [mailing
18+
list](https://lists.andrew.cmu.edu/mailman/listinfo/delphi-covidcast-api) for
19+
users of the COVIDcast API. We will use the list to announce API changes,
20+
corrections to data, and new features; API users may also use the mailing list
21+
to ask general questions about its use. If you use the API, we strongly
22+
encourage you to
23+
[subscribe](https://lists.andrew.cmu.edu/mailman/listinfo/delphi-covidcast-api).
1124

1225
## The API
1326

14-
The base URL is: https://delphi.cmu.edu/epidata/api.php
27+
The COVIDcast API is based on HTTP GET queries and returns data in JSON form.
28+
The base URL is https://delphi.cmu.edu/epidata/api.php.
29+
30+
Several [API clients are available](#api-clients) for common programming
31+
languages, so you do not need to construct API calls yourself.
1532

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

@@ -217,7 +234,7 @@ https://delphi.cmu.edu/epidata/api.php?source=covidcast&data_source=fb-survey&si
217234

218235
https://delphi.cmu.edu/epidata/api.php?source=covidcast&data_source=fb-survey&signal=raw_cli&time_type=day&geo_type=county&time_values=20200406&geo_value=*
219236

220-
## Code Samples
237+
## API Clients
221238

222239
Libraries are available for
223240
[CoffeeScript](https://github.com/cmu-delphi/delphi-epidata/blob/master/src/client/delphi_epidata.coffee),
@@ -262,7 +279,9 @@ Optionally install the [package from PyPI](https://pypi.org/project/delphi-epida
262279
pip install delphi-epidata
263280
````
264281

265-
Otherwise, place `delphi_epidata.py` from this repo next to your python script.
282+
Otherwise, place
283+
[`delphi_epidata.py`](https://github.com/cmu-delphi/delphi-epidata/blob/master/src/client/delphi_epidata.py)
284+
in the same directory as your Python script.
266285

267286
````python
268287
# Import

docs/api/covidcast_changelog.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
# Delphi's COVID-19 Surveillance Streams Changelog
22

3-
When Delphi makes substantial changes to the computation of a signal, we will typically publish it under a new name rather than revising the existing signal. By contrast, the changes documented here are bug fixes, pipeline repairs, and minor enhancements.
3+
When Delphi makes substantial changes to the computation of a signal, we will
4+
typically publish it under a new name rather than revising the existing signal.
5+
By contrast, the changes documented here are bug fixes, pipeline repairs, and
6+
minor enhancements.
7+
8+
Changes are also announced via the [COVIDcast API mailing
9+
list](https://lists.andrew.cmu.edu/mailman/listinfo/delphi-covidcast-api), and
10+
we strongly recommend that anyone using the API to regularly download data
11+
should subscribe to this list. The list will only be used to announce API
12+
changes, data corrections, and other information relevant to API users.
413

514
## Sources and Signals
615
### `doctor-visits`

docs/api/covidcast_signals.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ Data from these sources is expected to be updated daily. You can use the
66
about the ranges of the different attributes for the different data sources.
77

88
The API for retrieving data from these sources is described in the
9-
[COVIDcast API endpoint documentation](covidcast.md).
9+
[COVIDcast API endpoint documentation](covidcast.md). Changes and corrections to
10+
data in this API are listed in the [API changelog](covidcast_changelog.md).
1011

1112
## Sources and Signals
1213

0 commit comments

Comments
 (0)