# 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: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

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

The question should be specific, self-contained, and written in natural language.
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.
