# Search Images — Getty Images

> Search the Getty Images library by keyword with optional filters for image type, orientation, and license model. Returns image metadata including IDs, titles, captions, and display URLs. See the documentation

- Key: `getty_images-search-images`
- Type: Action (Read-only)
- Version: 0.0.2
- App: Getty Images (`getty_images`) — https://pipedream.com/apps/getty-images.md
- This page (HTML): https://pipedream.com/apps/getty-images/actions/search-images
- Hints: read-only · open-world
- Source: https://github.com/PipedreamHQ/pipedream/blob/master/components/getty_images/actions/search-images/search-images.mjs

## Description

Search the Getty Images library by keyword with optional filters for image type, orientation, and license model. Returns image metadata including IDs, titles, captions, and display URLs. [See the documentation](https://developers.gettyimages.com/docs/)

## Props

| Prop | Type | Required | Description |
|---|---|---|---|
| `phrase` | `string` | Yes | Keywords or a phrase to search for, e.g. golden gate bridge or business team meeting. |
| `imageType` | `string` | No | Scope the search to creative, editorial, or all images. Creative images are royalty-free or rights-managed stock; editorial covers news, sports, and entertainment. |
| `orientation` | `string` | No | Filter results by image orientation. |
| `licenseModel` | `string` | No | Filter creative images by license type. Only applies when Image Type is set to creative — ignored for editorial or general searches. |
| `sortOrder` | `string` | No | Order in which to return search results. |
| `pageSize` | `integer` | No | Number of results to return per page (1–100). Defaults to 30. |
| `includeDownloadSizes` | `boolean` | No | Include largest_downloads in each result. Required to obtain product types for the Download Image action. Requires a valid OAuth access token with download permissions. |

## Run it

**MCP**

```ts
import { Client } from "@modelcontextprotocol/sdk/client/index.js"
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js"
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const accessToken = await pd.rawAccessToken

const transport = new StreamableHTTPClientTransport(
  new URL("https://remote.mcp.pipedream.net/v3"),
  {
    requestInit: {
      headers: {
        Authorization: `Bearer ${accessToken}`,
        "x-pd-project-id": process.env.PIPEDREAM_PROJECT_ID!,
        "x-pd-environment": "production",
        "x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
        "x-pd-app-slug": "getty_images",
      },
    },
  },
)

const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)

const { tools } = await mcp.listTools()

// listTools() hands your model this tool's input schema, so it can
// fill the arguments itself:
const result = await mcp.callTool({
  name: "getty_images-search-images",
  arguments: {
    phrase: "Search Phrase",
    imageType: "Image Type",
  },
})
```

**TypeScript**

```ts
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "getty_images-search-images",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    getty_images: { authProvisionId: "apn_xxxxxxx" },
    phrase: "Search Phrase",
    imageType: "Image Type",
  },
})

console.log(result)
```

**cURL**

```bash
curl -X POST https://api.pipedream.com/v1/connect/{project_id}/actions/run \
  -H "Content-Type: application/json" \
  -H "X-PD-Environment: production" \
  -H "Authorization: Bearer {access_token}" \
  -d '{
    "external_user_id": "{external_user_id}",
    "id": "getty_images-search-images",
    "configured_props": {
      "getty_images": { "authProvisionId": "apn_xxxxxxx" },
      "phrase": "Search Phrase",
      "imageType": "Image Type"
    }
  }'
```

---

- App: https://pipedream.com/apps/getty-images.md · All apps: https://pipedream.com/apps
