---
title: "Search Workouts"
method: GET
path: "/workouts/search"
tags: ["Workout"]
---

# Search Workouts

`GET /workouts/search`

## Request

- Base URL: `https://api.wodify.com/v1`
- URL: `https://api.wodify.com/v1/workouts/search`
- Auth: none declared. Required headers: `x-api-key`

Search Workouts given a query.

## Query parameters

- `sort` string
- `page` integer
- `page_size` integer
- `q` string, required

## Headers

- `x-api-key` string, required

## Response `200`

Workout found

- ResponseWorkouts: a list of Workouts or error message if applicable
  - `workouts` WorkoutsAPI[]: full Workout of the day
    - `id` integer, required: WOD (Header) ID
    - `name` string: Workout Name
    - `date` string, date: Date the Workout applies to
    - `internal_publish_date` string, date: Date the Workout should be published in Wodify. If no value is provided, will use the current date time.
    - `internal_publish_time` string, time: Time the Workout should be published in Wodify. If no value is provided, will use the current date time.
    - `should_publish_to_blog` boolean: Previously &#39;ShouldPublish&#39;
    - `blog_publish_date` string, date: Date the Workout should be published in to external blogs. Only applicable if IsPublishExternally is true. If publishing externally and no datetime is provided, the current datetime will be used.
    - `blog_publish_time` string, time: Time the Workout should be published in to external blogs. Only applicable if IsPublishExternally is true. If publishing externally and no datetime is provided, the current datetime will be used.
    - `comment` string: WODHeader&#39;s Comments
    - `linkified_comment` string: Linkified WODHeader Comments
    - `ownership_level_id` integer: Identifies the Ownership Level of the WOD Header record
    - `ownership_level` string: Ownership Level of the WOD Header record
    - `program_id` integer: Program Id
    - `program` string: Program name
    - `copied_from_workout_id` integer: Identifies the Workout this record was copied from, if this record was copied from another Workout
    - `copied_from_workout` string: name the Workout record this record was copied from, if this record was copied from another Workout
    - `secure_programming_enabled` boolean: Flag to control whether or not &#39;secure programming&#39; is enabled for the WOD or not (default value = false).
    - `created` Created: Record creation data.
      - `created_by_id` integer: Unique ID of the user that created the record.
      - `created_by` string: Name of the user that created the record.
      - `created_on_datetime` string, date-time: Datetime on which the record was created.
    - `updated` Updated: Update info
      - `updated_by_id` integer: Unique ID of the user that last updated the record.
      - `updated_by` string: Name of the user that most recently updated the record.
      - `updated_on_datetime` string, date-time: Datetime on which the record was last updated.
  - `pagination` Pagination: Pagination for API method responses.
    - `page` integer, required: Current page number.
    - `page_size` integer, required: Number of records per page.
    - `has_more` boolean, required: True if more records exist beyond the current page.
  - `wodify_validation_result` string: The purpose of this attribute is to save any UserException message, that is, and user friendly message that should be shown to the end user.

---

[API](https://skmtc.dev/wodify/apis/wod.md) - [All operations](https://skmtc.dev/wodify/apis/wod/llms.txt) - [OpenAPI document](https://skmtc.dev/wodify/apis/wod/revisions/edb6e9a0759b?raw)
