You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

关于LinkedIn API的技术问询:获取Feed的REST调用及{service}占位符解析

Hey there! Let's tackle your LinkedIn API questions clearly:

1. 获取LinkedIn Feed的REST API调用

To fetch the LinkedIn Feed (specifically the authenticated user's dynamic stream), the core REST API endpoint you'll use is:

GET https://api.linkedin.com/v2/me/feed

A few key details to keep in mind:

  • Required Permissions: You'll need the r_feed scope enabled for your app. This is a restricted scope, so you'll have to request access via LinkedIn's Developer Platform and get approval based on your use case.
  • Optional Query Parameters: You can add parameters like count (to set the number of results per request), start (for pagination), or q (to filter content by type, like articles only).
  • Response Structure: The API returns a list of feed items, each containing details like the post content, publisher profile info, engagement metrics (likes, comments, shares), and timestamps.
2. Understanding the {service} Placeholder in LinkedIn's REST API

The {service} in endpoints like https://api.linkedin.com/v2/{service} is a generic path placeholder that refers to LinkedIn's different API service modules. LinkedIn organizes its API functionality into distinct "services" (functional domains), and replacing this placeholder with the correct service identifier lets you access the specific set of endpoints for that feature.

Here are practical examples of how to use it:

  • Replace {service} with feed: You get endpoints related to feed functionality, like https://api.linkedin.com/v2/me/feed (fetching your own feed) or https://api.linkedin.com/v2/feed/{feedItemId} (fetching a single feed item).
  • Replace with posts: Access post-related endpoints, such as https://api.linkedin.com/v2/posts/{postId} (get details of a specific post) or https://api.linkedin.com/v2/posts (create a new post, if you have the right permissions).
  • Replace with people: Access user profile endpoints, like https://api.linkedin.com/v2/people/id={personId} (fetch a user's public profile data).

In short, {service} is just a variable that maps to the specific feature set you want to interact with. The exact service identifiers are listed alongside each API's documentation, so you'll know which value to plug in based on what you're trying to do.

内容的提问来源于stack exchange,提问作者Jujunuri Rajinikanth

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.13 07:20:34