Request

POST https://api.riskline.com/v2/geo-risk-levels/places/risk-levels.json

{
   "places": [{
    “start_date”: “2021-02-01”,
    “end_date”: “2021-02-23”,
    "lat": 48.8566969,
    "lng": 2.3514616
   }, {
    "place_name": “Avenue des Champs-Élysées, Paris”,
    "language": "fr"
   }, {
    country_code: "US"
   }, {
    region_code: "GB-LND"
   }, {
    city_code: "LON"
   }
}

Response

Format: application/json
In "primary_sources" has only one from the following properties: "city", "country", "advisories", "alerts".
"city" and "country" cannot be in both "primary_sources" and "secondary_sources"

{
  "places": [
    {
      "city_code": "LON",
      "country_code": "gb",
      "lat": 51.50732,
      "lng": -0.12764,
      "landing_page_url": "https://local-risk-level.riskline.com/places?city_code=LON",
      "risk_level": {
        "id": "3",
        "name": "Medium",
        "info": "Exercise caution",
        "answer": "<p>\n          travel to <strong>London</strong>  is rated\n          <strong>Medium Risk </strong>because of the COVID-19 situation in the city of <strong>London</strong>\n        </p>\n"
      },
      "primary_sources": {
        "city": {
          "id": "130",
          "name": "London",
          "code": "LON",
          "risk_level": {
            "id": "3",
            "name": "Medium"
          },
          "section": "Covid-19",
          "image_url": "https://riskline.imgix.net/cities/images/000/000/130/file-cb21d628-f191-41f8-b10a-dbd299c0fe6d.jpg"
        }
      },
      "secondary_sources": {
        "country": {
          "id": "209",
          "name": "The United Kingdom (UK)",
          "iso_code": "GB",
          "risk_level": {
            "id": "3",
            "name": "Medium"
          },
          "sections": [
            "COVID-19"
          ],
          "image_url": "https://riskline.imgix.net/cities/images/000/000/130/file-cb21d628-f191-41f8-b10a-dbd299c0fe6d.jpg"
        },
        "advisories": [],
        "alerts": []
      }
    }
  ]
}