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/case-series/filter

GET https://api.gideononline.com/diseases/case-series/filter

Returns **case series** rows matching optional filters. Results are ordered by the greater of start year and publication year (newest first).

Successful responses include **`record_count`** and **`timestamp`** (Unix epoch seconds from the most recent row update in the filtered set).

If the filter matches **more than** the server cap (default **500**, `case_series_max_records_without_filters`), the API returns **HTTP 200** with `{ "data": { "record_count", "max_records" } }` instead of listing rows—tighten filters and call again.

#### **Query parameters** (all optional; **camelCase**)

| Name | Description |
| --- | --- |
| `disease` | Numeric GIDEON disease identifier. |
| `country` | GIDEON country code for the reporting country. |
| `startYear` / `endYear` | **Overlap** window: with both set, a series must overlap that calendar range; with only `startYear`, the series’ effective end year must be ≥ `startYear`; with only `endYear`, its start year must be ≤ `endYear`. If no explicit end year exists for a series, its start year is used as the end for overlap checks. |
| `publicationYear` | Exact match on publication year. |
| `setting` | Setting id. |
| `population` | Population group id. |
| `parameter` | Case parameter id. |
| `region` | Region id for subdivision filtering. |

#### **Success with rows**

`{ "data": [ ... ], "record_count": <n>, "timestamp": <unix_epoch_seconds> }` — normalized **lowercase** keys (e.g. `id` with `c_` prefix, `start_year`, `refs`, `region_name`). `timestamp` is a Unix epoch integer (seconds), not an ISO-8601 string. The Postman example shows **one** `data` row for brevity; `record_count` is still the full filtered total.

#### **Too many matches**

`{ "data": { "record_count", "max_records" } }` with **200**.

#### **Errors**

- **500** — Invalid request (generic error body).

Reference: https://api-doc-new.gideononline.com/gideon-api-1-0/diseases/diseases-case-series-filter

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: collection
  version: 1.0.0
paths:
  /diseases/case-series/filter:
    get:
      operationId: diseases-case-series-filter
      summary: /diseases/case-series/filter
      description: >-
        Returns **case series** rows matching optional filters. Results are
        ordered by the greater of start year and publication year (newest
        first).


        Successful responses include **`record_count`** and **`timestamp`**
        (Unix epoch seconds from the most recent row update in the filtered
        set).


        If the filter matches **more than** the server cap (default **500**,
        `case_series_max_records_without_filters`), the API returns **HTTP 200**
        with `{ "data": { "record_count", "max_records" } }` instead of listing
        rows—tighten filters and call again.


        #### **Query parameters** (all optional; **camelCase**)


        | Name | Description |

        | --- | --- |

        | `disease` | Numeric GIDEON disease identifier. |

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

        | `startYear` / `endYear` | **Overlap** window: with both set, a series
        must overlap that calendar range; with only `startYear`, the series’
        effective end year must be ≥ `startYear`; with only `endYear`, its start
        year must be ≤ `endYear`. If no explicit end year exists for a series,
        its start year is used as the end for overlap checks. |

        | `publicationYear` | Exact match on publication year. |

        | `setting` | Setting id. |

        | `population` | Population group id. |

        | `parameter` | Case parameter id. |

        | `region` | Region id for subdivision filtering. |


        #### **Success with rows**


        `{ "data": [ ... ], "record_count": <n>, "timestamp":
        <unix_epoch_seconds> }` — normalized **lowercase** keys (e.g. `id` with
        `c_` prefix, `start_year`, `refs`, `region_name`). `timestamp` is a Unix
        epoch integer (seconds), not an ISO-8601 string. The Postman example
        shows **one** `data` row for brevity; `record_count` is still the full
        filtered total.


        #### **Too many matches**


        `{ "data": { "record_count", "max_records" } }` with **200**.


        #### **Errors**


        - **500** — Invalid request (generic error body).
      tags:
        - subpackage_diseases
      parameters:
        - name: disease
          in: query
          description: Numeric GIDEON disease identifier.
          required: false
          schema:
            type: integer
        - name: country
          in: query
          description: GIDEON country code.
          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/case-series/filter_Response_200
servers:
  - url: https://api.gideononline.com
  - url: https://api-test.gideononline.com
components:
  schemas:
    DiseasesCaseSeriesFilterGetResponsesContentApplicationJsonSchemaDataItems:
      type: object
      properties:
        id:
          type: string
        refs:
          type: string
        cases:
          type: integer
        deaths:
          description: Any type
        hash_id:
          type: string
          format: uuid
        end_year:
          description: Any type
        disease_id:
          type: integer
        setting_id:
          type: integer
        start_year:
          description: Any type
        region_name:
          type: string
        country_code:
          type: string
        country_name:
          type: string
        disease_name:
          type: string
        parameter_id:
          type: integer
        setting_name:
          type: string
        population_id:
          type: integer
        parameter_name:
          type: string
        population_name:
          type: string
        last_update_date:
          type: string
        publication_year:
          type: integer
      required:
        - id
        - refs
        - cases
        - hash_id
        - disease_id
        - setting_id
        - region_name
        - country_code
        - country_name
        - disease_name
        - parameter_id
        - setting_name
        - population_id
        - parameter_name
        - population_name
        - last_update_date
        - publication_year
      title: >-
        DiseasesCaseSeriesFilterGetResponsesContentApplicationJsonSchemaDataItems
    Diseases_/diseases/case-series/filter_Response_200:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: >-
              #/components/schemas/DiseasesCaseSeriesFilterGetResponsesContentApplicationJsonSchemaDataItems
        timestamp:
          type: integer
        record_count:
          type: integer
      required:
        - data
        - timestamp
        - record_count
      title: Diseases_/diseases/case-series/filter_Response_200
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: Authorization

```

## SDK Code Examples

```python Diseases_/diseases/case-series/filter_example
import requests

url = "https://api.gideononline.com/diseases/case-series/filter"

querystring = {"disease":"10040","country":"G292"}

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

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

print(response.json())
```

```javascript Diseases_/diseases/case-series/filter_example
const url = 'https://api.gideononline.com/diseases/case-series/filter?disease=10040&country=G292';
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/case-series/filter_example
package main

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

func main() {

	url := "https://api.gideononline.com/diseases/case-series/filter?disease=10040&country=G292"

	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/case-series/filter_example
require 'uri'
require 'net/http'

url = URI("https://api.gideononline.com/diseases/case-series/filter?disease=10040&country=G292")

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

HttpResponse<String> response = Unirest.get("https://api.gideononline.com/diseases/case-series/filter?disease=10040&country=G292")
  .header("Authorization", "<apiKey>")
  .asString();
```

```php Diseases_/diseases/case-series/filter_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.gideononline.com/diseases/case-series/filter?disease=10040&country=G292', [
  'headers' => [
    'Authorization' => '<apiKey>',
  ],
]);

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

```csharp Diseases_/diseases/case-series/filter_example
using RestSharp;

var client = new RestClient("https://api.gideononline.com/diseases/case-series/filter?disease=10040&country=G292");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift Diseases_/diseases/case-series/filter_example
import Foundation

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

let request = NSMutableURLRequest(url: NSURL(string: "https://api.gideononline.com/diseases/case-series/filter?disease=10040&country=G292")! 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()
```