API para LinkedIn: Buscar posts (versão completa)
Busque posts públicos do LinkedIn com detalhes ricos de autor, engajamento, anexos e enquetes.
Rede de provedores
Provedores ordenados por tráfego
com teto de US$ 0,143 por requisição1 resultadoUS$ 0,0014350 resultadosUS$ 0,0715100 resultadosUS$ 0,143 (teto)Você paga pelo que volta. Reduza o limite para pagar menos - e nenhuma requisição custa mais que o teto, não importa quanto volte.
com teto de US$ 0,194 por requisição1 resultadoUS$ 0,0030950 resultadosUS$ 0,09766100 resultadosUS$ 0,194 (teto)Você paga pelo que volta. Reduza o limite para pagar menos - e nenhuma requisição custa mais que o teto, não importa quanto volte.
Teste
Faça sua primeira requisição
{
"data": {
"posts": [
{
"attachmentDescription": "A short example description of this item.",
"attachmentImage": "https://example.com/image.jpg",
"attachmentSubtitle": "Example title",
"attachmentTitle": "Example title",
"attachmentType": "general",
"attachmentUrl": "https://example.com/page",
"author": {
"headline": "Example title",
"id": "a1b2c3d4",
"image": "https://example.com/image.jpg",
"name": "Example title",
"profileUrl": "https://example.com/page",
"publicIdentifier": "a1b2c3d4",
"type": "person"
},
"createdUtc": 12.5,
"engagement": {
"breakdown": [
{
"count": null,
"type": null
}
],
"comments": 12500,
"reactions": 42,
"reposts": 248
},
"id": "a1b2c3d4",
"pollClosed": false,
"pollOptions": [
{
"text": "A short example description of this item.",
"votes": 42
}
],
"pollQuestion": "example",
"pollTotalVotes": 12500,
"text": "A short example description of this item.",
"url": "https://example.com/page"
}
]
},
"found": true,
"reason": "not_found"
}interface LinkedinSearchPostsFullResponse {
data: {
posts: {
attachmentDescription?: string;
attachmentImage?: string;
attachmentSubtitle?: string;
attachmentTitle?: string;
attachmentType?: string;
attachmentUrl?: string;
author: {
headline?: string;
id?: string;
image?: string;
name?: string;
profileUrl?: string;
publicIdentifier?: string;
type?: "person" | "company" | "showcase";
};
createdUtc: number;
engagement: {
breakdown?: {
count: number;
type: string;
}[];
comments?: number;
reactions?: number;
reposts?: number;
};
id: string;
pollClosed?: boolean;
pollOptions?: {
text: string;
votes: number;
}[];
pollQuestion?: string;
pollTotalVotes?: number;
text: string;
url: string;
}[];
} | null;
found: boolean;
reason?: "not_found";
}Referência completa de parâmetros e resposta - todos os campos, tipos e exemplos deste endpoint.
Referência
Requisição, resposta e preço
Última verificação em 2026-09-29 · disponibilidade e latência medidas em 30dcurl -X POST https://api.getanyapi.com/v1/run/linkedin.search_posts_full \
-H "Authorization: Bearer $ANYAPI_KEY" \
-H "Content-Type: application/json" \
-d '{"datePosted":"last-week","limit":10,"query":"artificial intelligence","sort":"relevance"}'| Campo | Tipo | Valor de exemplo |
|---|---|---|
| Corpo da requisição | ||
| query | string | "artificial intelligence"Consulta de busca de posts do LinkedIn, incluindo termos entre aspas ou operadores booleanos aceitos pela busca do LinkedIn. |
| authorCompanyNames | array | Retorna só posts de pessoas associadas a estes nomes de empresa. |
| authorIndustryIds | array | Retorna só posts de autores associados a estes IDs de setor do LinkedIn. |
| authorKeywords | string | Retorna só posts cujo título do perfil ou cargo do autor contém pelo menos uma destas palavras-chave. |
| authorUrls | array | Retorna só posts publicados por estas URLs de perfil ou empresa do LinkedIn. |
| contentType | enum | Retorna só posts com este tipo de conteúdo. |
| datePosted | enum | "last-week"Retorna só posts publicados nesta janela de tempo relativa. Última hora e janelas acima de um mês são roteadas para o provedor que as suporta. |
| limit | integer | 10Número máximo de posts a retornar (1-100, padrão 10). O limite superior é uma página de busca do LinkedIn. |
| mentioningMemberUrls | array | Retorna só posts que mencionam estas URLs de perfil de membro do LinkedIn. |
| requireFields | array | Opcional; se omitido, o roteamento não muda e a fonte mais barata atende. Informe os campos de saída que esta requisição precisa poder retornar, por exemplo `attachmentType` ou `pollOptions`, e ela só será atendida por uma fonte que retorne todos eles. Os campos que você não informar continuam sendo retornados sempre que a fonte que atende os tiver. Isso pode aumentar o seu preço: quando a fonte mais barata não consegue retornar um campo informado, uma fonte mais cara atende, e você recebe a cotação e é cobrado pelo preço dela. Um campo informado ainda pode vir ausente em um post que realmente não o tenha. Se você informar uma combinação de campos que nenhuma fonte retorna sozinha, a requisição é recusada como entrada inválida, sem cobrança. |
| sort | enum | "relevance"Ordena os resultados por relevância da busca ou data de publicação. |
| Resposta | ||
| data | object | The matching LinkedIn posts, or null when no result was found. |
| data.posts | object[] | LinkedIn posts matching the search query. Populated whenever the provider has data for the entity. |
| data.posts[].attachmentDescriptionpode ser exigido | string | Short description of the attached content, as LinkedIn shows it on the preview card. Best effort on article attachments: depending on the search it may be absent, so treat it as optional. To read an article's content reliably, pass attachmentUrl to the linkedin.article endpoint. |
| data.posts[].attachmentImagepode ser exigido | string | Image URL associated with the attachment. |
| data.posts[].attachmentSubtitlepode ser exigido | string | Subtitle of the attached structured content. |
| data.posts[].attachmentTitlepode ser exigido | string | Title of the attached article, job, or other structured content. |
| data.posts[].attachmentTypepode ser exigido | string | Kind of structured content attached to the post, such as article, job, poll, video, or document. |
| data.posts[].attachmentUrlpode ser exigido | string | Canonical destination URL of the attachment. When attachmentType is article, pass this URL to the linkedin.article endpoint to read the article's full body text. |
| data.posts[].author | object | Public author identity attached to the post. Populated whenever the provider has data for the entity. |
| data.posts[].author.headline | string | Public headline or company follower summary for the author. |
| data.posts[].author.id | string | LinkedIn identifier for the author. |
| data.posts[].author.image | string | Public profile or company image URL for the author. |
| data.posts[].author.name | string | Display name of the author. |
| data.posts[].author.profileUrl | string | Canonical LinkedIn profile or company URL for the author. |
| data.posts[].author.publicIdentifier | string | LinkedIn public identifier (vanity slug) for the author, for example "williamhgates". Stable across lanes, unlike the raw id. |
| data.posts[].author.type | "person" | "company" | "showcase" | Kind of LinkedIn entity that authored the post, derived from the author URL. |
| data.posts[].createdUtc | number | UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. Populated whenever the provider has data for the entity. |
| data.posts[].engagement | object | Public engagement totals attached to the post. Populated whenever the provider has data for the entity. |
| data.posts[].engagement.breakdown | object[] | Reaction counts grouped by LinkedIn reaction type. |
| data.posts[].engagement.breakdown[].count | integer | Number of reactions of this type. |
| data.posts[].engagement.breakdown[].type | string | LinkedIn reaction type. |
| data.posts[].engagement.comments | integer | Total comment count. |
| data.posts[].engagement.reactions | integer | Total reaction count. |
| data.posts[].engagement.reposts | integer | Total repost or share count. |
| data.posts[].id | string | Stable LinkedIn activity identifier for the post. Populated whenever the provider has data for the entity. |
| data.posts[].pollClosedpode ser exigido | boolean | Whether the attached poll is closed. |
| data.posts[].pollOptionspode ser exigido | object[] | Options and public vote counts for an attached poll. |
| data.posts[].pollOptions[].text | string | Poll option text. |
| data.posts[].pollOptions[].votes | integer | Votes recorded for this option. |
| data.posts[].pollQuestionpode ser exigido | string | Question asked by an attached LinkedIn poll. |
| data.posts[].pollTotalVotespode ser exigido | integer | Total votes recorded by the attached poll. |
| data.posts[].text | string | Text content of the post. Empty string when the post carries no commentary of its own, such as a bare article share or an image-only post. Populated whenever the provider has data for the entity. |
| data.posts[].url | string | Canonical URL of the LinkedIn post. Populated whenever the provider has data for the entity. |
| found | boolean | Whether matching LinkedIn posts were found. |
| reason | "not_found" | Present only when `found` is false, and says why there is no result. `not_found`: the source states the target does not exist, or returned nothing for it. A `found: false` answer is a successful call, not an error, and `costUsd` is what it actually cost. |
| Preço | ||
| Preço por requisição | USD | US$ 0,004 |
| Preço /mil req. | USD | US$ 4,00 |
Dúvidas frequentes
Sobre o endpoint Buscar posts (versão completa) da API para LinkedIn
O endpoint Buscar posts (versão completa) da AnyAPI para LinkedIn retorna dados de LinkedIn em JSON normalizado com uma chamada POST para /v1/run/linkedin.search_posts_full. Busque posts públicos do LinkedIn com detalhes ricos de autor, engajamento, anexos e enquetes. A AnyAPI distribui cada requisição entre 4 fontes, com failover automático quando uma falha. Custa a partir de US$ 4 por mil requisições, em dólares, sem assinatura e sem mínimo mensal. Nos últimos 30 dias, 100,0% das chamadas ao endpoint Buscar posts (versão completa) da API para LinkedIn feitas pela AnyAPI tiveram sucesso, com tempo de resposta mediano de 3,2 segundos, em 5.001 chamadas medidas.