From 8c0ba7200f870233cae8d926e9abb8a4b8a06712 Mon Sep 17 00:00:00 2001 From: george haff Date: Mon, 15 May 2023 16:22:55 -0400 Subject: [PATCH 1/4] update code references to 'api.covidcast.cmu.edu/epidata' --- scripts/report_missing_covidcast_meta.py | 2 +- src/client/delphi_epidata.R | 2 +- src/client/delphi_epidata.js | 2 +- src/client/delphi_epidata.py | 2 +- .../npm/tests/__snapshots__/delphi_epidata.spec.js.snap | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/report_missing_covidcast_meta.py b/scripts/report_missing_covidcast_meta.py index bd1779070..f56668eb6 100644 --- a/scripts/report_missing_covidcast_meta.py +++ b/scripts/report_missing_covidcast_meta.py @@ -5,7 +5,7 @@ from pathlib import Path base_dir = Path(__file__).parent.parent -base_url = 'https://delphi.cmu.edu/epidata' +base_url = 'https://api.covidcast.cmu.edu/epidata' def is_known_missing(source: str, signal: str) -> bool: if '7dav_cumulative' in signal: diff --git a/src/client/delphi_epidata.R b/src/client/delphi_epidata.R index 9566fda50..6b72fa43f 100644 --- a/src/client/delphi_epidata.R +++ b/src/client/delphi_epidata.R @@ -13,7 +13,7 @@ library(httr) Epidata <- (function() { # API base url - BASE_URL <- 'https://delphi.cmu.edu/epidata/api.php' + BASE_URL <- 'https://api.covidcast.cmu.edu/epidata/api.php' client_version <- '0.4.11' diff --git a/src/client/delphi_epidata.js b/src/client/delphi_epidata.js index 67240f754..7cd81e222 100644 --- a/src/client/delphi_epidata.js +++ b/src/client/delphi_epidata.js @@ -21,7 +21,7 @@ factory(root, root.fetch, root.jQuery || root.$); } })(this, function (exports, fetchImpl, jQuery) { - const BASE_URL = "https://delphi.cmu.edu/epidata/"; + const BASE_URL = "https://api.covidcast.cmu.edu/epidata/"; const client_version = "0.4.11"; // Helper function to cast values and/or ranges to strings diff --git a/src/client/delphi_epidata.py b/src/client/delphi_epidata.py index 9b3deea94..308fc28ff 100644 --- a/src/client/delphi_epidata.py +++ b/src/client/delphi_epidata.py @@ -33,7 +33,7 @@ class Epidata: """An interface to DELPHI's Epidata API.""" # API base url - BASE_URL = 'https://delphi.cmu.edu/epidata/api.php' + BASE_URL = 'https://api.covidcast.cmu.edu/epidata/api.php' client_version = _version diff --git a/src/client/packaging/npm/tests/__snapshots__/delphi_epidata.spec.js.snap b/src/client/packaging/npm/tests/__snapshots__/delphi_epidata.spec.js.snap index f0a2aa9f7..76f385a3f 100644 --- a/src/client/packaging/npm/tests/__snapshots__/delphi_epidata.spec.js.snap +++ b/src/client/packaging/npm/tests/__snapshots__/delphi_epidata.spec.js.snap @@ -36,7 +36,7 @@ exports[`fluview basic async 1`] = ` [MockFunction] { "calls": Array [ Array [ - "https://delphi.cmu.edu/epidata/fluview/?regions=a&epiweeks=4", + "https://api.covidcast.cmu.edu/epidata/fluview/?regions=a&epiweeks=4", ], ], "results": Array [ @@ -52,7 +52,7 @@ exports[`fluview basic sync 1`] = ` [MockFunction] { "calls": Array [ Array [ - "https://delphi.cmu.edu/epidata/fluview/?regions=a&epiweeks=4", + "https://api.covidcast.cmu.edu/epidata/fluview/?regions=a&epiweeks=4", ], ], "results": Array [ From cb124dd7bf34137ac77c8e7dacd305835b1d0355 Mon Sep 17 00:00:00 2001 From: george haff Date: Mon, 15 May 2023 16:34:06 -0400 Subject: [PATCH 2/4] update documentation references to 'api.covidcast.cmu.edu/epidata' --- docs/api/README.md | 6 +++--- docs/api/afhsb.md | 2 +- docs/api/cdc.md | 2 +- docs/api/covid_hosp.md | 4 ++-- docs/api/covid_hosp_facility.md | 4 ++-- docs/api/covid_hosp_facility_lookup.md | 4 ++-- docs/api/delphi.md | 4 ++-- docs/api/dengue_nowcast.md | 2 +- docs/api/dengue_sensors.md | 2 +- docs/api/ecdc_ili.md | 2 +- docs/api/flusurv.md | 4 ++-- docs/api/fluview.md | 8 ++++---- docs/api/fluview_clinical.md | 4 ++-- docs/api/fluview_meta.md | 4 ++-- docs/api/gft.md | 4 ++-- docs/api/ght.md | 2 +- docs/api/kcdc_ili.md | 2 +- docs/api/meta.md | 4 ++-- docs/api/meta_afhsb.md | 2 +- docs/api/meta_norostat.md | 2 +- docs/api/nidss_dengue.md | 4 ++-- docs/api/nidss_flu.md | 4 ++-- docs/api/norostat.md | 2 +- docs/api/nowcast.md | 4 ++-- docs/api/paho_dengue.md | 2 +- docs/api/quidel.md | 2 +- docs/api/sensors.md | 4 ++-- docs/api/twitter.md | 4 ++-- docs/api/wiki.md | 6 +++--- docs/new_endpoint_tutorial.md | 2 +- 30 files changed, 51 insertions(+), 51 deletions(-) diff --git a/docs/api/README.md b/docs/api/README.md index f2be98f34..26d4547fa 100644 --- a/docs/api/README.md +++ b/docs/api/README.md @@ -70,7 +70,7 @@ Please note that our `endpoint` parameters were previously referenced as `source # The API -The base URL is: https://delphi.cmu.edu/epidata/ +The base URL is: https://api.covidcast.cmu.edu/epidata/ ## Specifying Epiweeks, Dates, and Lists @@ -154,7 +154,7 @@ The parameters available for each source are documented in each linked source-sp # Example URLs ### FluView on 2015w01 (national) -https://delphi.cmu.edu/epidata/fluview/?regions=nat&epiweeks=201501 +https://api.covidcast.cmu.edu/epidata/fluview/?regions=nat&epiweeks=201501 ```json { @@ -184,7 +184,7 @@ https://delphi.cmu.edu/epidata/fluview/?regions=nat&epiweeks=201501 ``` ### Wikipedia Access article "influenza" on 2020w01 -https://delphi.cmu.edu/epidata/wiki/?language=en&articles=influenza&epiweeks=202001 +https://api.covidcast.cmu.edu/epidata/wiki/?language=en&articles=influenza&epiweeks=202001 ```json { diff --git a/docs/api/afhsb.md b/docs/api/afhsb.md index 0c7056954..c1fc8f9c8 100644 --- a/docs/api/afhsb.md +++ b/docs/api/afhsb.md @@ -19,7 +19,7 @@ General topics not specific to any particular endpoint are discussed in the # The API -The base URL is: https://delphi.cmu.edu/epidata/afhsb/ +The base URL is: https://api.covidcast.cmu.edu/epidata/afhsb/ See [this documentation](README.md) for details on specifying epiweeks, dates, and lists. diff --git a/docs/api/cdc.md b/docs/api/cdc.md index b71cab244..8cdd9f13d 100644 --- a/docs/api/cdc.md +++ b/docs/api/cdc.md @@ -19,7 +19,7 @@ General topics not specific to any particular endpoint are discussed in the # The API -The base URL is: https://delphi.cmu.edu/epidata/cdc/ +The base URL is: https://api.covidcast.cmu.edu/epidata/cdc/ See [this documentation](README.md) for details on specifying epiweeks, dates, and lists. diff --git a/docs/api/covid_hosp.md b/docs/api/covid_hosp.md index 0509cd283..bb30bfe3f 100644 --- a/docs/api/covid_hosp.md +++ b/docs/api/covid_hosp.md @@ -46,7 +46,7 @@ dataset was published by HHS. # The API -The base URL is: https://delphi.cmu.edu/epidata/covid_hosp_state_timeseries/ +The base URL is: https://api.covidcast.cmu.edu/epidata/covid_hosp_state_timeseries/ See [this documentation](README.md) for details on specifying locations and dates. @@ -82,7 +82,7 @@ If `issues` is not specified, then the most recent issue is used by default. # Example URLs ### MA on 2020-05-10 (per most recent issue) -https://delphi.cmu.edu/epidata/covid_hosp_state_timeseries/?states=MA&dates=20200510 +https://api.covidcast.cmu.edu/epidata/covid_hosp_state_timeseries/?states=MA&dates=20200510 ```json { diff --git a/docs/api/covid_hosp_facility.md b/docs/api/covid_hosp_facility.md index bad1e1690..333d002df 100644 --- a/docs/api/covid_hosp_facility.md +++ b/docs/api/covid_hosp_facility.md @@ -37,7 +37,7 @@ HHS. New versions are expected to be published roughly weekly. # The API -The base URL is: https://delphi.cmu.edu/epidata/covid_hosp_facility/ +The base URL is: https://api.covidcast.cmu.edu/epidata/covid_hosp_facility/ See [this documentation](README.md) for details on specifying locations and dates. @@ -87,7 +87,7 @@ has been renamed here for clarity. # Example URLs ### Moses Taylor Hospital (Scranton, PA) on the first collection week of December 2020 (per most recent issue) -https://delphi.cmu.edu/epidata/covid_hosp_facility/?hospital_pks=390119&collection_weeks=20201201-20201207 +https://api.covidcast.cmu.edu/epidata/covid_hosp_facility/?hospital_pks=390119&collection_weeks=20201201-20201207 ```json { diff --git a/docs/api/covid_hosp_facility_lookup.md b/docs/api/covid_hosp_facility_lookup.md index 3a40dfd55..0c2acef0c 100644 --- a/docs/api/covid_hosp_facility_lookup.md +++ b/docs/api/covid_hosp_facility_lookup.md @@ -30,7 +30,7 @@ This data source provides metadata about healthcare facilities in the US. # The API -The base URL is: https://delphi.cmu.edu/epidata/covid_hosp_facility_lookup/ +The base URL is: https://api.covidcast.cmu.edu/epidata/covid_hosp_facility_lookup/ See [this documentation](README.md) for details on specifying locations and dates. @@ -72,7 +72,7 @@ Use the `hospital_pk` value when querying # Example URLs ### Lookup facilities in the city of Southlake (TX) -https://delphi.cmu.edu/epidata/covid_hosp_facility_lookup/?city=southlake +https://api.covidcast.cmu.edu/epidata/covid_hosp_facility_lookup/?city=southlake ```json { diff --git a/docs/api/delphi.md b/docs/api/delphi.md index 8b12ba8d3..3eaa2ea82 100644 --- a/docs/api/delphi.md +++ b/docs/api/delphi.md @@ -19,7 +19,7 @@ General topics not specific to any particular endpoint are discussed in the # The API -The base URL is: https://delphi.cmu.edu/epidata/delphi/ +The base URL is: https://api.covidcast.cmu.edu/epidata/delphi/ See [this documentation](README.md) for details on specifying epiweeks, dates, and lists. @@ -58,7 +58,7 @@ See [this documentation](README.md) for details on specifying epiweeks, dates, a # Example URLs ### Delphi on 2020w01 (EC) -https://delphi.cmu.edu/epidata/delphi/?system=ec&epiweek=202001 +https://api.covidcast.cmu.edu/epidata/delphi/?system=ec&epiweek=202001 ```json { diff --git a/docs/api/dengue_nowcast.md b/docs/api/dengue_nowcast.md index 693356ddb..60e07a5d0 100644 --- a/docs/api/dengue_nowcast.md +++ b/docs/api/dengue_nowcast.md @@ -20,7 +20,7 @@ General topics not specific to any particular endpoint are discussed in the # The API -The base URL is: https://delphi.cmu.edu/epidata/dengue_nowcast/ +The base URL is: https://api.covidcast.cmu.edu/epidata/dengue_nowcast/ See [this documentation](README.md) for details on specifying epiweeks, dates, and lists. diff --git a/docs/api/dengue_sensors.md b/docs/api/dengue_sensors.md index 15d60c1e3..65fa2d6f4 100644 --- a/docs/api/dengue_sensors.md +++ b/docs/api/dengue_sensors.md @@ -20,7 +20,7 @@ General topics not specific to any particular endpoint are discussed in the # The API -The base URL is: https://delphi.cmu.edu/epidata/dengue_sensors/ +The base URL is: https://api.covidcast.cmu.edu/epidata/dengue_sensors/ See [this documentation](README.md) for details on specifying epiweeks, dates, and lists. diff --git a/docs/api/ecdc_ili.md b/docs/api/ecdc_ili.md index ac704a7fe..99a706789 100644 --- a/docs/api/ecdc_ili.md +++ b/docs/api/ecdc_ili.md @@ -19,7 +19,7 @@ ECDC ILI data from ECDC website. ... # The API -The base URL is: https://delphi.cmu.edu/epidata/ecdc_ili/ +The base URL is: https://api.covidcast.cmu.edu/epidata/ecdc_ili/ See [this documentation](README.md) for details on specifying epiweeks, dates, and lists. diff --git a/docs/api/flusurv.md b/docs/api/flusurv.md index 32c097610..47e0c7244 100644 --- a/docs/api/flusurv.md +++ b/docs/api/flusurv.md @@ -26,7 +26,7 @@ See also: # The API -The base URL is: https://delphi.cmu.edu/epidata/flusurv/ +The base URL is: https://api.covidcast.cmu.edu/epidata/flusurv/ See [this documentation](README.md) for details on specifying epiweeks, dates, and lists. @@ -79,7 +79,7 @@ Notes: # Example URLs ### FluSurv on 2020w01 (CA) -https://delphi.cmu.edu/epidata/flusurv/?locations=ca&epiweeks=202001 +https://api.covidcast.cmu.edu/epidata/flusurv/?locations=ca&epiweeks=202001 ```json { diff --git a/docs/api/fluview.md b/docs/api/fluview.md index 79ba9c276..c5054117e 100644 --- a/docs/api/fluview.md +++ b/docs/api/fluview.md @@ -25,7 +25,7 @@ Influenza-like illness (ILI) from U.S. Outpatient Influenza-like Illness Surveil # The API -The base URL is: https://delphi.cmu.edu/epidata/fluview/ +The base URL is: https://api.covidcast.cmu.edu/epidata/fluview/ See [this documentation](README.md) for details on specifying epiweeks, dates, and lists. @@ -80,7 +80,7 @@ Notes: # Example URLs ### FluView on 2015w01 (national) -https://delphi.cmu.edu/epidata/fluview/?regions=nat&epiweeks=201501 +https://api.covidcast.cmu.edu/epidata/fluview/?regions=nat&epiweeks=201501 ```json { @@ -111,11 +111,11 @@ https://delphi.cmu.edu/epidata/fluview/?regions=nat&epiweeks=201501 ### FluView in HHS Regions 4 and 6 for the 2014/2015 flu season -https://delphi.cmu.edu/epidata/fluview/?regions=hhs4,hhs6&epiweeks=201440-201520 +https://api.covidcast.cmu.edu/epidata/fluview/?regions=hhs4,hhs6&epiweeks=201440-201520 ### Updates to FluView on 2014w53, reported from 2015w01 through 2015w10 (national) -https://delphi.cmu.edu/epidata/fluview/?regions=nat&epiweeks=201453&issues=201501-201510 +https://api.covidcast.cmu.edu/epidata/fluview/?regions=nat&epiweeks=201453&issues=201501-201510 # Code Samples diff --git a/docs/api/fluview_clinical.md b/docs/api/fluview_clinical.md index 259a07c02..c4473782c 100644 --- a/docs/api/fluview_clinical.md +++ b/docs/api/fluview_clinical.md @@ -20,7 +20,7 @@ General topics not specific to any particular endpoint are discussed in the # The API -The base URL is: https://delphi.cmu.edu/epidata/fluview_clinical/ +The base URL is: https://api.covidcast.cmu.edu/epidata/fluview_clinical/ See [this documentation](README.md) for details on specifying epiweeks, dates, and lists. @@ -66,7 +66,7 @@ If neither is specified, the current issues are used. # Example URLs ### FluView Clinical on 2020w01 (national) -https://delphi.cmu.edu/epidata/fluview_clinical/?regions=nat&epiweeks=202001 +https://api.covidcast.cmu.edu/epidata/fluview_clinical/?regions=nat&epiweeks=202001 ```json { diff --git a/docs/api/fluview_meta.md b/docs/api/fluview_meta.md index 090865154..0ad05eebd 100644 --- a/docs/api/fluview_meta.md +++ b/docs/api/fluview_meta.md @@ -20,7 +20,7 @@ Returns information about the [`fluview` endpoint](fluview.md). # The API -The base URL is: https://delphi.cmu.edu/epidata/fluview_meta/ +The base URL is: https://api.covidcast.cmu.edu/epidata/fluview_meta/ See [this documentation](README.md) for details on specifying epiweeks, dates, and lists. @@ -42,7 +42,7 @@ There are no parameters for this endpoint. # Example URLs ### FluView Metadata -https://delphi.cmu.edu/epidata/fluview_meta/ +https://api.covidcast.cmu.edu/epidata/fluview_meta/ ```json { diff --git a/docs/api/gft.md b/docs/api/gft.md index c06574e70..bd7ac3db3 100644 --- a/docs/api/gft.md +++ b/docs/api/gft.md @@ -23,7 +23,7 @@ Estimate of influenza activity based on volume of certain search queries. Google # The API -The base URL is: https://delphi.cmu.edu/epidata/gft/ +The base URL is: https://api.covidcast.cmu.edu/epidata/gft/ See [this documentation](README.md) for details on specifying epiweeks, dates, and lists. @@ -50,7 +50,7 @@ See [this documentation](README.md) for details on specifying epiweeks, dates, a # Example URLs ### Google Flu Trends on 2015w01 (national) -https://delphi.cmu.edu/epidata/gft/?locations=nat&epiweeks=201501 +https://api.covidcast.cmu.edu/epidata/gft/?locations=nat&epiweeks=201501 ```json { diff --git a/docs/api/ght.md b/docs/api/ght.md index ee5d2be4c..df695fede 100644 --- a/docs/api/ght.md +++ b/docs/api/ght.md @@ -19,7 +19,7 @@ Estimate of influenza activity based on volume of certain search queries. ... # The API -The base URL is: https://delphi.cmu.edu/epidata/kcdc_ili/ +The base URL is: https://api.covidcast.cmu.edu/epidata/kcdc_ili/ See [this documentation](README.md) for details on specifying epiweeks, dates, and lists. diff --git a/docs/api/meta.md b/docs/api/meta.md index 1f4822d17..fdb112d11 100644 --- a/docs/api/meta.md +++ b/docs/api/meta.md @@ -19,7 +19,7 @@ General topics not specific to any particular endpoint are discussed in the # The API -The base URL is: https://delphi.cmu.edu/epidata/meta/ +The base URL is: https://api.covidcast.cmu.edu/epidata/meta/ See [this documentation](README.md) for details on specifying epiweeks, dates, and lists. @@ -38,7 +38,7 @@ None. # Example URLs -https://delphi.cmu.edu/epidata/meta/ +https://api.covidcast.cmu.edu/epidata/meta/ ```json { diff --git a/docs/api/meta_afhsb.md b/docs/api/meta_afhsb.md index 10c7ac478..2b18c6f35 100644 --- a/docs/api/meta_afhsb.md +++ b/docs/api/meta_afhsb.md @@ -19,7 +19,7 @@ General topics not specific to any particular endpoint are discussed in the # The API -The base URL is: https://delphi.cmu.edu/epidata/meta_afhsb/ +The base URL is: https://api.covidcast.cmu.edu/epidata/meta_afhsb/ See [this documentation](README.md) for details on specifying epiweeks, dates, and lists. diff --git a/docs/api/meta_norostat.md b/docs/api/meta_norostat.md index 57fc14ebe..eba5d77ae 100644 --- a/docs/api/meta_norostat.md +++ b/docs/api/meta_norostat.md @@ -19,7 +19,7 @@ General topics not specific to any particular endpoint are discussed in the # The API -The base URL is: https://delphi.cmu.edu/epidata/meta_norostat/ +The base URL is: https://api.covidcast.cmu.edu/epidata/meta_norostat/ See [this documentation](README.md) for details on specifying epiweeks, dates, and lists. diff --git a/docs/api/nidss_dengue.md b/docs/api/nidss_dengue.md index 40d087d6a..3aa203ad6 100644 --- a/docs/api/nidss_dengue.md +++ b/docs/api/nidss_dengue.md @@ -23,7 +23,7 @@ Counts of confirmed dengue cases from Taiwan's NIDSS. # The API -The base URL is: https://delphi.cmu.edu/epidata/nidss_dengue/ +The base URL is: https://api.covidcast.cmu.edu/epidata/nidss_dengue/ See [this documentation](README.md) for details on specifying epiweeks, dates, and lists. @@ -50,7 +50,7 @@ See [this documentation](README.md) for details on specifying epiweeks, dates, a # Example URLs ### NIDSS Dengue on 2015w01 (nationwide) -https://delphi.cmu.edu/epidata/nidss_dengue/?locations=nationwide&epiweeks=201501 +https://api.covidcast.cmu.edu/epidata/nidss_dengue/?locations=nationwide&epiweeks=201501 ```json { diff --git a/docs/api/nidss_flu.md b/docs/api/nidss_flu.md index 08699ea9a..37d148c63 100644 --- a/docs/api/nidss_flu.md +++ b/docs/api/nidss_flu.md @@ -25,7 +25,7 @@ Outpatient ILI from Taiwan's National Infectious Disease Statistics System (NIDS # The API -The base URL is: https://delphi.cmu.edu/epidata/nidss_flu/ +The base URL is: https://api.covidcast.cmu.edu/epidata/nidss_flu/ See [this documentation](README.md) for details on specifying epiweeks, dates, and lists. @@ -67,7 +67,7 @@ If neither is specified, the current issues are used. # Example URLs ### NIDSS Flu on 2015w01 (nationwide) -https://delphi.cmu.edu/epidata/nidss_flu/?regions=nationwide&epiweeks=201501 +https://api.covidcast.cmu.edu/epidata/nidss_flu/?regions=nationwide&epiweeks=201501 ```json { diff --git a/docs/api/norostat.md b/docs/api/norostat.md index 4019020b7..d6d33af86 100644 --- a/docs/api/norostat.md +++ b/docs/api/norostat.md @@ -19,7 +19,7 @@ General topics not specific to any particular endpoint are discussed in the # The API -The base URL is: https://delphi.cmu.edu/epidata/norostat/ +The base URL is: https://api.covidcast.cmu.edu/epidata/norostat/ See [this documentation](README.md) for details on specifying epiweeks, dates, and lists. diff --git a/docs/api/nowcast.md b/docs/api/nowcast.md index dfdecbc54..5dffbe978 100644 --- a/docs/api/nowcast.md +++ b/docs/api/nowcast.md @@ -25,7 +25,7 @@ A nowcast of U.S. national, regional, and state-level (weighted) %ILI, available # The API -The base URL is: https://delphi.cmu.edu/epidata/nowcast/ +The base URL is: https://api.covidcast.cmu.edu/epidata/nowcast/ See [this documentation](README.md) for details on specifying epiweeks, dates, and lists. @@ -53,7 +53,7 @@ See [this documentation](README.md) for details on specifying epiweeks, dates, a # Example URLs ### ILI Nearby on 2020w01 (national) -https://delphi.cmu.edu/epidata/nowcast/?locations=nat&epiweeks=202001 +https://api.covidcast.cmu.edu/epidata/nowcast/?locations=nat&epiweeks=202001 ```json { diff --git a/docs/api/paho_dengue.md b/docs/api/paho_dengue.md index 3837cb43c..a1092bc8f 100644 --- a/docs/api/paho_dengue.md +++ b/docs/api/paho_dengue.md @@ -19,7 +19,7 @@ General topics not specific to any particular endpoint are discussed in the # The API -The base URL is: https://delphi.cmu.edu/epidata/paho_dengue/ +The base URL is: https://api.covidcast.cmu.edu/epidata/paho_dengue/ See [this documentation](README.md) for details on specifying epiweeks, dates, and lists. diff --git a/docs/api/quidel.md b/docs/api/quidel.md index 9139ca59c..462d9c0ce 100644 --- a/docs/api/quidel.md +++ b/docs/api/quidel.md @@ -21,7 +21,7 @@ Data provided by Quidel Corp., which contains flu lab test results. # The API -The base URL is: https://delphi.cmu.edu/epidata/quidel/ +The base URL is: https://api.covidcast.cmu.edu/epidata/quidel/ See [this documentation](README.md) for details on specifying epiweeks, dates, and lists. diff --git a/docs/api/sensors.md b/docs/api/sensors.md index 5175326e0..875941b7e 100644 --- a/docs/api/sensors.md +++ b/docs/api/sensors.md @@ -29,7 +29,7 @@ the COVID-19 pandemic. # The API -The base URL is: https://delphi.cmu.edu/epidata/sensors/ +The base URL is: https://api.covidcast.cmu.edu/epidata/sensors/ See [this documentation](README.md) for details on specifying epiweeks, dates, and lists. @@ -70,7 +70,7 @@ Notes: # Example URLs ### Delphi's Digital Surveillance SAR3 Sensor on 2020w01 (national) -https://delphi.cmu.edu/epidata/sensors/?names=sar3&locations=nat&epiweeks=202001 +https://api.covidcast.cmu.edu/epidata/sensors/?names=sar3&locations=nat&epiweeks=202001 ```json { diff --git a/docs/api/twitter.md b/docs/api/twitter.md index 9c99b52f8..4e7ad4dd6 100644 --- a/docs/api/twitter.md +++ b/docs/api/twitter.md @@ -23,7 +23,7 @@ Estimate of influenza activity based on analysis of language used in tweets. # The API -The base URL is: https://delphi.cmu.edu/epidata/twitter/ +The base URL is: https://api.covidcast.cmu.edu/epidata/twitter/ See [this documentation](README.md) for details on specifying epiweeks, dates, and lists. @@ -53,7 +53,7 @@ Note: # Example URLs ### Twitter on 2015w01 (national) -https://delphi.cmu.edu/epidata/twitter/?auth=...&locations=nat&epiweeks=201501 +https://api.covidcast.cmu.edu/epidata/twitter/?auth=...&locations=nat&epiweeks=201501 ```json { diff --git a/docs/api/wiki.md b/docs/api/wiki.md index 5566db9d8..23baa8428 100644 --- a/docs/api/wiki.md +++ b/docs/api/wiki.md @@ -24,7 +24,7 @@ Number of page visits for selected English, Influenza-related wikipedia articles # The API -The base URL is: https://delphi.cmu.edu/epidata/wiki/ +The base URL is: https://api.covidcast.cmu.edu/epidata/wiki/ See [this documentation](README.md) for details on specifying epiweeks, dates, and lists. @@ -66,7 +66,7 @@ Note: # Example URLs ### Wikipedia Access article "influenza" on 2020w01 -https://delphi.cmu.edu/epidata/wiki/?language=en&articles=influenza&epiweeks=202001 +https://api.covidcast.cmu.edu/epidata/wiki/?language=en&articles=influenza&epiweeks=202001 ```json { @@ -86,7 +86,7 @@ https://delphi.cmu.edu/epidata/wiki/?language=en&articles=influenza&epiweeks=202 ``` ### Wikipedia Access article "influenza" on date 2020-01-01 -https://delphi.cmu.edu/epidata/wiki/?language=en&articles=influenza&dates=20200101 +https://api.covidcast.cmu.edu/epidata/wiki/?language=en&articles=influenza&dates=20200101 ```json { diff --git a/docs/new_endpoint_tutorial.md b/docs/new_endpoint_tutorial.md index 436b89908..06acae60a 100644 --- a/docs/new_endpoint_tutorial.md +++ b/docs/new_endpoint_tutorial.md @@ -325,7 +325,7 @@ actual created in this tutorial. Once it's approved, merge the PR, and contact an admin to schedule a release. Once released, the API will begin serving your new endpoint. Go ahead and give it a -try: https://delphi.cmu.edu/epidata/fluview_meta/ +try: https://api.covidcast.cmu.edu/epidata/fluview_meta/ ``` { From 00e8127a5188aaf156779115aad36e3867567ea2 Mon Sep 17 00:00:00 2001 From: george haff Date: Wed, 17 May 2023 14:57:41 -0400 Subject: [PATCH 3/4] updated to new api hostname -- DO NOT MERGE UNTIL CERT IS IN PLACE --- docs/api/README.md | 6 +++--- docs/api/afhsb.md | 2 +- docs/api/cdc.md | 2 +- docs/api/covid_hosp.md | 4 ++-- docs/api/covid_hosp_facility.md | 4 ++-- docs/api/covid_hosp_facility_lookup.md | 4 ++-- docs/api/covidcast.md | 6 +++--- docs/api/covidcast_meta.md | 4 ++-- docs/api/delphi.md | 4 ++-- docs/api/dengue_nowcast.md | 2 +- docs/api/dengue_sensors.md | 2 +- docs/api/ecdc_ili.md | 2 +- docs/api/flusurv.md | 4 ++-- docs/api/fluview.md | 8 ++++---- docs/api/fluview_clinical.md | 4 ++-- docs/api/fluview_meta.md | 4 ++-- docs/api/gft.md | 4 ++-- docs/api/ght.md | 2 +- docs/api/kcdc_ili.md | 2 +- docs/api/meta.md | 4 ++-- docs/api/meta_afhsb.md | 2 +- docs/api/meta_norostat.md | 2 +- docs/api/nidss_dengue.md | 4 ++-- docs/api/nidss_flu.md | 4 ++-- docs/api/norostat.md | 2 +- docs/api/nowcast.md | 4 ++-- docs/api/paho_dengue.md | 2 +- docs/api/quidel.md | 2 +- docs/api/sensors.md | 4 ++-- docs/api/twitter.md | 4 ++-- docs/api/wiki.md | 6 +++--- docs/new_endpoint_tutorial.md | 2 +- scripts/report_missing_covidcast_meta.py | 2 +- src/client/delphi_epidata.R | 2 +- src/client/delphi_epidata.js | 2 +- src/client/delphi_epidata.py | 2 +- .../npm/tests/__snapshots__/delphi_epidata.spec.js.snap | 4 ++-- 37 files changed, 62 insertions(+), 62 deletions(-) diff --git a/docs/api/README.md b/docs/api/README.md index 26d4547fa..f3010de67 100644 --- a/docs/api/README.md +++ b/docs/api/README.md @@ -70,7 +70,7 @@ Please note that our `endpoint` parameters were previously referenced as `source # The API -The base URL is: https://api.covidcast.cmu.edu/epidata/ +The base URL is: https://api.delphi.cmu.edu/epidata/ ## Specifying Epiweeks, Dates, and Lists @@ -154,7 +154,7 @@ The parameters available for each source are documented in each linked source-sp # Example URLs ### FluView on 2015w01 (national) -https://api.covidcast.cmu.edu/epidata/fluview/?regions=nat&epiweeks=201501 +https://api.delphi.cmu.edu/epidata/fluview/?regions=nat&epiweeks=201501 ```json { @@ -184,7 +184,7 @@ https://api.covidcast.cmu.edu/epidata/fluview/?regions=nat&epiweeks=201501 ``` ### Wikipedia Access article "influenza" on 2020w01 -https://api.covidcast.cmu.edu/epidata/wiki/?language=en&articles=influenza&epiweeks=202001 +https://api.delphi.cmu.edu/epidata/wiki/?language=en&articles=influenza&epiweeks=202001 ```json { diff --git a/docs/api/afhsb.md b/docs/api/afhsb.md index c1fc8f9c8..d53ad643e 100644 --- a/docs/api/afhsb.md +++ b/docs/api/afhsb.md @@ -19,7 +19,7 @@ General topics not specific to any particular endpoint are discussed in the # The API -The base URL is: https://api.covidcast.cmu.edu/epidata/afhsb/ +The base URL is: https://api.delphi.cmu.edu/epidata/afhsb/ See [this documentation](README.md) for details on specifying epiweeks, dates, and lists. diff --git a/docs/api/cdc.md b/docs/api/cdc.md index 8cdd9f13d..25295e512 100644 --- a/docs/api/cdc.md +++ b/docs/api/cdc.md @@ -19,7 +19,7 @@ General topics not specific to any particular endpoint are discussed in the # The API -The base URL is: https://api.covidcast.cmu.edu/epidata/cdc/ +The base URL is: https://api.delphi.cmu.edu/epidata/cdc/ See [this documentation](README.md) for details on specifying epiweeks, dates, and lists. diff --git a/docs/api/covid_hosp.md b/docs/api/covid_hosp.md index bb30bfe3f..d61c6eebf 100644 --- a/docs/api/covid_hosp.md +++ b/docs/api/covid_hosp.md @@ -46,7 +46,7 @@ dataset was published by HHS. # The API -The base URL is: https://api.covidcast.cmu.edu/epidata/covid_hosp_state_timeseries/ +The base URL is: https://api.delphi.cmu.edu/epidata/covid_hosp_state_timeseries/ See [this documentation](README.md) for details on specifying locations and dates. @@ -82,7 +82,7 @@ If `issues` is not specified, then the most recent issue is used by default. # Example URLs ### MA on 2020-05-10 (per most recent issue) -https://api.covidcast.cmu.edu/epidata/covid_hosp_state_timeseries/?states=MA&dates=20200510 +https://api.delphi.cmu.edu/epidata/covid_hosp_state_timeseries/?states=MA&dates=20200510 ```json { diff --git a/docs/api/covid_hosp_facility.md b/docs/api/covid_hosp_facility.md index 333d002df..fe24bb0e6 100644 --- a/docs/api/covid_hosp_facility.md +++ b/docs/api/covid_hosp_facility.md @@ -37,7 +37,7 @@ HHS. New versions are expected to be published roughly weekly. # The API -The base URL is: https://api.covidcast.cmu.edu/epidata/covid_hosp_facility/ +The base URL is: https://api.delphi.cmu.edu/epidata/covid_hosp_facility/ See [this documentation](README.md) for details on specifying locations and dates. @@ -87,7 +87,7 @@ has been renamed here for clarity. # Example URLs ### Moses Taylor Hospital (Scranton, PA) on the first collection week of December 2020 (per most recent issue) -https://api.covidcast.cmu.edu/epidata/covid_hosp_facility/?hospital_pks=390119&collection_weeks=20201201-20201207 +https://api.delphi.cmu.edu/epidata/covid_hosp_facility/?hospital_pks=390119&collection_weeks=20201201-20201207 ```json { diff --git a/docs/api/covid_hosp_facility_lookup.md b/docs/api/covid_hosp_facility_lookup.md index 0c2acef0c..25e97c956 100644 --- a/docs/api/covid_hosp_facility_lookup.md +++ b/docs/api/covid_hosp_facility_lookup.md @@ -30,7 +30,7 @@ This data source provides metadata about healthcare facilities in the US. # The API -The base URL is: https://api.covidcast.cmu.edu/epidata/covid_hosp_facility_lookup/ +The base URL is: https://api.delphi.cmu.edu/epidata/covid_hosp_facility_lookup/ See [this documentation](README.md) for details on specifying locations and dates. @@ -72,7 +72,7 @@ Use the `hospital_pk` value when querying # Example URLs ### Lookup facilities in the city of Southlake (TX) -https://api.covidcast.cmu.edu/epidata/covid_hosp_facility_lookup/?city=southlake +https://api.delphi.cmu.edu/epidata/covid_hosp_facility_lookup/?city=southlake ```json { diff --git a/docs/api/covidcast.md b/docs/api/covidcast.md index ddfce9c06..4200773cf 100644 --- a/docs/api/covidcast.md +++ b/docs/api/covidcast.md @@ -92,7 +92,7 @@ sources and signals. ## Constructing API Queries The COVIDcast API is based on HTTP GET queries and returns data in JSON form. -The base URL is `https://api.covidcast.cmu.edu/epidata/covidcast/`. +The base URL is `https://api.delphi.cmu.edu/epidata/covidcast/`. See [this documentation](README.md) for details on specifying epiweeks, dates, and lists. @@ -207,7 +207,7 @@ The `fields` parameter can be used to limit which fields are included in each re ### Facebook Survey CLI on 2020-04-06 to 2010-04-10 (county 06001) -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 +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 ```json { @@ -229,7 +229,7 @@ https://api.covidcast.cmu.edu/epidata/covidcast/?data_source=fb-survey&signal=sm ### Facebook Survey CLI on 2020-04-06 (all counties) -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=* +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=* ```json { diff --git a/docs/api/covidcast_meta.md b/docs/api/covidcast_meta.md index e924f78fe..08c3990c8 100644 --- a/docs/api/covidcast_meta.md +++ b/docs/api/covidcast_meta.md @@ -13,7 +13,7 @@ geographic levels at which they are reported. ## The API -The base URL is: https://api.covidcast.cmu.edu/epidata/covidcast_meta/ +The base URL is: https://api.delphi.cmu.edu/epidata/covidcast_meta/ See [this documentation](README.md) for details on specifying epiweeks, dates, and lists. @@ -45,7 +45,7 @@ None required. ## Example URLs -https://api.covidcast.cmu.edu/epidata/covidcast_meta/ +https://api.delphi.cmu.edu/epidata/covidcast_meta/ ```json { diff --git a/docs/api/delphi.md b/docs/api/delphi.md index 3eaa2ea82..1cc645b0a 100644 --- a/docs/api/delphi.md +++ b/docs/api/delphi.md @@ -19,7 +19,7 @@ General topics not specific to any particular endpoint are discussed in the # The API -The base URL is: https://api.covidcast.cmu.edu/epidata/delphi/ +The base URL is: https://api.delphi.cmu.edu/epidata/delphi/ See [this documentation](README.md) for details on specifying epiweeks, dates, and lists. @@ -58,7 +58,7 @@ See [this documentation](README.md) for details on specifying epiweeks, dates, a # Example URLs ### Delphi on 2020w01 (EC) -https://api.covidcast.cmu.edu/epidata/delphi/?system=ec&epiweek=202001 +https://api.delphi.cmu.edu/epidata/delphi/?system=ec&epiweek=202001 ```json { diff --git a/docs/api/dengue_nowcast.md b/docs/api/dengue_nowcast.md index 60e07a5d0..abaf15c08 100644 --- a/docs/api/dengue_nowcast.md +++ b/docs/api/dengue_nowcast.md @@ -20,7 +20,7 @@ General topics not specific to any particular endpoint are discussed in the # The API -The base URL is: https://api.covidcast.cmu.edu/epidata/dengue_nowcast/ +The base URL is: https://api.delphi.cmu.edu/epidata/dengue_nowcast/ See [this documentation](README.md) for details on specifying epiweeks, dates, and lists. diff --git a/docs/api/dengue_sensors.md b/docs/api/dengue_sensors.md index 65fa2d6f4..470861bbf 100644 --- a/docs/api/dengue_sensors.md +++ b/docs/api/dengue_sensors.md @@ -20,7 +20,7 @@ General topics not specific to any particular endpoint are discussed in the # The API -The base URL is: https://api.covidcast.cmu.edu/epidata/dengue_sensors/ +The base URL is: https://api.delphi.cmu.edu/epidata/dengue_sensors/ See [this documentation](README.md) for details on specifying epiweeks, dates, and lists. diff --git a/docs/api/ecdc_ili.md b/docs/api/ecdc_ili.md index 99a706789..399f7f015 100644 --- a/docs/api/ecdc_ili.md +++ b/docs/api/ecdc_ili.md @@ -19,7 +19,7 @@ ECDC ILI data from ECDC website. ... # The API -The base URL is: https://api.covidcast.cmu.edu/epidata/ecdc_ili/ +The base URL is: https://api.delphi.cmu.edu/epidata/ecdc_ili/ See [this documentation](README.md) for details on specifying epiweeks, dates, and lists. diff --git a/docs/api/flusurv.md b/docs/api/flusurv.md index 47e0c7244..b33f5c22d 100644 --- a/docs/api/flusurv.md +++ b/docs/api/flusurv.md @@ -26,7 +26,7 @@ See also: # The API -The base URL is: https://api.covidcast.cmu.edu/epidata/flusurv/ +The base URL is: https://api.delphi.cmu.edu/epidata/flusurv/ See [this documentation](README.md) for details on specifying epiweeks, dates, and lists. @@ -79,7 +79,7 @@ Notes: # Example URLs ### FluSurv on 2020w01 (CA) -https://api.covidcast.cmu.edu/epidata/flusurv/?locations=ca&epiweeks=202001 +https://api.delphi.cmu.edu/epidata/flusurv/?locations=ca&epiweeks=202001 ```json { diff --git a/docs/api/fluview.md b/docs/api/fluview.md index c5054117e..be8d6e825 100644 --- a/docs/api/fluview.md +++ b/docs/api/fluview.md @@ -25,7 +25,7 @@ Influenza-like illness (ILI) from U.S. Outpatient Influenza-like Illness Surveil # The API -The base URL is: https://api.covidcast.cmu.edu/epidata/fluview/ +The base URL is: https://api.delphi.cmu.edu/epidata/fluview/ See [this documentation](README.md) for details on specifying epiweeks, dates, and lists. @@ -80,7 +80,7 @@ Notes: # Example URLs ### FluView on 2015w01 (national) -https://api.covidcast.cmu.edu/epidata/fluview/?regions=nat&epiweeks=201501 +https://api.delphi.cmu.edu/epidata/fluview/?regions=nat&epiweeks=201501 ```json { @@ -111,11 +111,11 @@ https://api.covidcast.cmu.edu/epidata/fluview/?regions=nat&epiweeks=201501 ### FluView in HHS Regions 4 and 6 for the 2014/2015 flu season -https://api.covidcast.cmu.edu/epidata/fluview/?regions=hhs4,hhs6&epiweeks=201440-201520 +https://api.delphi.cmu.edu/epidata/fluview/?regions=hhs4,hhs6&epiweeks=201440-201520 ### Updates to FluView on 2014w53, reported from 2015w01 through 2015w10 (national) -https://api.covidcast.cmu.edu/epidata/fluview/?regions=nat&epiweeks=201453&issues=201501-201510 +https://api.delphi.cmu.edu/epidata/fluview/?regions=nat&epiweeks=201453&issues=201501-201510 # Code Samples diff --git a/docs/api/fluview_clinical.md b/docs/api/fluview_clinical.md index c4473782c..d5fd12db2 100644 --- a/docs/api/fluview_clinical.md +++ b/docs/api/fluview_clinical.md @@ -20,7 +20,7 @@ General topics not specific to any particular endpoint are discussed in the # The API -The base URL is: https://api.covidcast.cmu.edu/epidata/fluview_clinical/ +The base URL is: https://api.delphi.cmu.edu/epidata/fluview_clinical/ See [this documentation](README.md) for details on specifying epiweeks, dates, and lists. @@ -66,7 +66,7 @@ If neither is specified, the current issues are used. # Example URLs ### FluView Clinical on 2020w01 (national) -https://api.covidcast.cmu.edu/epidata/fluview_clinical/?regions=nat&epiweeks=202001 +https://api.delphi.cmu.edu/epidata/fluview_clinical/?regions=nat&epiweeks=202001 ```json { diff --git a/docs/api/fluview_meta.md b/docs/api/fluview_meta.md index 0ad05eebd..c3fbb25b4 100644 --- a/docs/api/fluview_meta.md +++ b/docs/api/fluview_meta.md @@ -20,7 +20,7 @@ Returns information about the [`fluview` endpoint](fluview.md). # The API -The base URL is: https://api.covidcast.cmu.edu/epidata/fluview_meta/ +The base URL is: https://api.delphi.cmu.edu/epidata/fluview_meta/ See [this documentation](README.md) for details on specifying epiweeks, dates, and lists. @@ -42,7 +42,7 @@ There are no parameters for this endpoint. # Example URLs ### FluView Metadata -https://api.covidcast.cmu.edu/epidata/fluview_meta/ +https://api.delphi.cmu.edu/epidata/fluview_meta/ ```json { diff --git a/docs/api/gft.md b/docs/api/gft.md index bd7ac3db3..72898cb9b 100644 --- a/docs/api/gft.md +++ b/docs/api/gft.md @@ -23,7 +23,7 @@ Estimate of influenza activity based on volume of certain search queries. Google # The API -The base URL is: https://api.covidcast.cmu.edu/epidata/gft/ +The base URL is: https://api.delphi.cmu.edu/epidata/gft/ See [this documentation](README.md) for details on specifying epiweeks, dates, and lists. @@ -50,7 +50,7 @@ See [this documentation](README.md) for details on specifying epiweeks, dates, a # Example URLs ### Google Flu Trends on 2015w01 (national) -https://api.covidcast.cmu.edu/epidata/gft/?locations=nat&epiweeks=201501 +https://api.delphi.cmu.edu/epidata/gft/?locations=nat&epiweeks=201501 ```json { diff --git a/docs/api/ght.md b/docs/api/ght.md index df695fede..107d5b10e 100644 --- a/docs/api/ght.md +++ b/docs/api/ght.md @@ -19,7 +19,7 @@ Estimate of influenza activity based on volume of certain search queries. ... # The API -The base URL is: https://api.covidcast.cmu.edu/epidata/kcdc_ili/ +The base URL is: https://api.delphi.cmu.edu/epidata/kcdc_ili/ See [this documentation](README.md) for details on specifying epiweeks, dates, and lists. diff --git a/docs/api/meta.md b/docs/api/meta.md index fdb112d11..bccd7c0fd 100644 --- a/docs/api/meta.md +++ b/docs/api/meta.md @@ -19,7 +19,7 @@ General topics not specific to any particular endpoint are discussed in the # The API -The base URL is: https://api.covidcast.cmu.edu/epidata/meta/ +The base URL is: https://api.delphi.cmu.edu/epidata/meta/ See [this documentation](README.md) for details on specifying epiweeks, dates, and lists. @@ -38,7 +38,7 @@ None. # Example URLs -https://api.covidcast.cmu.edu/epidata/meta/ +https://api.delphi.cmu.edu/epidata/meta/ ```json { diff --git a/docs/api/meta_afhsb.md b/docs/api/meta_afhsb.md index 2b18c6f35..6ba294772 100644 --- a/docs/api/meta_afhsb.md +++ b/docs/api/meta_afhsb.md @@ -19,7 +19,7 @@ General topics not specific to any particular endpoint are discussed in the # The API -The base URL is: https://api.covidcast.cmu.edu/epidata/meta_afhsb/ +The base URL is: https://api.delphi.cmu.edu/epidata/meta_afhsb/ See [this documentation](README.md) for details on specifying epiweeks, dates, and lists. diff --git a/docs/api/meta_norostat.md b/docs/api/meta_norostat.md index eba5d77ae..217b20fbf 100644 --- a/docs/api/meta_norostat.md +++ b/docs/api/meta_norostat.md @@ -19,7 +19,7 @@ General topics not specific to any particular endpoint are discussed in the # The API -The base URL is: https://api.covidcast.cmu.edu/epidata/meta_norostat/ +The base URL is: https://api.delphi.cmu.edu/epidata/meta_norostat/ See [this documentation](README.md) for details on specifying epiweeks, dates, and lists. diff --git a/docs/api/nidss_dengue.md b/docs/api/nidss_dengue.md index 3aa203ad6..ab7349658 100644 --- a/docs/api/nidss_dengue.md +++ b/docs/api/nidss_dengue.md @@ -23,7 +23,7 @@ Counts of confirmed dengue cases from Taiwan's NIDSS. # The API -The base URL is: https://api.covidcast.cmu.edu/epidata/nidss_dengue/ +The base URL is: https://api.delphi.cmu.edu/epidata/nidss_dengue/ See [this documentation](README.md) for details on specifying epiweeks, dates, and lists. @@ -50,7 +50,7 @@ See [this documentation](README.md) for details on specifying epiweeks, dates, a # Example URLs ### NIDSS Dengue on 2015w01 (nationwide) -https://api.covidcast.cmu.edu/epidata/nidss_dengue/?locations=nationwide&epiweeks=201501 +https://api.delphi.cmu.edu/epidata/nidss_dengue/?locations=nationwide&epiweeks=201501 ```json { diff --git a/docs/api/nidss_flu.md b/docs/api/nidss_flu.md index 37d148c63..4af0d61d6 100644 --- a/docs/api/nidss_flu.md +++ b/docs/api/nidss_flu.md @@ -25,7 +25,7 @@ Outpatient ILI from Taiwan's National Infectious Disease Statistics System (NIDS # The API -The base URL is: https://api.covidcast.cmu.edu/epidata/nidss_flu/ +The base URL is: https://api.delphi.cmu.edu/epidata/nidss_flu/ See [this documentation](README.md) for details on specifying epiweeks, dates, and lists. @@ -67,7 +67,7 @@ If neither is specified, the current issues are used. # Example URLs ### NIDSS Flu on 2015w01 (nationwide) -https://api.covidcast.cmu.edu/epidata/nidss_flu/?regions=nationwide&epiweeks=201501 +https://api.delphi.cmu.edu/epidata/nidss_flu/?regions=nationwide&epiweeks=201501 ```json { diff --git a/docs/api/norostat.md b/docs/api/norostat.md index d6d33af86..6e801116c 100644 --- a/docs/api/norostat.md +++ b/docs/api/norostat.md @@ -19,7 +19,7 @@ General topics not specific to any particular endpoint are discussed in the # The API -The base URL is: https://api.covidcast.cmu.edu/epidata/norostat/ +The base URL is: https://api.delphi.cmu.edu/epidata/norostat/ See [this documentation](README.md) for details on specifying epiweeks, dates, and lists. diff --git a/docs/api/nowcast.md b/docs/api/nowcast.md index 5dffbe978..988c83810 100644 --- a/docs/api/nowcast.md +++ b/docs/api/nowcast.md @@ -25,7 +25,7 @@ A nowcast of U.S. national, regional, and state-level (weighted) %ILI, available # The API -The base URL is: https://api.covidcast.cmu.edu/epidata/nowcast/ +The base URL is: https://api.delphi.cmu.edu/epidata/nowcast/ See [this documentation](README.md) for details on specifying epiweeks, dates, and lists. @@ -53,7 +53,7 @@ See [this documentation](README.md) for details on specifying epiweeks, dates, a # Example URLs ### ILI Nearby on 2020w01 (national) -https://api.covidcast.cmu.edu/epidata/nowcast/?locations=nat&epiweeks=202001 +https://api.delphi.cmu.edu/epidata/nowcast/?locations=nat&epiweeks=202001 ```json { diff --git a/docs/api/paho_dengue.md b/docs/api/paho_dengue.md index a1092bc8f..46e1706c2 100644 --- a/docs/api/paho_dengue.md +++ b/docs/api/paho_dengue.md @@ -19,7 +19,7 @@ General topics not specific to any particular endpoint are discussed in the # The API -The base URL is: https://api.covidcast.cmu.edu/epidata/paho_dengue/ +The base URL is: https://api.delphi.cmu.edu/epidata/paho_dengue/ See [this documentation](README.md) for details on specifying epiweeks, dates, and lists. diff --git a/docs/api/quidel.md b/docs/api/quidel.md index 462d9c0ce..0abb412ca 100644 --- a/docs/api/quidel.md +++ b/docs/api/quidel.md @@ -21,7 +21,7 @@ Data provided by Quidel Corp., which contains flu lab test results. # The API -The base URL is: https://api.covidcast.cmu.edu/epidata/quidel/ +The base URL is: https://api.delphi.cmu.edu/epidata/quidel/ See [this documentation](README.md) for details on specifying epiweeks, dates, and lists. diff --git a/docs/api/sensors.md b/docs/api/sensors.md index 875941b7e..c4430e1f1 100644 --- a/docs/api/sensors.md +++ b/docs/api/sensors.md @@ -29,7 +29,7 @@ the COVID-19 pandemic. # The API -The base URL is: https://api.covidcast.cmu.edu/epidata/sensors/ +The base URL is: https://api.delphi.cmu.edu/epidata/sensors/ See [this documentation](README.md) for details on specifying epiweeks, dates, and lists. @@ -70,7 +70,7 @@ Notes: # Example URLs ### Delphi's Digital Surveillance SAR3 Sensor on 2020w01 (national) -https://api.covidcast.cmu.edu/epidata/sensors/?names=sar3&locations=nat&epiweeks=202001 +https://api.delphi.cmu.edu/epidata/sensors/?names=sar3&locations=nat&epiweeks=202001 ```json { diff --git a/docs/api/twitter.md b/docs/api/twitter.md index 4e7ad4dd6..dc2196f47 100644 --- a/docs/api/twitter.md +++ b/docs/api/twitter.md @@ -23,7 +23,7 @@ Estimate of influenza activity based on analysis of language used in tweets. # The API -The base URL is: https://api.covidcast.cmu.edu/epidata/twitter/ +The base URL is: https://api.delphi.cmu.edu/epidata/twitter/ See [this documentation](README.md) for details on specifying epiweeks, dates, and lists. @@ -53,7 +53,7 @@ Note: # Example URLs ### Twitter on 2015w01 (national) -https://api.covidcast.cmu.edu/epidata/twitter/?auth=...&locations=nat&epiweeks=201501 +https://api.delphi.cmu.edu/epidata/twitter/?auth=...&locations=nat&epiweeks=201501 ```json { diff --git a/docs/api/wiki.md b/docs/api/wiki.md index 23baa8428..136711f46 100644 --- a/docs/api/wiki.md +++ b/docs/api/wiki.md @@ -24,7 +24,7 @@ Number of page visits for selected English, Influenza-related wikipedia articles # The API -The base URL is: https://api.covidcast.cmu.edu/epidata/wiki/ +The base URL is: https://api.delphi.cmu.edu/epidata/wiki/ See [this documentation](README.md) for details on specifying epiweeks, dates, and lists. @@ -66,7 +66,7 @@ Note: # Example URLs ### Wikipedia Access article "influenza" on 2020w01 -https://api.covidcast.cmu.edu/epidata/wiki/?language=en&articles=influenza&epiweeks=202001 +https://api.delphi.cmu.edu/epidata/wiki/?language=en&articles=influenza&epiweeks=202001 ```json { @@ -86,7 +86,7 @@ https://api.covidcast.cmu.edu/epidata/wiki/?language=en&articles=influenza&epiwe ``` ### Wikipedia Access article "influenza" on date 2020-01-01 -https://api.covidcast.cmu.edu/epidata/wiki/?language=en&articles=influenza&dates=20200101 +https://api.delphi.cmu.edu/epidata/wiki/?language=en&articles=influenza&dates=20200101 ```json { diff --git a/docs/new_endpoint_tutorial.md b/docs/new_endpoint_tutorial.md index 06acae60a..b827715c6 100644 --- a/docs/new_endpoint_tutorial.md +++ b/docs/new_endpoint_tutorial.md @@ -325,7 +325,7 @@ actual created in this tutorial. Once it's approved, merge the PR, and contact an admin to schedule a release. Once released, the API will begin serving your new endpoint. Go ahead and give it a -try: https://api.covidcast.cmu.edu/epidata/fluview_meta/ +try: https://api.delphi.cmu.edu/epidata/fluview_meta/ ``` { diff --git a/scripts/report_missing_covidcast_meta.py b/scripts/report_missing_covidcast_meta.py index f56668eb6..6346541b9 100644 --- a/scripts/report_missing_covidcast_meta.py +++ b/scripts/report_missing_covidcast_meta.py @@ -5,7 +5,7 @@ from pathlib import Path base_dir = Path(__file__).parent.parent -base_url = 'https://api.covidcast.cmu.edu/epidata' +base_url = 'https://api.delphi.cmu.edu/epidata' def is_known_missing(source: str, signal: str) -> bool: if '7dav_cumulative' in signal: diff --git a/src/client/delphi_epidata.R b/src/client/delphi_epidata.R index 6b72fa43f..3396fff27 100644 --- a/src/client/delphi_epidata.R +++ b/src/client/delphi_epidata.R @@ -13,7 +13,7 @@ library(httr) Epidata <- (function() { # API base url - BASE_URL <- 'https://api.covidcast.cmu.edu/epidata/api.php' + BASE_URL <- 'https://api.delphi.cmu.edu/epidata/api.php' client_version <- '0.4.11' diff --git a/src/client/delphi_epidata.js b/src/client/delphi_epidata.js index 7cd81e222..5283cdf36 100644 --- a/src/client/delphi_epidata.js +++ b/src/client/delphi_epidata.js @@ -21,7 +21,7 @@ factory(root, root.fetch, root.jQuery || root.$); } })(this, function (exports, fetchImpl, jQuery) { - const BASE_URL = "https://api.covidcast.cmu.edu/epidata/"; + const BASE_URL = "https://api.delphi.cmu.edu/epidata/"; const client_version = "0.4.11"; // Helper function to cast values and/or ranges to strings diff --git a/src/client/delphi_epidata.py b/src/client/delphi_epidata.py index 308fc28ff..61b5e41eb 100644 --- a/src/client/delphi_epidata.py +++ b/src/client/delphi_epidata.py @@ -33,7 +33,7 @@ class Epidata: """An interface to DELPHI's Epidata API.""" # API base url - BASE_URL = 'https://api.covidcast.cmu.edu/epidata/api.php' + BASE_URL = 'https://api.delphi.cmu.edu/epidata/api.php' client_version = _version diff --git a/src/client/packaging/npm/tests/__snapshots__/delphi_epidata.spec.js.snap b/src/client/packaging/npm/tests/__snapshots__/delphi_epidata.spec.js.snap index 76f385a3f..b38675130 100644 --- a/src/client/packaging/npm/tests/__snapshots__/delphi_epidata.spec.js.snap +++ b/src/client/packaging/npm/tests/__snapshots__/delphi_epidata.spec.js.snap @@ -36,7 +36,7 @@ exports[`fluview basic async 1`] = ` [MockFunction] { "calls": Array [ Array [ - "https://api.covidcast.cmu.edu/epidata/fluview/?regions=a&epiweeks=4", + "https://api.delphi.cmu.edu/epidata/fluview/?regions=a&epiweeks=4", ], ], "results": Array [ @@ -52,7 +52,7 @@ exports[`fluview basic sync 1`] = ` [MockFunction] { "calls": Array [ Array [ - "https://api.covidcast.cmu.edu/epidata/fluview/?regions=a&epiweeks=4", + "https://api.delphi.cmu.edu/epidata/fluview/?regions=a&epiweeks=4", ], ], "results": Array [ From 07f2a3314155bfcb11dba99da46c0aaa25ef1ef8 Mon Sep 17 00:00:00 2001 From: Kathryn M Mazaitis Date: Wed, 17 May 2023 16:50:21 -0400 Subject: [PATCH 4/4] Update hostname in new api keys docs as well --- docs/api/api_keys.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/api/api_keys.md b/docs/api/api_keys.md index 6c3d0249a..37276f406 100644 --- a/docs/api/api_keys.md +++ b/docs/api/api_keys.md @@ -44,7 +44,7 @@ there are several ways to use your key to authenticate your requests: The request parameter “api_key” can be used to pass the API key to the server. Example: - http://delphi.cmu.edu/epidata/covidcast/meta?api_key=your_api_key_here + https://api.delphi.cmu.edu/epidata/covidcast/meta?api_key=your_api_key_here ### Via Basic Authentication @@ -52,7 +52,7 @@ Another method is using the HTTP basic authorization header with the username "epidata" and the API key as the password. Example: ``` -curl -u 'epidata:your_api_key_here' https://delphi.cmu.edu/epidata/covidcast/meta +curl -u 'epidata:your_api_key_here' https://api.delphi.cmu.edu/epidata/covidcast/meta ``` ### Via Bearer Token @@ -60,5 +60,5 @@ curl -u 'epidata:your_api_key_here' https://delphi.cmu.edu/epidata/covidcast/met Another method is providing the key in a bearer token header. Example: ``` -curl -H 'Authorization: Bearer your_api_key_here' https://delphi.cmu.edu/epidata/covidcast/meta +curl -H 'Authorization: Bearer your_api_key_here' https://api.delphi.cmu.edu/epidata/covidcast/meta ```