Company Posts
Cost: 1
credit / successful request.
This endpoint retrieves posts from a LinkedIn company page based on the provided company URL. The response includes details about the company's posts, including text content, attachments, reactions, comments, and more.
Company Posts Endpoint
This endpoint allows you to get structured data of posts from a LinkedIn Company Profile.
Required attributes
- Name
url
- Type
- string
- Description
The LinkedIn company URL whose posts you want to retrieve.
Optional attributes
- Name
type
- Type
- string
- Description
Alters the type of posts to be fetched.
all
The default behavior. Fetches all types of posts.articles
- Fetch only articles posted by the company.documents
- Fetch only document posts.
- Name
cursor
- Type
- string
- Description
Use this parameter to paginate through results. Use the cursor returned from your previous request.
Request
curl --location --request POST 'https://api.datamagnet.co/api/v1/linkedin/company/posts' \
--header 'Authorization: Bearer {token}' \
--header 'Content-Type: application/json' \
--data-raw '{
"url": "https://www.linkedin.com/company/google",
"type": "all"
}'
Response
{
"cursor": "string",
"message": [
{
"attachments": [
{
"subtitle": "string",
"title": "string",
"type": "string",
"url": "string",
"urn": "string",
"duration": 0,
"image": "string",
"text": "string",
"navigation_context": {
"action_target": "string"
},
"website": "string"
}
],
"author": {
"logo": "string",
"name": "string",
"public_identifier": "string",
"type": "string",
"url": "string",
"urn": "string",
"background_image": null,
"first_name": "string",
"image_url": "string",
"last_name": "string",
"occupation": "string"
},
"comments": 0,
"created_at": "string",
"is_repost": true,
"likes": 0,
"mentions": [
{
"type": "string",
"urn": "string",
"name": "string"
}
],
"reactions": [
{
"count": 0,
"reaction_type": "string"
}
],
"shared_post": {
"attachments": [
{
"duration": 0,
"type": "string",
"url": "string",
"urn": "string",
"subtitle": "string",
"title": "string",
"image": "string",
"text": "string"
}
],
"author": {
"logo": "string",
"name": "string",
"public_identifier": "string",
"type": "string",
"url": "string",
"urn": "string",
"background_image": null,
"first_name": "string",
"image_url": null,
"last_name": "string",
"occupation": "string"
},
"comments": 0,
"created_at": "string",
"is_repost": true,
"likes": 0,
"mentions": [
{
"type": "string",
"urn": "string",
"name": "string"
}
],
"reactions": [
{
"count": 0,
"reaction_type": "string"
}
],
"shared_post": null,
"shares": 0,
"text": "string",
"url": "string",
"urn": "string"
},
"shares": 0,
"text": "string",
"url": "string",
"urn": "string"
}
],
"status": "string"
}
The Company Posts Model
The response contains structured data of company posts from LinkedIn.
Properties
- Name
cursor
- Type
- string
- Description
Pagination token for fetching more posts.
- Name
message
- Type
- array
- Description
List of posts from the company.
- Name
attachments
- Type
- array
- Description
List of media attachments in the post.
- Name
author
- Type
- object
- Description
Details about the post author.
- Name
comments
- Type
- integer
- Description
Number of comments on the post.
- Name
created_at
- Type
- string
- Description
Timestamp of when the post was created.
- Name
is_repost
- Type
- boolean
- Description
Indicates if the post is a repost.
- Name
likes
- Type
- integer
- Description
Number of likes on the post.
- Name
mentions
- Type
- array
- Description
List of mentions in the post.
- Name
reactions
- Type
- array
- Description
List of reactions to the post.
- Name
shared_post
- Type
- object
- Description
Details of the original post if this is a shared post.
- Name
shares
- Type
- integer
- Description
Number of times the post has been shared.
- Name
text
- Type
- string
- Description
Text content of the post.
- Name
url
- Type
- string
- Description
URL of the post.
- Name
urn
- Type
- string
- Description
URN of the post.
- Name
status
- Type
- string
- Description
Status of the API request.