curl --request POST \
--url https://bee.theswarm.com/v3/profiles/search \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"query": {
"match": {
"profile_info.job_title": {
"query": "Data Scientist"
}
}
},
"limit": 100,
"pagination_token": "<string>",
"stable_pagination": false,
"in_network_only": false
}
'{
"ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"total_count": 123,
"pagination_token": "<string>"
}Search Profiles
Search for profiles using OpenSearch DSL queries. Returns a list of profile IDs that can be passed to the Fetch Profile endpoint.
curl --request POST \
--url https://bee.theswarm.com/v3/profiles/search \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"query": {
"match": {
"profile_info.job_title": {
"query": "Data Scientist"
}
}
},
"limit": 100,
"pagination_token": "<string>",
"stable_pagination": false,
"in_network_only": false
}
'{
"ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"total_count": 123,
"pagination_token": "<string>"
}"query" with your OpenSearch DSL query. The response contains a list of profile IDs that can be used in the Fetch Profile endpoint.{
"ids": [
"00007d1c-a048-480a-8c14-1f33a161a3db",
"0000ad61-2eda-4061-a20e-793d41016f03"
],
"total_count": 125867,
"pagination_token": "eyJzZWFyY2hfYWZ0ZXIiOlt7ImZpZWxkIjoiX3Njb3JlIiwidmFsdWUiOjF9LHsiZmllbGQiOiJwcm9maWxlX2luZm8uaWQiLCJ2YWx1ZSI6IjAwMDE2MTU4LWYyY2EtNDYzZC05YWEzLTIyOWZkMzk0ZWQ0MSJ9XX0="
}
Pagination
The response includes apagination_token to fetch the next page. See Pagination for full details. The from parameter must be >= 0.
paginationToken, totalCount, and inNetworkOnly. See the Migrating to v3 guide.Authorizations
Body
Search query in the ElasticSearch Query DSL format. Find mapping here
{
"match": {
"profile_info.job_title": { "query": "Data Scientist" }
}
}Limit the number of results. If you want to use stable_pagination this parameter must be set to 1000
0 <= x <= 1000Pagination token received in the previous response
When set to true, ensures that pagination results remain consistent, even if the underlying data changes during retrieval. This is useful for retrieving large result sets reliably across multiple requests
When set to true, restricts search results to profiles that are connected to your team's network. This parameter filters the query to only return profiles that have established connections with connectors of your organization.
Was this page helpful?

