Search
Overview
The Search API allows you to search for users, addresses, and service accounts in the Ethos network. It provides a unified search experience that returns results from different sources including profiles, Twitter accounts, and ENS names.
Endpoints
Search
Description: Searches for users in the Ethos network based on a query string. The search looks across profile names, usernames, Ethereum addresses, ENS names, and Twitter handles.
Authentication Required: No
Parameters
Query Parameters
query
string
Yes
Search query (2-100 characters)
limit
number
No
Maximum number of results to return (default: 10)
offset
number
No
Offset for pagination (default: 0)
Responses
Success Response
Code: 200 OK
ok
boolean
Success status
data
object
Response data container
data.values
array
Array of actor objects matching the search
data.values[].userkey
string
Userkey that uniquely identifies this actor
data.values[].avatar
string
URL to the actor's avatar
data.values[].name
string
Actor's display name
data.values[].username
string
Actor's username
data.values[].description
string
Actor's description or bio
data.values[].score
number
Actor's credibility score
data.values[].scoreXpMultiplier
number
Actor's XP multiplier based on score
data.values[].profileId
number
Actor's profile ID (if available)
data.values[].primaryAddress
string
Actor's primary Ethereum address (if available)
data.limit
number
Number of results returned
data.offset
number
Current pagination offset
data.total
number
Total number of results matching the query
Example
Request
Notes
The search results are sorted by multiple criteria in a cascading priority:
Profiles are ranked higher than non-profiles
Usernames exactly matching the query are prioritized
Real names exactly matching the query are prioritized
Results with usernames are ranked higher than those without
Results with real names are ranked higher than those without
Results with addresses are ranked higher than those without
Finally, results are sorted by credibility score
The search is case-insensitive and will match partial strings.
If no results are found but the query is a valid Ethereum address or ENS name, the API will attempt to look it up and return information about that address.
Duplicate results (same user found through different search methods) are deduplicated.
Last updated