urlstringobrigatório
Full URL of the LinkedIn post to list comments for.
https://api.sandbase.ai/v1/api/linkedin/post-commentsList comments on a LinkedIn post - full text, commenter name/URL/job title, timestamps, and engagement.
Sua saída aparecerá aqui
Preencha as entradas e clique em Executar.
Returns the comments on a LinkedIn post, including comment text, commenter details, timestamps and like and reply counts. It needs the full URL of the post in the url parameter.
curl -X POST "https://api.sandbase.ai/v1/api/linkedin/post-comments" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://www.linkedin.com/posts/stripe_philip-kl%C3%B6ckner-in-conversation-with-conor-activity-7477791740645564416-tIbZ", "limit": 10}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
url | string | Yes | Full URL of the LinkedIn post to list comments for. |
limit | integer | No | Maximum number of comments to return. |
postedLimit | string | No | Only return comments posted within this window (default any). |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"items": [
{
"actor": {
"id": "ACoAABRFjvYBzGevlr0HJfL7UbMH7vjgln6iBRg",
"image": "https://media.licdn.com/dms/image/v2/D4D03AQFG38rxIus6KA/profile-displayphoto-cr…",
"linkedinUrl": "https://www.linkedin.com/in/trishalhjohnson",
"name": "Trisha Johnson",
"type": "profile"
},
"commentary": "BEWARE! SCAM ALERT! STRIPE IS FRAUDULENT!\n\nStripe allowed me to create an accoun…",
"createdUtc": 1786569458,
"edited": false,
"engagement": {
"comments": 0,
"likes": 0
},
"id": "7493415427058929664",
"pinned": false,
"url": "https://www.linkedin.com/feed/update/urn:li:ugcPost:7477791277128765440?commentU…"
}
]
},
"found": true
}
| Field | Meaning |
|---|---|
data.items[].commentary | Text of the comment. Long comments may be shortened in this view. |
data.items[].actor.name | Display name of the person or page that wrote the comment. |
data.items[].actor.linkedinUrl | LinkedIn profile URL of the commenter. |
data.items[].actor.position | Headline or job title text of the commenter. Some commenters have no position. |
data.items[].actor.id / data.items[].actor.type | Internal LinkedIn ID of the commenter and the kind of actor, such as profile. |
data.items[].actor.image | URL of the commenter's profile photo. |
data.items[].createdUtc | Time the comment was posted, as a Unix timestamp in seconds. |
data.items[].engagement.likes / data.items[].engagement.comments | Number of likes on the comment and number of replies to it. |
data.items[].id | ID of the comment. |
data.items[].url | Link to the post that opens at this comment. |
data.items[].edited / data.items[].pinned | Whether the comment was edited and whether it is pinned. |
url.limit to cap the number of comments (1 to 100, default 100). Use postedLimit to keep only recent comments, for example 24h or week.id is a long numeric string. Keep it as a string.Billed at the actual cost of each call, about $0.0029 for the request above. Failed calls are not charged.
Comece a construir
Endpoint da API da plataforma com autenticação unificada e rastreamento de uso.
curl -X POST "https://api.sandbase.ai/v1/api/linkedin/post-comments" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://www.linkedin.com/posts/stripe_philip-kl%C3%B6ckner-in-conversation-with-conor-activity-7477791740645564416-tIbZ",
"limit": 10
}'Defina sua chave da API SandBase no ambiente do seu servidor. As requisições usam autenticação Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Mantenha sua chave no servidor. Não a exponha em código do navegador.
urlstringobrigatórioFull URL of the LinkedIn post to list comments for.
limitintegerMaximum number of comments to return.
Padrão: 100
postedLimitstringOnly return comments posted within this window (default any).
Valores possíveis: any, 24h, week, month, 3months, 6months, year
Resposta de exemplo salva para esta API; nenhuma requisição ao vivo é feita ao visualizá-la.
Nenhuma resposta salva foi publicada. Execute a API no Playground para inspecionar a resposta.
Explorar mais
| API | Preço | Resposta |
|---|---|---|
LinkedIn Post CommentsEsta API LinkedIn | A partir de $0.0029 por chamada | JSON |
LinkedIn | A partir de $0.0012 por chamada | JSON |
LinkedIn | A partir de $0.0331 por chamada | JSON |
LinkedIn | A partir de $0.0012 por chamada | JSON |
LinkedIn | A partir de $0.00569 por chamada | JSON |
LinkedIn | A partir de $0.0026 por chamada | JSON |
Guias:LinkedIn API pricing: official access vs per-call dataBest LinkedIn API in 2026: Pricing Compared
Perguntas
Envie uma solicitação POST para https://api.sandbase.ai/v1/api/linkedin/post-comments com sua chave de API da SandBase no cabeçalho Authorization (Bearer) e os parâmetros no corpo JSON. Você também pode testar no Playground desta página sem escrever código.
A partir de $0.0029 por chamada, cobrado do seu saldo SandBase. Você paga apenas pelas chamadas que fizer; não há assinatura.
Obrigatórios: url (string). Opcionais: limit (integer) e postedLimit (um de any, 24h, week, month, 3months, 6months, year). A tabela de Parâmetros e o Playground nesta página listam todos os campos.
Uma resposta JSON retornada na mesma solicitação HTTP (síncrona). O README desta página inclui um exemplo de resposta.
Não. LinkedIn Post Comments funciona via SandBase, então uma única chave de API da SandBase cobre este endpoint e todas as outras APIs e modelos do catálogo. Você não precisa solicitar acesso à API do LinkedIn separadamente.