Skip to content

Instantly share code, notes, and snippets.

@ubiratansoares
Last active June 6, 2020 23:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ubiratansoares/478d1128acdc62dfd5453b7aaa9b85f3 to your computer and use it in GitHub Desktop.
Save ubiratansoares/478d1128acdc62dfd5453b7aaa9b85f3 to your computer and use it in GitHub Desktop.
New Covid19 Portal - Back Data

Endpoint -> https://xx9p7hp1p7.execute-api.us-east-1.amazonaws.com/prod/PortalGeral

curl 'https://xx9p7hp1p7.execute-api.us-east-1.amazonaws.com/prod/PortalGeral' \
  -H 'authority: xx9p7hp1p7.execute-api.us-east-1.amazonaws.com' \
  -H 'accept: application/json, text/plain, */*' \
  -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36' \
  -H 'x-parse-application-id: unAFkcaNDeXajurGB7LChj8SgQYS2ptm' \
  -H 'origin: https://covid.saude.gov.br' \
  -H 'sec-fetch-site: cross-site' \
  -H 'sec-fetch-mode: cors' \
  -H 'sec-fetch-dest: empty' \
  -H 'referer: https://covid.saude.gov.br/' \
  -H 'accept-language: en-US,en;q=0.9,pt;q=0.8' \
  --compressed

Example response

{
  "confirmados": {
    "total": "0",
    "titulo": "Casos",
    "novos": 30830,
    "incidencia": "307,3",
    "recuperados": 11977,
    "acompanhamento": "343805",
    "percent": ""
  },
  "obitos": {
    "total": "0",
    "titulo": "Óbitos",
    "novos": 1005,
    "incidencia": "",
    "letalidade": "5,4",
    "mortalidade": "16,7",
    "percent": ""
  },
  "dt_updated": "2020-06-06T18:11:36.418Z",
  "planilha": {
    "usuario": "Admin",
    "nome": "HOJE_PAINEL_COVIDBR_05jun2020.xlsx",
    "usuario_id": "4SZfYGsNY4",
    "status": "COMPLETO",
    "arquivo": {
      "__type": "File",
      "name": "a4a4b53adb543defcdb6738a45ec1644_HOJE_PAINEL_COVIDBR_05jun2020.xlsx",
      "url": "https://mobileapps.saude.gov.br/esus-vepi/files/unAFkcaNDeXajurGB7LChj8SgQYS2ptm/a4a4b53adb543defcdb6738a45ec1644_HOJE_PAINEL_COVIDBR_05jun2020.xlsx"
    },    "createdAt": "2020-06-06T18:08:27.812Z",
    "updatedAt": "2020-06-06T18:11:42.945Z",
    "objectId": "YeQBxmVL5t"
  }
}

Em planilha.arquivo.url temos o xlsx com os dados completos

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment