【问题标题】:LinkedIn historical company statistics giving me the wrong number of followersLinkedIn 历史公司统计数据给了我错误的追随者数量
【发布时间】:2015-03-05 02:59:06
【问题描述】:

我正在尝试编写一个回填脚本,该脚本将为我们缺少数据的linkedin 公司提取历史关注者数量。我当前的脚本能够从linkedin 取回数据,但这些数字对于我的测试公司来说似乎不正确。我正在使用这家公司:https://www.linkedin.com/company/3802814

我像这样调用历史追随者统计数据: http://api.linkedin.com/v1/companies/3802814/historical-follow-statistics?start-timestamp=315554400&end-timestamp=1421349947&time-granularity=day&format=json

(这些时间戳对应于 01/01/1980 和 01/15/2015)

我得到的数据表明有 14 个(不是我公司实际拥有的 6 个)关注者,所有关注者都是随机/不正确的日期,全为 0:

{ "_total": 14, "values": [ { "organicFollowerCount": 0, "paidFollowerCount": 0, "time": 259200000, "totalFollowerCount": 0 }, { "organicFollowerCount": 0, "paidFollowerCount": 0, "time": 345600000, "totalFollowerCount": 0 }, ... (10 more similar records) { "organicFollowerCount": 0, "paidFollowerCount": 0, "time": 1296000000, "totalFollowerCount": 0 }, { "organicFollowerCount": 0, "paidFollowerCount": 0, "time": 1382400000, "totalFollowerCount": 0 } ] }

我会猜到我的时间戳是错误的,直到我看到它给了我比我实际应该拥有的更多的追随者。有谁知道我可能做错了什么?到目前为止,查看linkedin 文档并没有给我任何明显的答案。我期望的数据将是在给定日期添加的关注者数量更新的一系列每日记录。这些关注者主要是在 2014 年 12 月的某个时候添加的。

【问题讨论】:

    标签: linkedin


    【解决方案1】:

    这是您获取所需信息的正确请求:

    GET https://api.linkedin.com/v1/companies/3802814/historical-follow-statistics?start-timestamp=315561600000&time-granularity=day&end-timestamp=1421308800000&format=json
    

    您要确保使用的时间戳以毫秒为单位。

    您还看到的总价值是结果的数量,而不是关注者的数量。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-09-30
      • 1970-01-01
      • 1970-01-01
      • 2023-03-09
      • 1970-01-01
      • 2021-06-13
      • 1970-01-01
      • 2021-09-19
      相关资源
      最近更新 更多