Get a company's profile, size and industry
curl --request POST \
--url https://api.stophy.dev/v1/linkedin/company \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"company": "microsoft"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({company: 'microsoft'})
};
fetch('https://api.stophy.dev/v1/linkedin/company', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.stophy.dev/v1/linkedin/company"
payload = { "company": "microsoft" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"data": {
"company": {
"url": "<string>",
"id": "<string>",
"name": "<string>",
"industry": "<string>",
"size": "<string>",
"employees": 0,
"headquarters": "<string>",
"website": "<string>",
"followers": 0,
"description": "<string>",
"specialties": [
"<string>"
],
"founded": "<string>"
}
},
"creditsUsed": 123,
"requestId": "<string>"
}{
"success": false,
"error": {
"code": "cliSessionCompleted",
"message": "<string>",
"retryable": true,
"requestId": "<string>",
"retryAfterSeconds": 123
}
}{
"success": false,
"error": {
"code": "cliSessionCompleted",
"message": "<string>",
"retryable": true,
"requestId": "<string>",
"retryAfterSeconds": 123
}
}LinkedIn
LinkedIn company API
Call the LinkedIn company API to get name, industry, size, employees, headquarters and website, as JSON or markdown. 1 credit.
POST
/
v1
/
linkedin
/
company
Get a company's profile, size and industry
curl --request POST \
--url https://api.stophy.dev/v1/linkedin/company \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"company": "microsoft"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({company: 'microsoft'})
};
fetch('https://api.stophy.dev/v1/linkedin/company', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.stophy.dev/v1/linkedin/company"
payload = { "company": "microsoft" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"data": {
"company": {
"url": "<string>",
"id": "<string>",
"name": "<string>",
"industry": "<string>",
"size": "<string>",
"employees": 0,
"headquarters": "<string>",
"website": "<string>",
"followers": 0,
"description": "<string>",
"specialties": [
"<string>"
],
"founded": "<string>"
}
},
"creditsUsed": 123,
"requestId": "<string>"
}{
"success": false,
"error": {
"code": "cliSessionCompleted",
"message": "<string>",
"retryable": true,
"requestId": "<string>",
"retryAfterSeconds": 123
}
}{
"success": false,
"error": {
"code": "cliSessionCompleted",
"message": "<string>",
"retryable": true,
"requestId": "<string>",
"retryAfterSeconds": 123
}
}- Endpoint:
linkedin.company - Returns:
datahascompany. - Cost: 1 credit. Failed calls cost nothing.
- Paging: No.
Example
import { Stophy } from "stophy";
const stophy = new Stophy({ apiKey: process.env.STOPHY_API_KEY });
const result = await stophy.linkedin.company({ company: "microsoft" });
console.log(result.data.company);
from stophy import Stophy
stophy = Stophy() # reads STOPHY_API_KEY
result = stophy.linkedin.company(company="microsoft")
print(result["data"]["company"])
curl -X POST https://api.stophy.dev/v1/linkedin/company \
-H "Authorization: Bearer $STOPHY_API_KEY" \
-H "content-type: application/json" \
-d '{"company":"microsoft"}'
stophy linkedin company microsoft
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json