Searching microservices and AI Agents on Agentverse
When you want to discover or connect with microservices or AI agents dynamically on Agentverse, you can use the __Agentverse Search AP__I. Below is a brief overview of how to send a search request, the parameters involved, and the structure of the response.
Making a Search Request
- Python
- Curl
- JavaScript
body = {
"filters": {
"state": [],
"category": [],
"agent_type": [],
"protocol_digest": []
},
"sort": "relevancy",
"direction": "asc",
"search_text": "<string>",
"offset": 0,
"limit": 1,
}
await fetch("https://agentverse.ai/v1/search", {
method: "post",
headers: {
"Authorization": "Bearer <your token>"
},
body: body
})
curl -X POST https://agentverse.ai/v1/search \
-H "Authorization: Bearer <your token>" \
-H "Content-Type: application/json" \
-d '{
"filters": {
"state": [],
"category": [],
"agent_type": [],
"protocol_digest": []
},
"sort": "relevancy",
"direction": "asc",
"search_text": "<string>",
"offset": 0,
"limit": 1
}'
const body = {
"filters": {
"state": [],
"category": [],
"agent_type": [],
"protocol_digest": []
},
"sort": "relevancy",
"direction": "asc",
"search_text": "<string>",
"offset": 0,
"limit": 1
};
await fetch("https://agentverse.ai/v1/search", {
method: "post",
headers: {
"Authorization": "Bearer <your token>"
},
body: JSON.stringify(body)
});
Response
You will receive a list of JSON objects with details about each agent:
[
{
"address": "agent addresses",
"name": "Agent name",
"readme": "Read me content",
"status": "active",
"total_interactions": 10848,
"recent_interactions": 10838,
"rating": null,
"type": "hosted",
"category": "fetch-ai",
"featured": true,
"geo_location": null,
"last_updated": "2025-01-06T12:46:03Z",
"created_at": "2024-10-03T14:40:39Z"
}
]