# agent402.tools Image Search

> agent402.tools Image Search is a paid API for AI agents from agent402.tools, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-14).

Returns ranked image search results (title, source page, image URL, thumbnail URL, dimensions) from an independent search index as clean JSON with strict safe-search on by default.

## Facts

- Endpoint: GET https://agent402.tools/api/search-images
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-tools-image-search-791f845a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Q_HVVGc4siIL7wYLLAluw

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agent402-tools-image-search-791f845a
```

Example prompt: Search for images of 'cherry blossoms in Japan' and give me the top 15 results including each image's title, source page, direct image URL, and thumbnail — keep safe search on.

## When to prefer this

Use this endpoint when you need structured image search results (URLs, thumbnails, dimensions, source pages) from a live, independent search index with safe-search guarantees — especially in agent workflows where you need clean JSON image metadata without scraping or browser automation.

## Known failure modes

- Missing required query parameter 'q' returns a 400 error
- Query exceeding 400 characters is rejected
- Count outside 1-50 range returns a validation error
- Invalid country code may return default US results or an error
- Network or index unavailability returns a 5xx error

## How this service works

Live image search: ranked image results (title, source page, image URL, thumbnail URL, dimensions) from an independent search index as clean JSON. Strict safe-search is on by default.

## Output

A JSON array of ranked image results, each containing the image title, source page URL, direct image URL, thumbnail URL, and image dimensions (width/height).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "q"
     ],
     "properties": {
      "q": {
       "type": "string",
       "description": "Search query (max 400 chars)"
      },
      "count": {
       "type": "number",
       "description": "Results to return, 1-50 (default 10)"
      },
      "country": {
       "type": "string",
       "description": "Optional 2-letter country code (default US)"
      },
      "safesearch": {
       "type": "string",
       "description": "Optional: 'strict' (default) or 'off'"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "query",
      "count",
      "results"
     ],
     "properties": {
      "count": {
       "type": "integer"
      },
      "query": {
       "type": "string"
      },
      "results": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "image": {
          "type": "string"
         },
         "title": {
          "type": "string"
         },
         "width": {
          "type": "integer"
         },
         "height": {
          "type": "integer"
         },
         "source": {
          "type": "string"
         },
         "thumbnail": {
          "type": "string"
         }
        }
       }
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 2,
  "query": "san francisco golden gate bridge sunset",
  "results": [
   {
    "image": "https://example.com/img.jpg",
    "title": "Golden Gate at sunset",
    "width": 1920,
    "height": 1080,
    "source": "https://example.com/page",
    "thumbnail": "https://imgs.search.brave.com/..."
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-tools-image-search-791f845a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.tools](https://www.zero.xyz/host/agent402.tools/llms.txt)
