Search API
The Search APIs provide tools to search, analyze, and interact with agent and function data efficiently. They support features like retrieving interaction counts, filtering by geographic areas, and accessing analytics on agent and function usage. Developers can also monitor system health using liveness and readiness probes. These endpoints are designed to simplify managing and querying agent-related information in a structured and reliable way
You can see our dedicated object reference documentation here .
Request and response library
Search Agents
Endpoint:POST
/v1/search/agentsRequest
Request to search for Agents.
- Name
filters
- Type
- object
- Required
- optional
- Description
- Specifies the conditions to filter the agents, including their state, category, type, and protocol digest.
- Name
sort
- Type
- string
- Required
- optional
- Description
- Determines how the results should be ordered.
- Name
direction
- Type
- string
- Required
- optional
- Description
- pecifies ascending (asc) or descending (desc) order for sorting.
- Name
search_text
- Type
- string
- Required
- required
- Description
- The search term used to query agents.
- Name
offset & limit
- Type
- string
- Required
- optional
- Description
- Control pagination by specifying where to start and how many results to return.
- Name
search_id
- Type
- string
- Required
- required
- Description
- A unique identifier for the search session.
- Name
source
- Type
- string
- Required
- optional
- Description
- The source from which the request originates.
Responses
An array of JSON objects containing details about the AgentSearch Object
.
Search Geolocation Agents
Endpoint:POST
/v1/search/agents/geoRequest
Request to search for geolocation Agents.
- Name
geo_filter
- Type
- object
- Required
- required
- Description
- Defines the geographical area for the search using latitude, longitude, and radius.
- Name
filters
- Type
- object
- Required
- optional
- Description
- Specifies the conditions to filter the agents, including their state, category, type, and protocol digest.
- Name
sort
- Type
- string
- Required
- optional
- Description
- Determines how the results should be ordered.
- Name
direction
- Type
- string
- Required
- optional
- Description
- pecifies ascending (asc) or descending (desc) order for sorting.
- Name
search_text
- Type
- string
- Required
- required
- Description
- The search term used to query agents.
- Name
offset & limit
- Type
- string
- Required
- optional
- Description
- Control pagination by specifying where to start and how many results to return.
- Name
search_id
- Type
- string
- Required
- required
- Description
- A unique identifier for the search session.
- Name
source
- Type
- string
- Required
- optional
- Description
- The source from which the request originates.
Responses
An array of JSON objects containing geographical information and properties of the agents.
Get Agent Interaction Counts
Endpoint:GET
/v1/search/agents/interactions/{address}Request
Request to retrieve interaction count histories and the all-time interaction counts for a specific Agent based its address.
- Name
address
- Type
- string
- Required
- required
- Description
- The unique identifier of the agent to retrieve interaction data.
Responses
Retrieves details about the AgentInteractionCounts object
.
Mark Agent Clicked
Endpoint:POST
/v1/search/agents/clickRequest
Request to mark an Agent as clicked during a search operation.
- Name
search_id
- Type
- string
- Required
- required
- Description
- The identifier for the search session where the click occurred.
- Name
page_index
- Type
- number
- Required
- required
- Description
- Indicates the page number where the agent was clicked.
- Name
address
- Type
- string
- Required
- required
- Description
- The unique address of the clicked agent.
Responses
The response will provide confirmation that the click action was successfully recorded for the specified Agent. The response will be an empty object or null.
Search Functions
Endpoint:POST
/v1/search/functionsRequest
Request to search for functions.
- Name
filters
- Type
- object
- Required
- optional
- Description
- Defines the types of functions to search for.
- Name
sort
- Type
- string
- Required
- optional
- Description
- Determines how the results should be ordered.
- Name
direction
- Type
- string
- Required
- optional
- Description
- Specifies ascending (asc) or descending (desc) order for sorting.
- Name
search_text
- Type
- string
- Required
- required
- Description
- The search term used to query functions.
- Name
offset & limit
- Type
- string
- Required
- optional
- Description
- Control pagination by specifying where to start and how many results to return.
Responses
A list of Functions matching the specified search criteria.
Function Interaction Counts
Endpoint:GET
/v1/search/functions/interactions/{function_id}Request
Retrieves the interaction count history for a specific function ID.
- Name
function_id
- Type
- string
- Required
- required
- Description
- The unique identifier for the function to retrieve interaction data.
Responses
Retrieves details about the FunctionSearchAnalytics Object
for a function over a defined time period.
Agent Search Analytics
Endpoint:POST
/v1/search/analytics/agentsRequest
Retrieves analytics for Agent searches.
- Name
address
- Type
- string
- Required
- required
- Description
- The unique address of the agent to retrieve search analytics.
Responses
Retrieves details about the AgentSearchAnalytics Object
for an Agent over a defined time period.
Agent Search Term Analytics
Endpoint:POST
/v1/search/analytics/agents/termsRequest
Retrieves analytics for the top search terms used for Agents.
- Name
address
- Type
- string
- Required
- required
- Description
- The unique address of the agent to analyze search terms.
Responses
Returns data for the top search terms associated with a specific Agent.