For clean Markdown of any page, append .md to the page URL. For a complete documentation index, see https://api-doc-new.gideononline.com/gideon-api-1-0/diseases/llms.txt. For full documentation content, see https://api-doc-new.gideononline.com/gideon-api-1-0/diseases/llms-full.txt.

# /diseases/countries/{country_code}/latest-outbreaks

GET https://api.gideononline.com/diseases/countries/%7Bcountry_code%7D/latest-outbreaks

Returns **one current outbreak-style row per disease** for a single country: among qualifying **outbreak** and **sporadic** records in that country, the server keeps the row whose reporting window is **most recent** (by the greatest of first reported year, last reported year, and publication year), then **deduplicates to a single row per `disease_code`**.

Results are ordered by **`disease`** name. The response is **`{ "data": [ … ] }`** with **no** top-level **`timestamp`**.

- **`outbreak_start`** _(deprecated)_ – Same calendar value as **`outbreak_first_reported`**; prefer **`outbreak_first_reported`** / **`outbreak_last_reported`**.
- **`outbreak_end`** _(deprecated)_ – Replaced by **`outbreak_last_reported`** for new integrations.

The **`type`** field follows the same comma-separated semantics as other outbreak listings (for example **`outbreak`**, **`sporadic`**, **`travelcase`**, and combinations).

#### **Path parameters**

| Name | Description |
| --- | --- |
| `country_code` | GIDEON country code for the reporting country. |

#### **Query parameters**

| Name | Description |
| --- | --- |
| `return` | `simple` (default) or `detailed`. **`detailed`** adds vehicle, setting, population, pathogen, clinical, **`notes`**, and a resolved **`references`** array (`reference_number`, `citation`, `short_citation`, `href`). |

For a **specific** outbreak record anywhere, use **`GET /diseases/outbreaks/{hash_id}`**.

Reference: https://api-doc-new.gideononline.com/gideon-api-1-0/diseases/diseases-countries-country-code-latest-outbreaks

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: collection
  version: 1.0.0
paths:
  /diseases/countries/%7Bcountry_code%7D/latest-outbreaks:
    get:
      operationId: diseases-countries-country-code-latest-outbreaks
      summary: /diseases/countries/{country_code}/latest-outbreaks
      description: >-
        Returns **one current outbreak-style row per disease** for a single
        country: among qualifying **outbreak** and **sporadic** records in that
        country, the server keeps the row whose reporting window is **most
        recent** (by the greatest of first reported year, last reported year,
        and publication year), then **deduplicates to a single row per
        `disease_code`**.


        Results are ordered by **`disease`** name. The response is **`{ "data":
        [ … ] }`** with **no** top-level **`timestamp`**.


        - **`outbreak_start`** _(deprecated)_ – Same calendar value as
        **`outbreak_first_reported`**; prefer **`outbreak_first_reported`** /
        **`outbreak_last_reported`**.

        - **`outbreak_end`** _(deprecated)_ – Replaced by
        **`outbreak_last_reported`** for new integrations.


        The **`type`** field follows the same comma-separated semantics as other
        outbreak listings (for example **`outbreak`**, **`sporadic`**,
        **`travelcase`**, and combinations).


        #### **Path parameters**


        | Name | Description |

        | --- | --- |

        | `country_code` | GIDEON country code for the reporting country. |


        #### **Query parameters**


        | Name | Description |

        | --- | --- |

        | `return` | `simple` (default) or `detailed`. **`detailed`** adds
        vehicle, setting, population, pathogen, clinical, **`notes`**, and a
        resolved **`references`** array (`reference_number`, `citation`,
        `short_citation`, `href`). |


        For a **specific** outbreak record anywhere, use **`GET
        /diseases/outbreaks/{hash_id}`**.
      tags:
        - subpackage_diseases
      parameters:
        - name: return
          in: query
          description: Use `detailed` for notes, references, and extra columns.
          required: false
          schema:
            type: string
        - name: Authorization
          in: header
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/Diseases_/diseases/countries/{country_code}/latest-outbreaks_Response_200
servers:
  - url: https://api.gideononline.com
  - url: https://api-test.gideononline.com
components:
  schemas:
    DiseasesCountries7BcountryCode7DLatestOutbreaksGetResponsesContentApplicationJsonSchemaDataItems:
      type: object
      properties:
        id:
          type: string
        city:
          description: Any type
        type:
          type: string
        cases:
          type: integer
        state:
          type: string
        deaths:
          description: Any type
        region:
          type: string
        country:
          type: string
        disease:
          type: string
        hash_id:
          type: string
          format: uuid
        update_date:
          type: string
        country_code:
          type: string
        disease_code:
          type: integer
        outbreak_end:
          type: integer
        outbreak_start:
          type: integer
        publication_year:
          description: Any type
        update_date_epoch:
          type: integer
        outbreak_last_reported:
          type: integer
        outbreak_first_reported:
          type: integer
      required:
        - id
        - type
        - cases
        - state
        - region
        - country
        - disease
        - hash_id
        - update_date
        - country_code
        - disease_code
        - outbreak_end
        - outbreak_start
        - update_date_epoch
        - outbreak_last_reported
        - outbreak_first_reported
      title: >-
        DiseasesCountries7BcountryCode7DLatestOutbreaksGetResponsesContentApplicationJsonSchemaDataItems
    Diseases_/diseases/countries/{country_code}/latest-outbreaks_Response_200:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: >-
              #/components/schemas/DiseasesCountries7BcountryCode7DLatestOutbreaksGetResponsesContentApplicationJsonSchemaDataItems
      required:
        - data
      title: >-
        Diseases_/diseases/countries/{country_code}/latest-outbreaks_Response_200
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: Authorization

```

## SDK Code Examples

```python Diseases_/diseases/countries/{country_code}/latest-outbreaks_example
import requests

url = "https://api.gideononline.com/diseases/countries/%7Bcountry_code%7D/latest-outbreaks"

querystring = {"return":"simple"}

headers = {"Authorization": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript Diseases_/diseases/countries/{country_code}/latest-outbreaks_example
const url = 'https://api.gideononline.com/diseases/countries/%7Bcountry_code%7D/latest-outbreaks?return=simple';
const options = {method: 'GET', headers: {Authorization: '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Diseases_/diseases/countries/{country_code}/latest-outbreaks_example
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.gideononline.com/diseases/countries/%7Bcountry_code%7D/latest-outbreaks?return=simple"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Diseases_/diseases/countries/{country_code}/latest-outbreaks_example
require 'uri'
require 'net/http'

url = URI("https://api.gideononline.com/diseases/countries/%7Bcountry_code%7D/latest-outbreaks?return=simple")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java Diseases_/diseases/countries/{country_code}/latest-outbreaks_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.gideononline.com/diseases/countries/%7Bcountry_code%7D/latest-outbreaks?return=simple")
  .header("Authorization", "<apiKey>")
  .asString();
```

```php Diseases_/diseases/countries/{country_code}/latest-outbreaks_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.gideononline.com/diseases/countries/%7Bcountry_code%7D/latest-outbreaks?return=simple', [
  'headers' => [
    'Authorization' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp Diseases_/diseases/countries/{country_code}/latest-outbreaks_example
using RestSharp;

var client = new RestClient("https://api.gideononline.com/diseases/countries/%7Bcountry_code%7D/latest-outbreaks?return=simple");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift Diseases_/diseases/countries/{country_code}/latest-outbreaks_example
import Foundation

let headers = ["Authorization": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.gideononline.com/diseases/countries/%7Bcountry_code%7D/latest-outbreaks?return=simple")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```