> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://you.com/docs/llms.txt.
> For full documentation content, see https://you.com/docs/llms-full.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://you.com/docs/_mcp/server.

# Images

GET https://image-search.ydc-index.io/images

Returns the URLs of images associated to the user query.

<Note> **NOTE**: The You.com Image Search is currently available to exclusive early access partners.
To express interest in early access, please reach out via email to [api@you.com](mailto:api@you.com). </Note>

Reference: https://you.com/docs/custom-solutions/images/images

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: images
  version: 1.0.0
paths:
  /images:
    get:
      operationId: returns-a-list-of-images-hits-for-query
      summary: Returns a list of images hits for query
      description: >-
        Returns the URLs of images associated to the user query.


        <Note> **NOTE**: The You.com Image Search is currently available to
        exclusive early access partners.

        To express interest in early access, please reach out via email to
        [api@you.com](mailto:api@you.com). </Note>
      tags:
        - ''
      parameters:
        - name: q
          in: query
          description: >-
            The search query used to retrieve relevant image results from the
            web.
          required: true
          schema:
            type: string
            default: The image you are searching for
        - name: X-API-Key
          in: header
          description: >-
            A unique API Key is required to authorize API access. For details,
            see how to [get your API Key](/quickstart#get-your-api-key).
          required: true
          schema:
            type: string
      responses:
        '200':
          description: A JSON object containing an array of image search results.
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/returnsAListOfImagesHitsForQuery_Response_200
        '401':
          description: Unauthorized. Problems with API key.
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/ReturnsAListOfImagesHitsForQueryRequestUnauthorizedError
        '403':
          description: Forbidden. API key lacks scope for this path.
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/ReturnsAListOfImagesHitsForQueryRequestForbiddenError
        '500':
          description: >-
            Internal Server Error during authentication/authorization
            middleware.
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/ReturnsAListOfImagesHitsForQueryRequestInternalServerError
servers:
  - url: https://image-search.ydc-index.io
    description: Production
components:
  schemas:
    ImagesGetResponsesContentApplicationJsonSchemaImagesResultsItems:
      type: object
      properties:
        title:
          type: string
          description: The title of the image result.
        page_url:
          type: string
          description: The URL of the webpage containing the image.
        image_url:
          type: string
          description: The direct URL to the image.
      title: ImagesGetResponsesContentApplicationJsonSchemaImagesResultsItems
    ImagesGetResponsesContentApplicationJsonSchemaImages:
      type: object
      properties:
        results:
          type: array
          items:
            $ref: >-
              #/components/schemas/ImagesGetResponsesContentApplicationJsonSchemaImagesResultsItems
      title: ImagesGetResponsesContentApplicationJsonSchemaImages
    ImagesGetResponsesContentApplicationJsonSchemaMetadata:
      type: object
      properties:
        query:
          type: string
          description: Returns the original query submitted.
        search_uuid:
          type: string
          description: The unique identifier for the search request.
      title: ImagesGetResponsesContentApplicationJsonSchemaMetadata
    returnsAListOfImagesHitsForQuery_Response_200:
      type: object
      properties:
        images:
          $ref: >-
            #/components/schemas/ImagesGetResponsesContentApplicationJsonSchemaImages
        metadata:
          $ref: >-
            #/components/schemas/ImagesGetResponsesContentApplicationJsonSchemaMetadata
      title: returnsAListOfImagesHitsForQuery_Response_200
    ReturnsAListOfImagesHitsForQueryRequestUnauthorizedError:
      type: object
      properties:
        detail:
          type: string
          description: Error detail message.
      title: ReturnsAListOfImagesHitsForQueryRequestUnauthorizedError
    ReturnsAListOfImagesHitsForQueryRequestForbiddenError:
      type: object
      properties:
        detail:
          type: string
      title: ReturnsAListOfImagesHitsForQueryRequestForbiddenError
    ReturnsAListOfImagesHitsForQueryRequestInternalServerError:
      type: object
      properties:
        detail:
          type: string
      title: ReturnsAListOfImagesHitsForQueryRequestInternalServerError
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: >-
        A unique API Key is required to authorize API access. For details, see
        how to [get your API Key](/quickstart#get-your-api-key).

```

## Examples



**Response**

```json
{
  "images": {
    "results": [
      {
        "title": "8 Test Day Tips for Success",
        "page_url": "https://www.c2educate.com/8-test-day-tips-success/",
        "image_url": "https://s26378.pcdn.co/wp-content/uploads/sat-or-act-test-1030x519.jpg"
      }
    ]
  },
  "metadata": {
    "query": "The image you are searching for",
    "search_uuid": "c6c8f8cf-b6fc-4248-9828-24fc0dcf7be5"
  }
}
```

**SDK Code**

```python
import requests

url = "https://image-search.ydc-index.io/images"

querystring = {"q":"The image you are searching for"}

headers = {"X-API-Key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript
const url = 'https://image-search.ydc-index.io/images?q=The+image+you+are+searching+for';
const options = {method: 'GET', headers: {'X-API-Key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://image-search.ydc-index.io/images?q=The+image+you+are+searching+for"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("X-API-Key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://image-search.ydc-index.io/images?q=The+image+you+are+searching+for")
  .header("X-API-Key", "<apiKey>")
  .asString();
```

```csharp
using RestSharp;

var client = new RestClient("https://image-search.ydc-index.io/images?q=The+image+you+are+searching+for");
var request = new RestRequest(Method.GET);
request.AddHeader("X-API-Key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["X-API-Key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://image-search.ydc-index.io/images?q=The+image+you+are+searching+for")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```