---
title: "POST /v1/projects/{projectsId}/locations/{locationsId}/agents:search"
method: POST
path: "/v1/projects/{projectsId}/locations/{locationsId}/agents:search"
tags: ["projects"]
---

# POST /v1/projects/{projectsId}/locations/{locationsId}/agents:search

`POST /v1/projects/{projectsId}/locations/{locationsId}/agents:search`

## Request

- Base URL: `https://agentregistry.googleapis.com`
- URL: `https://agentregistry.googleapis.com/v1/projects/{projectsId}/locations/{locationsId}/agents:search`
- Auth: one of:
  - OAuth 2 and OAuth 2
    - Implicit: `https://accounts.google.com/o/oauth2/auth`
    - Scopes: `https://www.googleapis.com/auth/agentregistry.read-only`
    - Authorization code: `https://accounts.google.com/o/oauth2/auth`
    - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/agentregistry.read-only`
  - OAuth 2 and OAuth 2
    - Implicit: `https://accounts.google.com/o/oauth2/auth`
    - Scopes: `https://www.googleapis.com/auth/agentregistry.read-write`
    - Authorization code: `https://accounts.google.com/o/oauth2/auth`
    - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/agentregistry.read-write`
  - OAuth 2 and OAuth 2
    - Implicit: `https://accounts.google.com/o/oauth2/auth`
    - Scopes: `https://www.googleapis.com/auth/cloud-platform`
    - Authorization code: `https://accounts.google.com/o/oauth2/auth`
    - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/cloud-platform`
  - OAuth 2 and OAuth 2
    - Implicit: `https://accounts.google.com/o/oauth2/auth`
    - Scopes: `https://www.googleapis.com/auth/cloud-platform.read-only`
    - Authorization code: `https://accounts.google.com/o/oauth2/auth`
    - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/cloud-platform.read-only`

Searches Agents in a given project and location.

## Path parameters

- `projectsId` string, required
- `locationsId` string, required

## Query parameters

- `$.xgafv` '1' | '2'
- `access_token` string
- `alt` 'json' | 'media' | 'proto'
- `callback` string
- `fields` string
- `key` string
- `oauth_token` string
- `prettyPrint` boolean
- `quotaUser` string
- `uploadType` string
- `upload_protocol` string

## Request body

- SearchAgentsRequest: Message for searching Agents
  - `pageSize` integer: Optional. The maximum number of search results to return per page. The page size is capped at `100`, even if a larger value is specified. A negative value will result in an `INVALID_ARGUMENT` error. If unspecified or set to `0`, a default value of `20` will be used. The server may return fewer results than requested.
  - `pageToken` string: Optional. If present, retrieve the next batch of results from the preceding call to this method. `page_token` must be the value of `next_page_token` from the previous response. The values of all other method parameters, must be identical to those in the previous call.
  - `searchString` string: Optional. Search criteria used to select the Agents to return. If no search criteria is specified then all accessible Agents will be returned. Search expressions can be used to restrict results based upon searchable fields, where the operators can be used along with the suffix wildcard symbol `*`. See [instructions](https://docs.cloud.google.com/agent-registry/search-agents-and-tools) for more details. Allowed operators: `=`, `:`, `NOT`, `AND`, `OR`, and `()`. Searchable fields: | Field | `=` | `:` | `*` | Keyword Search | |--------------------|-----|-----|-----|----------------| | agentId | Yes | Yes | Yes | Included | | name | No | Yes | Yes | Included | | displayName | No | Yes | Yes | Included | | description | No | Yes | No | Included | | skills | No | Yes | No | Included | | skills.id | No | Yes | No | Included | | skills.name | No | Yes | No | Included | | skills.description | No | Yes | No | Included | | skills.tags | No | Yes | No | Included | | skills.examples | No | Yes | No | Included | Examples: * `agentId="urn:agent:projects-123:projects:123:locations:us-central1:aiplatform:reasoningEngines:1234"` to find the agent with the specified agent ID. * `name:important` to find agents whose name contains `important` as a word. * `displayName:works*` to find agents whose display name contains words that start with `works`. * `skills.tags:test` to find agents whose skills tags contain `test`. * `planner OR booking` to find agents whose metadata contains the words `planner` or `booking`.

## Response `200`

Successful response

- SearchAgentsResponse: Message for response to searching Agents
  - `agents` Agent[]: A list of Agents that match the `search_string`.
    - `agentId` string: Output only. A stable, globally unique identifier for agents.
    - `attributes` object: Output only. Attributes of the Agent. Valid values: * `agentregistry.googleapis.com/system/Framework`: {"framework": "google-adk"} - the agent framework used to develop the Agent. Example values: "google-adk", "langchain", "custom". * `agentregistry.googleapis.com/system/RuntimeIdentity`: {"principal": "principal://..."} - the runtime identity associated with the Agent. * `agentregistry.googleapis.com/system/RuntimeReference`: {"uri": "//..."} - the URI of the underlying resource hosting the Agent, for example, the Reasoning Engine URI.
    - `card` Card: Full Agent Card payload, often obtained from the A2A Agent Card.
      - `content` object: Output only. The content of the agent card.
      - `type` 'TYPE_UNSPECIFIED' | 'A2A_AGENT_CARD': Output only. The type of agent card.
    - `createTime` string, google-datetime: Output only. Create time.
    - `description` string: Output only. The description of the Agent, often obtained from the A2A Agent Card. Empty if Agent Card has no description.
    - `displayName` string: Output only. The display name of the agent, often obtained from the A2A Agent Card.
    - `location` string: Output only. The location where agent is hosted. The value is defined by the hosting environment (i.e. cloud provider).
    - `name` string: Identifier. The resource name of an Agent. Format: `projects/{project}/locations/{location}/agents/{agent}`.
    - `protocols` Protocol[]: Output only. The connection details for the Agent.
      - `interfaces` Interface[]: Output only. The connection details for the Agent.
        - `protocolBinding` 'PROTOCOL_BINDING_UNSPECIFIED' | 'JSONRPC' | 'GRPC' | 'HTTP_JSON': Required. The protocol binding of the interface.
        - `url` string: Required. The destination URL.
      - `protocolVersion` string: Output only. The version of the protocol, for example, the A2A Agent Card version.
      - `type` 'TYPE_UNSPECIFIED' | 'A2A_AGENT' | 'CUSTOM': Output only. The type of the protocol.
    - `skills` A2ASkill[]: Output only. Skills the agent possesses, often obtained from the A2A Agent Card.
      - `description` string: Output only. A more detailed description of the skill.
      - `examples` string[]: Output only. Example prompts or scenarios this skill can handle.
      - `id` string: Output only. A unique identifier for the agent's skill.
      - `name` string: Output only. A human-readable name for the agent's skill.
      - `tags` string[]: Output only. Keywords describing the skill.
    - `uid` string: Output only. A universally unique identifier for the Agent.
    - `updateTime` string, google-datetime: Output only. Update time.
    - `version` string: Output only. The version of the Agent, often obtained from the A2A Agent Card. Empty if Agent Card has no version or agent is not an A2A Agent.
  - `nextPageToken` string: If there are more results than those appearing in this response, then `next_page_token` is included. To get the next set of results, call this method again using the value of `next_page_token` as `page_token`.

## Changes

- **2026-11-18** `c5107f8b743d`: 4 info
  - the security scope `https://www.googleapis.com/auth/agentregistry.read-only` was added to the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/agentregistry.read-only` was added to the endpoint's security scheme `Oauth2c`
  - the security scope `https://www.googleapis.com/auth/cloud-platform.read-only` was removed from the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/cloud-platform.read-only` was removed from the endpoint's security scheme `Oauth2c`
- **2026-11-13** `e754d656dbb8`: 4 info
  - the security scope `https://www.googleapis.com/auth/agentregistry.read-only` was added to the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/agentregistry.read-only` was added to the endpoint's security scheme `Oauth2c`
  - the security scope `https://www.googleapis.com/auth/cloud-platform.read-only` was removed from the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/cloud-platform.read-only` was removed from the endpoint's security scheme `Oauth2c`
- …earlier changes not shown

[Operation history](https://skmtc.dev/google/apis/agentregistry/changes/v1/projects/:projectsId/locations/:locationsId/agents:search/post.md)

---

[API](https://skmtc.dev/google/apis/agentregistry.md) - [All operations](https://skmtc.dev/google/apis/agentregistry/llms.txt) - [OpenAPI document](https://skmtc.dev/google/apis/agentregistry/revisions/c5107f8b743d?raw)
