Get group
GET
/v1/group
$0.0400 per request
Get the LinkedIn group.
Get the LinkedIn group. Required at least one of the query parameters
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
Parameters
Billed equivalent
With a real key this call costs at Starter, less your tier discount.
Response
msQuery parameters
At least one of
url, groupId is required.
| Parameter | Example | Description |
|---|---|---|
groupId
required
|
1898033 | ID of the LinkedIn group (optional) |
url
required
|
https://www.linkedin.com/groups/1898033/ | URL of the LinkedIn group (optional) |
Code
curl 'https://api.enricho.io/v1/group?groupId=1898033&url=https%3A%2F%2Fwww.linkedin.com%2Fgroups%2F1898033%2F' \
-H 'X-API-Key: YOUR_API_KEY'
import requests
response = requests.get(
"https://api.enricho.io/v1/group",
headers={"X-API-Key": "YOUR_API_KEY"},
params={
'groupId': '1898033',
'url': 'https://www.linkedin.com/groups/1898033/',
},
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({
"groupId": "1898033",
"url": "https://www.linkedin.com/groups/1898033/"
});
const response = await fetch(`https://api.enricho.io/v1/group?${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', [
'headers' => ['X-API-Key' => 'YOUR_API_KEY'],
'query' => [
'groupId' => '1898033',
'url' => 'https://www.linkedin.com/groups/1898033/',
],
'timeout' => 30,
]);
echo $response->getHeaderLine('X-Request-Cost');
$data = json_decode((string) $response->getBody(), true);
Example response
{
"error": "Please provide correct `groupId` or `url` query param",
"status": 400,
"element": null,
"query": []
}
Error response
Full list of codes on the errors page.
{
"error": {
"code": "invalid_params",
"message": "group requires at least one of: url, groupId.",
"docs": "https://enricho.io/docs/errors#invalid_params",
"required_one_of": [
"url",
"groupId"
]
}
}