【问题标题】:Get Post Analytics with Linkedin API v2使用 Linkedin API v2 获取 Post Analytics
【发布时间】:2020-02-24 08:10:49
【问题描述】:

最近,我正在研究 Linkedin API v2,但遇到了一些问题

  • 获取某公司的帖子
  • 获取特定帖子的分析

我可以使用https://api.linkedin.com/v2/organizationPageStatistics?q=organization&organization={organization URN}获得公司统计数据

但我找不到任何 API 来获取上述信息。

请帮我解决上述问题。 提前感谢您的任何建议。

【问题讨论】:

  • 找到解决办法了吗?
  • 还没有。我还没有找到解决方案。

标签: node.js linkedin linkedin-api


【解决方案1】:

实际上linkedin 并没有提供像facebook 或twitter 这样的API。 他们仍然缺乏详细情况的 API。您需要从linkedin 抓取数据以获取标准linkedin API 之外的更多信息。

【讨论】:

    【解决方案2】:

    您可以使用Share API

    您可以使用Find Shares by Owner检索公司的帖子:

    获取 https://api.linkedin.com/v2/shares?q=owners&owners={URN}&sharesPerOwner=100

    {
        "activity": "urn:li:activity:12345657",
        "content": {
            "contentEntities": [
                {
                    "entity": "urn:li:article:0",
                    "entityLocation": "https://www.example.com/content.html",
                    "thumbnails": [
                        {
                            "imageSpecificContent": {},
                            "resolvedUrl": "https://www.example.com/image.jpg"
                        }
                    ]
                }
            ],
            "description": "content description",
            "title": "Test Share with Content"
        },
        "created": {
            "actor": "urn:li:person:A8xe03Qt10",
            "time": 1471967236000
        },
        "distribution": {
            "linkedInDistributionTarget": {}
        },
        "id": "6173878065928642560",
        "lastModified": {
            "actor": "urn:li:person:A8xe03Qt10",
            "time": 1471967237000
        },
        "owner": "urn:li:organization:1000",
        "text": {
            "text": "Test Share!"
        } }
    

    关于分析,您可以使用Retrieve a Summary of Social Actions API

    获取 https://api.linkedin.com/v2/socialActions/{shareUrn|ugcPostUrn|commentUrn}

    {
        "commentsSummary": {
            "totalFirstLevelComments": 4,
            "aggregatedTotalComments": 9
        },
        "$URN": "urn:li:activity:6296748651834277888",
        "likesSummary": {
            "likedByCurrentUser": false,
            "totalLikes": 226
        }
    }
    

    希望有帮助

    【讨论】:

    • 感谢您的详细信息。我也使用了这个 API,但我需要获取帖子的“印象、反应、点击率、评论、分享、点击和参与率”。
    • 我无法从上述 API 获取上述详细信息。
    • 嗨@AllenHaley 我用Ads Reporting API 检索此类广告信息,但我不认为它们也适用于有机帖子......你可以试一试......
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2019-05-18
    • 1970-01-01
    • 2020-07-06
    • 2019-09-13
    • 1970-01-01
    • 1970-01-01
    • 2019-05-19
    相关资源
    最近更新 更多