Search groups
GET
/v1/group-search
$0.0400 per request
Retrieve a list of LinkedIn Groups matching the specified search criteria.
Retrieve a list of LinkedIn Groups matching the specified search criteria.
Try it
Runs against the sandbox, so it is free and needs no API key. The response shape is identical to the live endpoint.
GET
Sandbox · free
/v1/group-search
Parameters
Billed equivalent
With a real key this call costs at Starter, less your tier discount.
Response
msQuery parameters
| Parameter | Example | Description |
|---|---|---|
page
|
1 | Page number for pagination. |
search
|
Sales | Keywords to search for. |
Code
curl 'https://api.enricho.io/v1/group-search?page=1' \
-H 'X-API-Key: YOUR_API_KEY'
import requests
response = requests.get(
"https://api.enricho.io/v1/group-search",
headers={"X-API-Key": "YOUR_API_KEY"},
params={
'page': '1',
},
timeout=30,
)
response.raise_for_status()
# Every response reports what it cost and what is left.
print(response.headers["X-Request-Cost"], response.headers["X-Balance-Remaining"])
print(response.json())
const params = new URLSearchParams({
"page": "1"
});
const response = await fetch(`https://api.enricho.io/v1/group-search?${params}`, {
headers: { 'X-API-Key': 'YOUR_API_KEY' },
});
if (!response.ok) {
throw new Error(`${response.status}: ${(await response.json()).error.message}`);
}
console.log(response.headers.get('X-Request-Cost'));
console.log(await response.json());
$client = new GuzzleHttp\Client();
$response = $client->get('https://api.enricho.io/v1/group-search', [
'headers' => ['X-API-Key' => 'YOUR_API_KEY'],
'query' => [
'page' => '1',
],
'timeout' => 30,
]);
echo $response->getHeaderLine('X-Request-Cost');
$data = json_decode((string) $response->getBody(), true);
Example response
{
"error": "`search` query param is required",
"status": 400,
"elements": null,
"query": [],
"pagination": null
}
Error response
Full list of codes on the errors page.
{
"error": {
"code": "insufficient_balance",
"message": "Your balance is too low for this request.",
"docs": "https://enricho.io/docs/errors#insufficient_balance"
}
}