> ## Documentation Index
> Fetch the complete documentation index at: https://docs.metriport.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Scheduled Queries

> Query the networks on your schedule.

# Overview

Scheduled Queries is an automated and scheduled version of adhoc queries (e.g., [Start Network Query](/medical-api/api-reference/network/start-network-query)).

It allows you to specify a schedule in which queries should be executed automatically.

You can choose one of the frequencies below for each of the query source:

* `daily`: runs every day. (**HIE only**.)
* `weekly`: runs every Saturday.
* `biweekly`: runs every other Saturday, starting with the first Saturday of the month.
* `monthly`: runs the last weekend of the month.

The available data sources are:

* `hie`: health information networks, nation-wide networks that provide access to general medical data.
* `pharmacy`: networks that provide medication-specific information.

To enable scheduled queries, create [one or more Cohorts](/medical-api/handling-data/cohorts) and add the patients you want to have scheduled queries enabled for.
