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/outbreaks/distribution/{country_code}

GET https://api.gideononline.com/diseases/outbreaks/distribution/G292

Returns **outbreak and sporadic** rows for a **single reporting country** (`{country_code}` — same GIDEON code as **`country`** on **`GET /diseases/outbreaks/filter`**).

Only events whose **`type`** field contains **`outbreak`** or **`sporadic`** are included (other event types are omitted).

**`year`** is **required** on this path. If it is missing, the API returns **404** with `{ "error": { "message": "year is required." } }`.

- **`return=simple`** (default): each row includes update timestamps, ids, year fields (**`outbreak_first_reported`** / **`outbreak_last_reported`** alongside legacy **`outbreak_start`** / **`outbreak_end`**), cases/deaths, resolved **`region`**, geography (**`city`**, **`state`** when present), and disease. The list is **not** paginated — large countries/years can return many rows.
- **`return=detailed`**: adds vehicle, setting, population, pathogen, clinical, notes, and resolved reference objects; results are **paginated** (`data`, `total`, `offset`, `limit`).

Related: **`GET /diseases/outbreaks/distribution/{country_code}/summary`** (aggregates); **`GET /diseases/outbreaks/distribution/{country_code}/alerts`** (recent updates; uses **`days`**, not **`year`**). For arbitrary filters across countries, use **`GET /diseases/outbreaks/filter`**.

- **`outbreak_start`** / **`outbreak_end`** in responses are **deprecated** in favor of **`outbreak_first_reported`** / **`outbreak_last_reported`**.

#### **Path parameters**

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

#### **Query parameters**

| Name | Required | Description |
| --- | --- | --- |
| `year` | **Yes** | Integer calendar year. |
| `return` | No | `simple` (default) or `detailed`. |
| `limit` / `offset` | No | For **`detailed`** only: page size and skip (subject to server and API-key caps). |

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

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: collection
  version: 1.0.0
paths:
  /diseases/outbreaks/distribution/G292:
    get:
      operationId: diseases-outbreaks-distribution-country-code
      summary: /diseases/outbreaks/distribution/{country_code}
      description: >-
        Returns **outbreak and sporadic** rows for a **single reporting
        country** (`{country_code}` — same GIDEON code as **`country`** on
        **`GET /diseases/outbreaks/filter`**).


        Only events whose **`type`** field contains **`outbreak`** or
        **`sporadic`** are included (other event types are omitted).


        **`year`** is **required** on this path. If it is missing, the API
        returns **404** with `{ "error": { "message": "year is required." } }`.


        - **`return=simple`** (default): each row includes update timestamps,
        ids, year fields (**`outbreak_first_reported`** /
        **`outbreak_last_reported`** alongside legacy **`outbreak_start`** /
        **`outbreak_end`**), cases/deaths, resolved **`region`**, geography
        (**`city`**, **`state`** when present), and disease. The list is **not**
        paginated — large countries/years can return many rows.

        - **`return=detailed`**: adds vehicle, setting, population, pathogen,
        clinical, notes, and resolved reference objects; results are
        **paginated** (`data`, `total`, `offset`, `limit`).


        Related: **`GET
        /diseases/outbreaks/distribution/{country_code}/summary`** (aggregates);
        **`GET /diseases/outbreaks/distribution/{country_code}/alerts`** (recent
        updates; uses **`days`**, not **`year`**). For arbitrary filters across
        countries, use **`GET /diseases/outbreaks/filter`**.


        - **`outbreak_start`** / **`outbreak_end`** in responses are
        **deprecated** in favor of **`outbreak_first_reported`** /
        **`outbreak_last_reported`**.


        #### **Path parameters**


        | Name | Description |

        | --- | --- |

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


        #### **Query parameters**


        | Name | Required | Description |

        | --- | --- | --- |

        | `year` | **Yes** | Integer calendar year. |

        | `return` | No | `simple` (default) or `detailed`. |

        | `limit` / `offset` | No | For **`detailed`** only: page size and skip
        (subject to server and API-key caps). |
      tags:
        - subpackage_diseases
      parameters:
        - name: year
          in: query
          description: >-
            Calendar year filter (required for this path). A row matches if its
            first reported year, last reported span, or publication year
            intersects this year (server-side OR logic).
          required: false
          schema:
            type: integer
        - name: Authorization
          in: header
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/Diseases_/diseases/outbreaks/distribution/{country_code}_Response_200
servers:
  - url: https://api.gideononline.com
  - url: https://api-test.gideononline.com
components:
  schemas:
    DiseasesOutbreaksDistributionG292GetResponsesContentApplicationJsonSchemaDataItems:
      type: object
      properties:
        id:
          type: string
        city:
          description: Any type
        type:
          type: string
        cases:
          type: integer
        state:
          description: Any type
        deaths:
          type: integer
        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:
          description: Any type
        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
        - deaths
        - region
        - country
        - disease
        - hash_id
        - update_date
        - country_code
        - disease_code
        - outbreak_start
        - update_date_epoch
        - outbreak_last_reported
        - outbreak_first_reported
      title: >-
        DiseasesOutbreaksDistributionG292GetResponsesContentApplicationJsonSchemaDataItems
    Diseases_/diseases/outbreaks/distribution/{country_code}_Response_200:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: >-
              #/components/schemas/DiseasesOutbreaksDistributionG292GetResponsesContentApplicationJsonSchemaDataItems
      required:
        - data
      title: Diseases_/diseases/outbreaks/distribution/{country_code}_Response_200
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: Authorization

```

## SDK Code Examples

```python Diseases_/diseases/outbreaks/distribution/{country_code}_example
import requests

url = "https://api.gideononline.com/diseases/outbreaks/distribution/G292"

querystring = {"year":"2025"}

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

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

print(response.json())
```

```javascript Diseases_/diseases/outbreaks/distribution/{country_code}_example
const url = 'https://api.gideononline.com/diseases/outbreaks/distribution/G292?year=2025';
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/outbreaks/distribution/{country_code}_example
package main

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

func main() {

	url := "https://api.gideononline.com/diseases/outbreaks/distribution/G292?year=2025"

	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/outbreaks/distribution/{country_code}_example
require 'uri'
require 'net/http'

url = URI("https://api.gideononline.com/diseases/outbreaks/distribution/G292?year=2025")

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/outbreaks/distribution/{country_code}_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.gideononline.com/diseases/outbreaks/distribution/G292?year=2025")
  .header("Authorization", "<apiKey>")
  .asString();
```

```php Diseases_/diseases/outbreaks/distribution/{country_code}_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.gideononline.com/diseases/outbreaks/distribution/G292?year=2025', [
  'headers' => [
    'Authorization' => '<apiKey>',
  ],
]);

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

```csharp Diseases_/diseases/outbreaks/distribution/{country_code}_example
using RestSharp;

var client = new RestClient("https://api.gideononline.com/diseases/outbreaks/distribution/G292?year=2025");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift Diseases_/diseases/outbreaks/distribution/{country_code}_example
import Foundation

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

let request = NSMutableURLRequest(url: NSURL(string: "https://api.gideononline.com/diseases/outbreaks/distribution/G292?year=2025")! 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()
```