> For the complete documentation index, see [llms.txt](https://docs.airops.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.airops.com/actions/workflow-concepts/workflow-steps/image-and-video/search-stock-images.md).

# Search Stock Images

The "Search Stock Images" step allows you to find stock images from AirOps' integration with stock image providers Getty Images and Unsplash.

{% hint style="info" %}
Note: This step is intended to be used with the Fetch Stock Image with ID step.

Search Stock Images step should be used first to return image options, and the selected image ID should be used to retrieve the final image using the Fetch Stock Image with ID step.
{% endhint %}

### How to Configure the Search Stock Images Step

Configuring the step requires setting the parameters shown below:

* **Provider**: Select Getty or Unsplash
* **Search Query**: Enter the keywords you want to use to search for relevant stock images. Be specific to get the most relevant results

### Output Format

The Search Stock Images step returns a JSON array of image results. Each result contains:

```json
[
  {
    "id": "1234567890",
    "preview_url": "https://example.com/images/id/1234567890/photo/image-description.jpg",
    "caption": "Description of the first image."
  },
  {
    "id": "0987654321",
    "preview_url": "https://example.com/images/id/0987654321/photo/another-image.jpg",
    "caption": "Description of the second image."
  },
  // Additional results appear here
]
```

### How to Use the Results

You can use the preview\_url to decide which image(s) you'd like to use in your content. Then, use the corresponding image IDs to retreive the image using the Fetch Stock Images with ID step.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.airops.com/actions/workflow-concepts/workflow-steps/image-and-video/search-stock-images.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
