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/charts

GET https://api.gideononline.com/diseases/charts

Returns a list of charts (graphs) that match your filters—each item identifies the disease, country, chart title, type, and a link (`href`) to fetch the full chart data. Results are sorted by title and **limited to 1000** items per request.

#### **Required (at least one)**

Provide at least one non-empty value using **one or more** of these query parameters (comma-separated where multiple values are allowed):

| Parameter | Description |
| --- | --- |
| `diseases` | Disease IDs |
| `countries` | Country codes (see `/diseases/fingerprint/countries`) |
| `states` | State or province codes |
| `countryregions` | Country region identifiers |
| `keywords` | Words or phrases to find in chart titles |

If you omit all of the above, the API returns **400** with a short `message` explaining that a filter is required.

#### **Optional**

| Parameter | Description |
| --- | --- |
| `type` | Limit results to one or more chart types (comma-separated) |

Use **`GET /diseases/charts/countries`** and **`GET /diseases/charts/regions`** to list **`countries`**, **`states`**, and **`countryregions`** values that appear in the chart catalog. Use **`GET /diseases/charts/keywords`** (parameter **`q`**) to suggest **`keywords`** for the title search on **`GET /diseases/charts`**. When you already know the disease id, **`GET /diseases/{disease_code}/charts`** returns every catalog row for that disease across countries. For **every chart in one country** without building filters, **`GET /diseases/countries/{country_code}/charts`** returns the same style of rows for that country only.

Typical fields in each result include disease and country names, codes, chart identifier, title, type, and `href` for the follow-up chart request.

Reference: https://api-doc-new.gideononline.com/gideon-api-1-0/diseases/diseases-charts

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: collection
  version: 1.0.0
paths:
  /diseases/charts:
    get:
      operationId: diseases-charts
      summary: /diseases/charts
      description: >-
        Returns a list of charts (graphs) that match your filters—each item
        identifies the disease, country, chart title, type, and a link (`href`)
        to fetch the full chart data. Results are sorted by title and **limited
        to 1000** items per request.


        #### **Required (at least one)**


        Provide at least one non-empty value using **one or more** of these
        query parameters (comma-separated where multiple values are allowed):


        | Parameter | Description |

        | --- | --- |

        | `diseases` | Disease IDs |

        | `countries` | Country codes (see `/diseases/fingerprint/countries`) |

        | `states` | State or province codes |

        | `countryregions` | Country region identifiers |

        | `keywords` | Words or phrases to find in chart titles |


        If you omit all of the above, the API returns **400** with a short
        `message` explaining that a filter is required.


        #### **Optional**


        | Parameter | Description |

        | --- | --- |

        | `type` | Limit results to one or more chart types (comma-separated) |


        Use **`GET /diseases/charts/countries`** and **`GET
        /diseases/charts/regions`** to list **`countries`**, **`states`**, and
        **`countryregions`** values that appear in the chart catalog. Use **`GET
        /diseases/charts/keywords`** (parameter **`q`**) to suggest
        **`keywords`** for the title search on **`GET /diseases/charts`**. When
        you already know the disease id, **`GET
        /diseases/{disease_code}/charts`** returns every catalog row for that
        disease across countries. For **every chart in one country** without
        building filters, **`GET /diseases/countries/{country_code}/charts`**
        returns the same style of rows for that country only.


        Typical fields in each result include disease and country names, codes,
        chart identifier, title, type, and `href` for the follow-up chart
        request.
      tags:
        - subpackage_diseases
      parameters:
        - name: diseases
          in: query
          description: >-
            Comma-separated disease IDs. At least one of diseases, countries,
            states, countryregions, or keywords must have a non-empty value.
          required: false
          schema:
            type: integer
        - name: countries
          in: query
          description: >-
            Comma-separated country codes (e.g. from
            /diseases/fingerprint/countries).
          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/charts_Response_200'
servers:
  - url: https://api.gideononline.com
  - url: https://api-test.gideononline.com
components:
  schemas:
    DiseasesChartsGetResponsesContentApplicationJsonSchemaDataItems:
      type: object
      properties:
        href:
          type: string
        type:
          type: string
        title:
          type: string
        country:
          type: string
        disease:
          type: string
        graph_id:
          type: integer
        state_code:
          description: Any type
        country_code:
          type: string
        disease_code:
          type: integer
        countryregion_id:
          description: Any type
      required:
        - href
        - type
        - title
        - country
        - disease
        - graph_id
        - country_code
        - disease_code
      title: DiseasesChartsGetResponsesContentApplicationJsonSchemaDataItems
    Diseases_/diseases/charts_Response_200:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: >-
              #/components/schemas/DiseasesChartsGetResponsesContentApplicationJsonSchemaDataItems
      required:
        - data
      title: Diseases_/diseases/charts_Response_200
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: Authorization

```

## SDK Code Examples

```python Diseases_/diseases/charts_example
import requests

url = "https://api.gideononline.com/diseases/charts"

querystring = {"diseases":"10590","countries":"G158"}

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

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

print(response.json())
```

```javascript Diseases_/diseases/charts_example
const url = 'https://api.gideononline.com/diseases/charts?diseases=10590&countries=G158';
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/charts_example
package main

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

func main() {

	url := "https://api.gideononline.com/diseases/charts?diseases=10590&countries=G158"

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

url = URI("https://api.gideononline.com/diseases/charts?diseases=10590&countries=G158")

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/charts_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.gideononline.com/diseases/charts?diseases=10590&countries=G158")
  .header("Authorization", "<apiKey>")
  .asString();
```

```php Diseases_/diseases/charts_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.gideononline.com/diseases/charts?diseases=10590&countries=G158', [
  'headers' => [
    'Authorization' => '<apiKey>',
  ],
]);

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

```csharp Diseases_/diseases/charts_example
using RestSharp;

var client = new RestClient("https://api.gideononline.com/diseases/charts?diseases=10590&countries=G158");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift Diseases_/diseases/charts_example
import Foundation

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

let request = NSMutableURLRequest(url: NSURL(string: "https://api.gideononline.com/diseases/charts?diseases=10590&countries=G158")! 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()
```