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}/all

GET https://api.gideononline.com/diseases/countries/%7Bcountry_code%7D/all

Returns **every disease in the GIDEON disease catalog** scoped to a country: each row identifies the disease, whether a **country distribution note** exists, whether the disease is **endemic** in that country (from incidence data), an optional **annual rate**, and an **`href`** to **`GET /diseases/{disease_code}/distribution/{country_code}`** (same path shape as elsewhere in this collection).

This differs from **`GET /diseases/countries/{country_code}`**, which returns only diseases that **have** a country note for that country.

#### **Path parameters**

| Name | Description |
| --- | --- |
| `country_code` | GIDEON country code. |

#### **Query parameters**

| Name | Description |
| --- | --- |
| `return` | `simple` (default) or `detailed`. **`simple`** returns compact rows (`id`, `name`, `has_country_note`, `href`, `is_endemic`, `annual_rate`). **`detailed`** returns the full disease-record projection used elsewhere in the Diseases API (restructured to **lowercase** JSON keys), with pagination fields **`total`**, **`offset`**, and **`limit`**. |
| `search` | Optional **prefix** filter on disease **`name`** (case-sensitive on the server; empty means no name filter). |
| `limit` / `offset` | Pagination for **`return=detailed`** (ignored for **`simple`**). **`limit`** is capped by the server **max records** setting for the caller. |

#### **Response (`return=simple`)**

`{ "data": [ … ] }` — no top-level **`timestamp`**. Each item: **`id`** (disease id), **`name`**, boolean **`has_country_note`**, **`href`**, boolean **`is_endemic`**, **`annual_rate`** (number or `null` when absent).

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

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: collection
  version: 1.0.0
paths:
  /diseases/countries/%7Bcountry_code%7D/all:
    get:
      operationId: diseases-countries-country-code-all
      summary: /diseases/countries/{country_code}/all
      description: >-
        Returns **every disease in the GIDEON disease catalog** scoped to a
        country: each row identifies the disease, whether a **country
        distribution note** exists, whether the disease is **endemic** in that
        country (from incidence data), an optional **annual rate**, and an
        **`href`** to **`GET
        /diseases/{disease_code}/distribution/{country_code}`** (same path shape
        as elsewhere in this collection).


        This differs from **`GET /diseases/countries/{country_code}`**, which
        returns only diseases that **have** a country note for that country.


        #### **Path parameters**


        | Name | Description |

        | --- | --- |

        | `country_code` | GIDEON country code. |


        #### **Query parameters**


        | Name | Description |

        | --- | --- |

        | `return` | `simple` (default) or `detailed`. **`simple`** returns
        compact rows (`id`, `name`, `has_country_note`, `href`, `is_endemic`,
        `annual_rate`). **`detailed`** returns the full disease-record
        projection used elsewhere in the Diseases API (restructured to
        **lowercase** JSON keys), with pagination fields **`total`**,
        **`offset`**, and **`limit`**. |

        | `search` | Optional **prefix** filter on disease **`name`**
        (case-sensitive on the server; empty means no name filter). |

        | `limit` / `offset` | Pagination for **`return=detailed`** (ignored for
        **`simple`**). **`limit`** is capped by the server **max records**
        setting for the caller. |


        #### **Response (`return=simple`)**


        `{ "data": [ … ] }` — no top-level **`timestamp`**. Each item: **`id`**
        (disease id), **`name`**, boolean **`has_country_note`**, **`href`**,
        boolean **`is_endemic`**, **`annual_rate`** (number or `null` when
        absent).
      tags:
        - subpackage_diseases
      parameters:
        - 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}/all_Response_200
servers:
  - url: https://api.gideononline.com
  - url: https://api-test.gideononline.com
components:
  schemas:
    DiseasesCountries7BcountryCode7DAllGetResponsesContentApplicationJsonSchemaDataItems:
      type: object
      properties:
        id:
          type: integer
        href:
          type: string
        name:
          type: string
        is_endemic:
          type: boolean
        annual_rate:
          type: number
          format: double
        has_country_note:
          type: boolean
      required:
        - id
        - href
        - name
        - is_endemic
        - annual_rate
        - has_country_note
      title: >-
        DiseasesCountries7BcountryCode7DAllGetResponsesContentApplicationJsonSchemaDataItems
    Diseases_/diseases/countries/{country_code}/all_Response_200:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: >-
              #/components/schemas/DiseasesCountries7BcountryCode7DAllGetResponsesContentApplicationJsonSchemaDataItems
      required:
        - data
      title: Diseases_/diseases/countries/{country_code}/all_Response_200
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: Authorization

```

## SDK Code Examples

```python Diseases_/diseases/countries/{country_code}/all_example
import requests

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

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

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

print(response.json())
```

```javascript Diseases_/diseases/countries/{country_code}/all_example
const url = 'https://api.gideononline.com/diseases/countries/%7Bcountry_code%7D/all';
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}/all_example
package main

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

func main() {

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

	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}/all_example
require 'uri'
require 'net/http'

url = URI("https://api.gideononline.com/diseases/countries/%7Bcountry_code%7D/all")

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}/all_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/all")
  .header("Authorization", "<apiKey>")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

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

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

```csharp Diseases_/diseases/countries/{country_code}/all_example
using RestSharp;

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

```swift Diseases_/diseases/countries/{country_code}/all_example
import Foundation

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

let request = NSMutableURLRequest(url: NSURL(string: "https://api.gideononline.com/diseases/countries/%7Bcountry_code%7D/all")! 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()
```