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

# Execute a search on a saved search

> Search awards using a saved search query

## Request

<ParamField path="id" type="string" required>
  ID of the saved search to execute
</ParamField>

<ParamField query="per" type="integer" default={50}>
  Number of results per page (max: 100)
</ParamField>

<ParamField query="page" type="integer" default={1}>
  Page number for pagination
</ParamField>

<ParamField query="sort" type="string">
  Which field to use for sorting. Must be one of: `relevance`, `period_of_performance_start_date`, `last_modified_date`, or `awarded_date`. Default: `relevance`
</ParamField>

<ParamField query="sort_direction" type="string" default="desc">
  Sort direction for results (`asc` or `desc`)
</ParamField>

<ParamField query="start_date" type="string">
  Start date for filtering results (ISO 8601 format). Default: uses saved search relative date range or 1 day ago
</ParamField>

<ParamField query="end_date" type="string">
  End date for filtering results (ISO 8601 format). Default: uses saved search relative date range or current date
</ParamField>

<ParamField query="date_range_param" type="string">
  Which date field to use for date range filtering. Must be one of: `period_of_performance_start_date`, `last_modified_date`, or `awarded_date`. Default: `period_of_performance_start_date`
</ParamField>

## Response

<ResponseField name="results" type="array">
  Array of award objects matching the search criteria

  <Expandable title="Award Properties">
    <ResponseField name="id" type="string">
      Unique identifier for the award
    </ResponseField>

    <ResponseField name="uniqueKey" type="string">
      Unique identifier key for the award (e.g., FPDS PIID)
    </ResponseField>

    <ResponseField name="identifier" type="string">
      External identifier for the award
    </ResponseField>

    <ResponseField name="title" type="string">
      Title of the award
    </ResponseField>

    <ResponseField name="description" type="string">
      Description of the award
    </ResponseField>

    <ResponseField name="aiSummary" type="string">
      AI-generated summary of the award
    </ResponseField>

    <ResponseField name="category" type="string">
      Award category (e.g., "contract", "grant")
    </ResponseField>

    <ResponseField name="url" type="string">
      Govly web URL for viewing the award
    </ResponseField>

    <ResponseField name="externalUrl" type="string">
      URL to the original government source
    </ResponseField>

    <ResponseField name="awardedDate" type="string">
      ISO 8601 date when the award was made
    </ResponseField>

    <ResponseField name="lastModifiedDate" type="string">
      ISO 8601 date when the award was last modified
    </ResponseField>

    <ResponseField name="createdAt" type="string">
      ISO 8601 timestamp when the record was created in Govly
    </ResponseField>

    <ResponseField name="updatedAt" type="string">
      ISO 8601 timestamp when the record was last updated in Govly
    </ResponseField>

    <ResponseField name="externalSolicitationDate" type="string">
      ISO 8601 date of the related solicitation
    </ResponseField>

    <ResponseField name="periodOfPerformanceStartDate" type="string">
      ISO 8601 date when the period of performance begins
    </ResponseField>

    <ResponseField name="periodOfPerformanceEndDate" type="string">
      ISO 8601 date when the period of performance ends
    </ResponseField>

    <ResponseField name="periodOfPerformancePotentialEndDate" type="string">
      ISO 8601 date of the potential end date including options
    </ResponseField>

    <ResponseField name="awardAmount" type="number">
      Total award amount in USD
    </ResponseField>

    <ResponseField name="ceilingAmount" type="number">
      Maximum potential value of the award in USD
    </ResponseField>

    <ResponseField name="obligatedAmount" type="number">
      Amount obligated in USD
    </ResponseField>

    <ResponseField name="paidAmount" type="number">
      Amount paid in USD
    </ResponseField>

    <ResponseField name="paymentStructure" type="string">
      Payment structure type (e.g., "Fixed Price", "Cost Reimbursement")
    </ResponseField>

    <ResponseField name="acquisitionType" type="string">
      Type of acquisition
    </ResponseField>

    <ResponseField name="acquisitionCategory" type="string">
      Category of acquisition
    </ResponseField>

    <ResponseField name="extentCompeted" type="string">
      Extent of competition (e.g., "Full and Open Competition", "Not Competed")
    </ResponseField>

    <ResponseField name="naics" type="string">
      NAICS code for the award
    </ResponseField>

    <ResponseField name="psc" type="string">
      Product Service Code (PSC)
    </ResponseField>

    <ResponseField name="numberOfBidsReceived" type="integer">
      Number of bids received for the award
    </ResponseField>

    <ResponseField name="setAside" type="object">
      Set-aside information for the award

      <Expandable title="Properties">
        <ResponseField name="code" type="string">Set-aside code</ResponseField>
        <ResponseField name="name" type="string">Set-aside name (e.g., "Small Business Set-Aside")</ResponseField>
      </Expandable>
    </ResponseField>

    <ResponseField name="parentUniqueKey" type="string">
      Unique key of the parent award (for modifications)
    </ResponseField>

    <ResponseField name="externalParentIdentifier" type="string">
      External identifier of the parent award
    </ResponseField>

    <ResponseField name="externalSolicitationId" type="string">
      External ID of the related solicitation
    </ResponseField>

    <ResponseField name="recipientUniqueKey" type="string">
      Unique key of the award recipient (UEI)
    </ResponseField>

    <ResponseField name="recipientParentUniqueKey" type="string">
      Unique key of the recipient's parent organization
    </ResponseField>

    <ResponseField name="recipientCageCode" type="string">
      CAGE code of the recipient
    </ResponseField>

    <ResponseField name="recipient" type="object">
      Information about the award recipient

      <Expandable title="Properties">
        <ResponseField name="uniqueKey" type="string">Unique identifier for the recipient (UEI)</ResponseField>
        <ResponseField name="name" type="string">Recipient organization name</ResponseField>
        <ResponseField name="cageCode" type="string">CAGE code</ResponseField>

        <ResponseField name="address" type="object">
          Recipient address

          <Expandable title="Properties">
            <ResponseField name="streetAddress" type="string">Street address line 1</ResponseField>
            <ResponseField name="streetAddress2" type="string">Street address line 2</ResponseField>
            <ResponseField name="streetAddress3" type="string">Street address line 3</ResponseField>
            <ResponseField name="city" type="string">City</ResponseField>
            <ResponseField name="region" type="string">State or region</ResponseField>
            <ResponseField name="postalCode" type="string">Postal code</ResponseField>
            <ResponseField name="country" type="string">Country</ResponseField>
          </Expandable>
        </ResponseField>

        <ResponseField name="aiHqAddress" type="string | object">AI-enriched headquarters address</ResponseField>
        <ResponseField name="aiUrl" type="string">AI-enriched website URL</ResponseField>
      </Expandable>
    </ResponseField>

    <ResponseField name="buyer" type="object">
      Information about the buying organization

      <Expandable title="Properties">
        <ResponseField name="id" type="string">Organization ID</ResponseField>
        <ResponseField name="name" type="string">Organization name</ResponseField>
        <ResponseField name="hierarchy" type="string[]">Array of organization names from highest to lowest level</ResponseField>
        <ResponseField name="hierarchyIds" type="string[]">Array of organization IDs corresponding to the hierarchy</ResponseField>
        <ResponseField name="aiUrl" type="string">AI-enriched organization website</ResponseField>
        <ResponseField name="aiHqAddress" type="string | object">AI-enriched headquarters address</ResponseField>
      </Expandable>
    </ResponseField>

    <ResponseField name="buyingOffice" type="object">
      Information about the buying office

      <Expandable title="Properties">
        <ResponseField name="id" type="string">Office ID</ResponseField>
        <ResponseField name="name" type="string">Office name</ResponseField>
        <ResponseField name="hierarchy" type="string[]">Array of organization names from highest to lowest level</ResponseField>
        <ResponseField name="hierarchyIds" type="string[]">Array of organization IDs corresponding to the hierarchy</ResponseField>
        <ResponseField name="aiUrl" type="string">AI-enriched organization website</ResponseField>
        <ResponseField name="aiHqAddress" type="string | object">AI-enriched headquarters address</ResponseField>
      </Expandable>
    </ResponseField>

    <ResponseField name="funder" type="object">
      Information about the funding organization

      <Expandable title="Properties">
        <ResponseField name="id" type="string">Organization ID</ResponseField>
        <ResponseField name="name" type="string">Organization name</ResponseField>
        <ResponseField name="hierarchy" type="string[]">Array of organization names from highest to lowest level</ResponseField>
        <ResponseField name="hierarchyIds" type="string[]">Array of organization IDs corresponding to the hierarchy</ResponseField>
        <ResponseField name="aiUrl" type="string">AI-enriched organization website</ResponseField>
        <ResponseField name="aiHqAddress" type="string | object">AI-enriched headquarters address</ResponseField>
      </Expandable>
    </ResponseField>

    <ResponseField name="fundingOffice" type="object">
      Information about the funding office

      <Expandable title="Properties">
        <ResponseField name="id" type="string">Office ID</ResponseField>
        <ResponseField name="name" type="string">Office name</ResponseField>
        <ResponseField name="hierarchy" type="string[]">Array of organization names from highest to lowest level</ResponseField>
        <ResponseField name="hierarchyIds" type="string[]">Array of organization IDs corresponding to the hierarchy</ResponseField>
        <ResponseField name="aiUrl" type="string">AI-enriched organization website</ResponseField>
        <ResponseField name="aiHqAddress" type="string | object">AI-enriched headquarters address</ResponseField>
      </Expandable>
    </ResponseField>

    <ResponseField name="placeOfManufacture" type="string">
      Place of manufacture designation
    </ResponseField>

    <ResponseField name="placeOfPerformance" type="object">
      Location where the work is performed

      <Expandable title="Properties">
        <ResponseField name="city" type="string">City</ResponseField>
        <ResponseField name="region" type="string">State or region</ResponseField>
        <ResponseField name="postalCode" type="string">Postal code</ResponseField>
        <ResponseField name="country" type="string">Country</ResponseField>
        <ResponseField name="county" type="string">County</ResponseField>
        <ResponseField name="congressionalCode" type="string">Congressional district code</ResponseField>
      </Expandable>
    </ResponseField>

    <ResponseField name="highlights" type="object">
      Object containing highlighted text snippets from fields that matched the saved search criteria

      <Expandable title="Properties">
        <ResponseField name="[field_name]" type="string[]">
          Array of text snippets from the field containing highlighted matches. The field name will be the name of the field that contained matches (e.g., `title`, `description`, etc.)
        </ResponseField>
      </Expandable>
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="meta" type="object">
  Pagination metadata

  <Expandable title="Properties">
    <ResponseField name="currentPage" type="integer">
      Current page number
    </ResponseField>

    <ResponseField name="per" type="integer">
      Number of items per page
    </ResponseField>

    <ResponseField name="total" type="integer">
      Total number of items
    </ResponseField>

    <ResponseField name="totalPages" type="integer">
      Total number of pages
    </ResponseField>
  </Expandable>
</ResponseField>

## Example Requests

### Basic search execution

```bash theme={null}
curl "https://app.govly.com/api/enterprise/awards/saved_searches/abc123/search" \
  -H "X-API-KEY: your_api_key"
```

### With date range override

```bash theme={null}
curl "https://app.govly.com/api/enterprise/awards/saved_searches/abc123/search?start_date=2024-01-01&end_date=2024-01-31" \
  -H "X-API-KEY: your_api_key"
```

### With sorting and pagination

```bash theme={null}
curl "https://app.govly.com/api/enterprise/awards/saved_searches/abc123/search?sort=awarded_date&sort_direction=desc&per=25&page=2" \
  -H "X-API-KEY: your_api_key"
```
