---
updatedAt: 2026-09-23T20:14:51.000Z
agentTools:
  projectIndex: https://mediroutes-api.readme.io/llms.txt
---

# Get Routes By Date Range

Get details for all routes for a selcted date range

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "V1",
    "title": "MediroutesAPI V1"
  },
  "paths": {
    "/api/v{version}/route/getRoutesByDateRange": {
      "get": {
        "tags": [
          "Route"
        ],
        "summary": "Get Routes By Date Range",
        "description": "Get details for all routes for a selcted date range",
        "operationId": "get-routes-by-date-range",
        "parameters": [
          {
            "name": "api_key",
            "in": "query",
            "description": "",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "start_date",
            "in": "query",
            "description": "",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "end_date",
            "in": "query",
            "description": "",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "version",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Authorization",
            "in": "header",
            "description": "access token",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Route",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/RouteModel"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/RouteModel"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/RouteModel"
                  }
                }
              },
              "text/xml": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/RouteModel"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Missing or unaligned data. Error message will be returned with response."
          },
          "403": {
            "description": "The api key used does not have access to this resource."
          }
        },
        "x-ai-description": "Returns every route across a start/end date range within the api_key's transportation provider.",
        "x-ai-when-to-use": "The user asks about routes over multiple days (a week's runs, a date span) instead of a single date.",
        "x-ai-side-effects": "read-only",
        "x-ai-returns": "Array of RouteModels across the range, each with route_id, date, driver/vehicle info, and stops.",
        "x-ai-required-permission": "dispatch",
        "x-ai-display": {
          "title": "Routes {start_date} to {end_date}",
          "key": "route_id",
          "columns": [
            {
              "field": "route_name",
              "header": "Route"
            },
            {
              "field": "employee_name",
              "header": "Driver"
            },
            {
              "field": "vehicle_name",
              "header": "Vehicle"
            },
            {
              "field": "scheduled_pull_out",
              "header": "Sch Pull-Out"
            },
            {
              "field": "actual_pull_out",
              "header": "Actual Pull-Out"
            },
            {
              "field": "scheduled_pull_in",
              "header": "Sch Pull-In"
            },
            {
              "field": "actual_pull_in",
              "header": "Actual Pull-In"
            },
            {
              "field": "total_miles",
              "header": "Total Miles"
            }
          ]
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://api.mediroutes.com"
    }
  ],
  "components": {
    "schemas": {
      "RouteModel": {
        "type": "object",
        "properties": {
          "route_id": {
            "format": "int32",
            "type": "integer"
          },
          "route_name": {
            "type": "string"
          },
          "employee_id": {
            "format": "int32",
            "type": "integer"
          },
          "employee_name": {
            "type": "string"
          },
          "vehicle_id": {
            "format": "int32",
            "type": "integer"
          },
          "vehicle_name": {
            "type": "string"
          },
          "scheduled_pull_out": {
            "format": "date-time",
            "type": "string"
          },
          "actual_pull_out": {
            "format": "date-time",
            "type": "string"
          },
          "pull_out_lat": {
            "format": "double",
            "type": "number"
          },
          "pull_out_lon": {
            "format": "double",
            "type": "number"
          },
          "scheduled_pull_in": {
            "format": "date-time",
            "type": "string"
          },
          "actual_pull_in": {
            "format": "date-time",
            "type": "string"
          },
          "pull_in_lat": {
            "format": "double",
            "type": "number"
          },
          "pull_in_lon": {
            "format": "double",
            "type": "number"
          },
          "from_garage_address": {
            "type": "string"
          },
          "from_garage_address1": {
            "type": "string"
          },
          "from_garage_city": {
            "type": "string"
          },
          "from_garage_state": {
            "type": "string"
          },
          "from_garage_zip": {
            "type": "string"
          },
          "from_garage_lat": {
            "format": "double",
            "type": "number"
          },
          "from_garage_lon": {
            "format": "double",
            "type": "number"
          },
          "to_garage_address": {
            "type": "string"
          },
          "to_garage_address1": {
            "type": "string"
          },
          "to_garage_city": {
            "type": "string"
          },
          "to_garage_state": {
            "type": "string"
          },
          "to_garage_zip": {
            "type": "string"
          },
          "to_garage_lat": {
            "format": "double",
            "type": "number"
          },
          "to_garage_lon": {
            "format": "double",
            "type": "number"
          },
          "odometer_begin": {
            "format": "int32",
            "type": "integer"
          },
          "odometer_end": {
            "format": "int32",
            "type": "integer"
          },
          "total_miles": {
            "format": "int32",
            "type": "integer"
          },
          "driver_signature": {
            "type": "string"
          },
          "drivers_license": {
            "type": "string"
          },
          "vin": {
            "type": "string"
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```