API para LinkedIn

API para LinkedIn: Comentários do perfil

Liste os comentários que um membro do LinkedIn deixou em posts de outras pessoas: o texto do comentário, o link permanente e o horário, além do post comentado, do autor desse post e do engajamento.

POST/v1/run/linkedin.profile_comments
Requisições
-
30d

Preços

Um preço, em dólares

Provedores
Hedgehog- atendidas- de disponibilidade- p50US$ 5,00/mil req.preço fixo

Teste

Faça sua primeira requisição

Abrir em
Obter chave grátis
Resposta de exemplo
Execuções grátis retornam só os primeiros 3 resultados. Recarregue uma chave para receber a resposta completa.
{
  "data": {
    "items": [
      {
        "actor": {
          "id": "a1b2c3d4",
          "image": "https://example.com/image.jpg",
          "linkedinUrl": "https://example.com/page",
          "name": "Example title",
          "position": "example",
          "type": "general"
        },
        "commentary": "example",
        "createdUtc": 12.5,
        "edited": true,
        "engagement": {
          "comments": 12500,
          "likes": 12500,
          "shares": 13
        },
        "id": "a1b2c3d4",
        "isAuthor": true,
        "post": {
          "author": {
            "headline": "Example title",
            "image": "https://example.com/image.jpg",
            "name": "Example title",
            "profileUrl": "https://example.com/page",
            "publicIdentifier": "a1b2c3d4"
          },
          "engagement": {
            "comments": 12500,
            "reactions": 42,
            "reposts": 248
          },
          "id": "a1b2c3d4",
          "postedUtc": 248,
          "text": "A short example description of this item.",
          "url": "https://example.com/page"
        },
        "url": "https://example.com/page"
      }
    ]
  },
  "found": true,
  "reason": "not_found"
}
Interface da resposta
interface LinkedinProfileCommentsResponse {
  data: {
    items: {
      actor?: {
        id?: string;
        image?: string;
        linkedinUrl?: string;
        name?: string;
        position?: string;
        type?: string;
      };
      commentary: string;
      createdUtc?: number;
      edited?: boolean;
      engagement?: {
        comments?: number;
        likes?: number;
        shares?: number;
      };
      id: string;
      isAuthor?: boolean;
      post?: {
        author?: {
          headline?: string;
          image?: string;
          name?: string;
          profileUrl?: string;
          publicIdentifier?: string;
        };
        engagement?: {
          comments?: number;
          reactions?: number;
          reposts?: number;
        };
        id?: string;
        postedUtc?: number;
        text?: string;
        url?: 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 30d
POST /v1/run/linkedin.profile_comments
curl -X POST https://api.getanyapi.com/v1/run/linkedin.profile_comments \
  -H "Authorization: Bearer $ANYAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"limit":10,"url":"https://www.linkedin.com/in/jeffweiner08"}'
CampoTipoValor de exemplo
Corpo da requisição
urlstring"https://www.linkedin.com/in/jeffweiner08"URL completa do perfil do membro do LinkedIn cujos comentários em posts de outras pessoas serão listados.
limitinteger10Número máximo de comentários a retornar.
postedLimitenumRetorna só comentários publicados nesta janela de tempo (padrão: qualquer).
Resposta
dataobjectThe profile comments result, or null when not found.
data.itemsobject[]Comments this member left on other people's posts, newest first, each with the post it was left on. Populated whenever the provider has data for the entity.
data.items[].actorobjectThe member who left the comment (a profile or a company).
data.items[].actor.idstringLinkedIn identifier of the commenter.
data.items[].actor.imagestringProfile picture URL of the commenter. Populated whenever the provider has data for the entity.
data.items[].actor.linkedinUrlstringCanonical LinkedIn URL of the commenter. Populated whenever the provider has data for the entity.
data.items[].actor.namestringDisplay name of the commenter. Populated whenever the provider has data for the entity.
data.items[].actor.positionstringCommenter's headline or job title as displayed. Populated whenever the provider has data for the entity.
data.items[].actor.typestringCommenter kind, e.g. 'profile' or 'company'.
data.items[].commentarystringFull text of the comment the member left. Populated whenever the provider has data for the entity.
data.items[].createdUtcnumberUTC 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.items[].editedbooleanWhether the comment has been edited.
data.items[].engagementobjectEngagement metrics for the comment.
data.items[].engagement.commentsintegerNumber of replies to the comment.
data.items[].engagement.likesintegerNumber of likes on the comment.
data.items[].engagement.sharesintegerNumber of shares of the comment.
data.items[].idstringUnique identifier of the comment. Populated whenever the provider has data for the entity.
data.items[].isAuthorbooleanWhether the commenter is also the author of the post.
data.items[].postobjectThe post the comment was left on, so the comment can be read in context. Populated whenever the provider has data for the entity.
data.items[].post.authorobjectAuthor of the post that was commented on.
data.items[].post.author.headlinestringPublic headline or company follower summary for the post author.
data.items[].post.author.imagestringProfile or company image URL of the post author. Populated whenever the provider has data for the entity.
data.items[].post.author.namestringDisplay name of the post author. Populated whenever the provider has data for the entity.
data.items[].post.author.profileUrlstringCanonical LinkedIn profile or company URL of the post author. Populated whenever the provider has data for the entity.
data.items[].post.author.publicIdentifierstringLinkedIn public identifier (vanity slug) of the post author, for example "williamhgates". Stable across lanes, unlike the raw id.
data.items[].post.engagementobjectPublic engagement totals on the post that was commented on.
data.items[].post.engagement.commentsintegerTotal comment count on the post.
data.items[].post.engagement.reactionsintegerTotal reaction count on the post.
data.items[].post.engagement.repostsintegerTotal repost or share count on the post.
data.items[].post.idstringUnique identifier of the LinkedIn post that was commented on.
data.items[].post.postedUtcnumberUTC epoch timestamp in seconds (Unix time) when the post was published. Multiply by 1000 for a JS Date in milliseconds. Populated whenever the provider has data for the entity.
data.items[].post.textstringText content of the post that was commented on. Empty when the post carries no commentary of its own, such as a bare reshare or an image-only post. Populated whenever the provider has data for the entity.
data.items[].post.urlstringCanonical LinkedIn URL of the post that was commented on. Populated whenever the provider has data for the entity.
data.items[].urlstringCanonical permalink URL of the comment. Populated whenever the provider has data for the entity.
foundbooleanWhether comments by this member 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çãoUSDUS$ 0,005
Preço /mil req.USDUS$ 5,00

Dúvidas frequentes

Sobre o endpoint Comentários do perfil da API para LinkedIn

O endpoint Comentários do perfil da AnyAPI para LinkedIn retorna dados de LinkedIn em JSON normalizado com uma chamada POST para /v1/run/linkedin.profile_comments. Liste os comentários que um membro do LinkedIn deixou em posts de outras pessoas: o texto do comentário, o link permanente e o horário, além do post comentado, do autor desse post e do engajamento. A AnyAPI retorna um schema normalizado, seja qual for a fonte que atende. Custa a partir de US$ 5 por mil requisições, em dólares, sem assinatura e sem mínimo mensal.

Custa a partir de US$ 5 por mil requisições, em dólares, sem assinatura e sem mínimo mensal. Você recarrega uma carteira em dólares e cada chamada desconta dela. Algumas requisições pagas pela carteira que falham geram cobranças de processamento, que repassamos pelo custo, sem margem; a resposta de erro mostra o valor cobrado.

Liste os comentários que um membro do LinkedIn deixou em posts de outras pessoas: o texto do comentário, o link permanente e o horário, além do post comentado, do autor desse post e do engajamento. A resposta é JSON normalizado, com o mesmo envelope que todo endpoint da AnyAPI retorna, então processar um segundo endpoint é só trocar a URL, e nada mais.