用户帖子
curl --request GET \
--url https://api.aisa.one/apis/v1/unipile/linkedin/users/{user_id}/posts \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/unipile/linkedin/users/{user_id}/posts"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aisa.one/apis/v1/unipile/linkedin/users/{user_id}/posts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/unipile/linkedin/users/{user_id}/posts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/unipile/linkedin/users/{user_id}/posts"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.aisa.one/apis/v1/unipile/linkedin/users/{user_id}/posts")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/unipile/linkedin/users/{user_id}/posts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"cursor": "<string>",
"items": [
{
"attachments": [
{
"id": "<string>",
"size": {
"height": 123,
"width": 123
},
"sticker": true,
"type": "img",
"unavailable": true,
"file_size": 123,
"mimetype": "<string>",
"url": "<string>",
"url_expires_at": 123
}
],
"author": {
"id": "<string>",
"is_company": true,
"name": "<string>",
"public_identifier": "<string>",
"headline": "<string>",
"profile_picture_url": "<string>"
},
"comment_counter": 123,
"date": "<string>",
"id": "<string>",
"impressions_counter": 123,
"is_repost": true,
"mentions": [
{
"length": 123,
"start": 123,
"url": "<string>"
}
],
"parsed_datetime": "<string>",
"permissions": {
"can_post_comments": true,
"can_react": true,
"can_share": true
},
"provider": "LINKEDIN",
"reaction_counter": 123,
"repost_counter": 123,
"share_url": "<string>",
"social_id": "<string>",
"text": "<string>",
"object": "Post",
"analytics": {
"clicks": 123,
"clickthrough_rate": 123,
"engagement_rate": 123,
"engagements": 123,
"followers_gained_from_this_post": 123,
"impressions": 123,
"members_reached": 123,
"page_viewers_from_this_post": 123
},
"article": {
"id": "<string>",
"title": "<string>",
"author": "<string>",
"excerpt": "<string>",
"picture_url": "<string>",
"published_at": "<string>",
"url": "<string>"
},
"group": {
"id": "<string>",
"name": "<string>",
"private": true
},
"job_posting": {
"company": {
"id": "<string>",
"name": "<string>",
"picture_url": "<string>"
},
"id": "<string>",
"location": "<string>",
"title": "<string>"
},
"poll": {
"id": "<string>",
"is_open": true,
"options": [
{
"id": "<string>",
"text": "<string>",
"votes_count": 123,
"win": true
}
],
"question": "<string>",
"total_votes_count": 123
},
"repost_content": {
"attachments": [
{
"id": "<string>",
"size": {
"height": 123,
"width": 123
},
"sticker": true,
"type": "img",
"unavailable": true,
"file_size": 123,
"mimetype": "<string>",
"url": "<string>",
"url_expires_at": 123
}
],
"author": {
"id": "<string>",
"is_company": true,
"name": "<string>",
"public_identifier": "<string>",
"headline": "<string>",
"profile_picture_url": "<string>"
},
"date": "<string>",
"id": "<string>",
"parsed_datetime": "<string>",
"text": "<string>"
},
"repost_id": "<string>",
"repost_parsed_datetime": "<string>",
"reposted_by": {
"id": "<string>",
"is_company": true,
"name": "<string>",
"public_identifier": "<string>",
"headline": "<string>",
"profile_picture_url": "<string>"
},
"title": "<string>",
"user_reacted": "LIKE",
"written_by": {
"id": "<string>",
"name": "<string>",
"public_identifier": "<string>"
}
}
],
"object": "PostList",
"paging": {
"page_count": 123
}
}帖子
用户帖子
列出某位 LinkedIn 成员发布的帖子。
GET
https://api.aisa.one
/
apis
/
v1
/
unipile
/
linkedin
/
users
/
{user_id}
/
posts
用户帖子
curl --request GET \
--url https://api.aisa.one/apis/v1/unipile/linkedin/users/{user_id}/posts \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/unipile/linkedin/users/{user_id}/posts"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aisa.one/apis/v1/unipile/linkedin/users/{user_id}/posts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/unipile/linkedin/users/{user_id}/posts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/unipile/linkedin/users/{user_id}/posts"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.aisa.one/apis/v1/unipile/linkedin/users/{user_id}/posts")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/unipile/linkedin/users/{user_id}/posts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"cursor": "<string>",
"items": [
{
"attachments": [
{
"id": "<string>",
"size": {
"height": 123,
"width": 123
},
"sticker": true,
"type": "img",
"unavailable": true,
"file_size": 123,
"mimetype": "<string>",
"url": "<string>",
"url_expires_at": 123
}
],
"author": {
"id": "<string>",
"is_company": true,
"name": "<string>",
"public_identifier": "<string>",
"headline": "<string>",
"profile_picture_url": "<string>"
},
"comment_counter": 123,
"date": "<string>",
"id": "<string>",
"impressions_counter": 123,
"is_repost": true,
"mentions": [
{
"length": 123,
"start": 123,
"url": "<string>"
}
],
"parsed_datetime": "<string>",
"permissions": {
"can_post_comments": true,
"can_react": true,
"can_share": true
},
"provider": "LINKEDIN",
"reaction_counter": 123,
"repost_counter": 123,
"share_url": "<string>",
"social_id": "<string>",
"text": "<string>",
"object": "Post",
"analytics": {
"clicks": 123,
"clickthrough_rate": 123,
"engagement_rate": 123,
"engagements": 123,
"followers_gained_from_this_post": 123,
"impressions": 123,
"members_reached": 123,
"page_viewers_from_this_post": 123
},
"article": {
"id": "<string>",
"title": "<string>",
"author": "<string>",
"excerpt": "<string>",
"picture_url": "<string>",
"published_at": "<string>",
"url": "<string>"
},
"group": {
"id": "<string>",
"name": "<string>",
"private": true
},
"job_posting": {
"company": {
"id": "<string>",
"name": "<string>",
"picture_url": "<string>"
},
"id": "<string>",
"location": "<string>",
"title": "<string>"
},
"poll": {
"id": "<string>",
"is_open": true,
"options": [
{
"id": "<string>",
"text": "<string>",
"votes_count": 123,
"win": true
}
],
"question": "<string>",
"total_votes_count": 123
},
"repost_content": {
"attachments": [
{
"id": "<string>",
"size": {
"height": 123,
"width": 123
},
"sticker": true,
"type": "img",
"unavailable": true,
"file_size": 123,
"mimetype": "<string>",
"url": "<string>",
"url_expires_at": 123
}
],
"author": {
"id": "<string>",
"is_company": true,
"name": "<string>",
"public_identifier": "<string>",
"headline": "<string>",
"profile_picture_url": "<string>"
},
"date": "<string>",
"id": "<string>",
"parsed_datetime": "<string>",
"text": "<string>"
},
"repost_id": "<string>",
"repost_parsed_datetime": "<string>",
"reposted_by": {
"id": "<string>",
"is_company": true,
"name": "<string>",
"public_identifier": "<string>",
"headline": "<string>",
"profile_picture_url": "<string>"
},
"title": "<string>",
"user_reacted": "LIKE",
"written_by": {
"id": "<string>",
"name": "<string>",
"public_identifier": "<string>"
}
}
],
"object": "PostList",
"paging": {
"page_count": 123
}
}按用户 id 返回其发布的帖子列表(PostList),支持 cursor 分页。
当前价格请查看费用说明;支持报价的接口可按实际请求获取报价。
请求规范
- 方法与路径: GET /apis/v1/unipile/linkedin/users/{user_id}/posts
- 可用状态: enabled
- 请求 URL 模板:
https://api.aisa.one/apis/v1/unipile/linkedin/users/{user_id}/posts - user_id: path; 必填
- account_id: query; 必填
- cursor: query; 可选
- is_company: query; 可选
- limit: query; 可选
{
"operationId": "get_unipile_linkedin_user_posts",
"method": "GET",
"path": "/apis/v1/unipile/linkedin/users/{user_id}/posts",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [
{
"description": "The entity's provider internal id. <br> `Linkedin`: starts with ACo/ADo for users, while for companies it's a series of numbers. <br> `Instagram`: use the provider_id or the username of the user.",
"in": "path",
"name": "user_id",
"required": true,
"schema": {
"type": "string"
}
},
{
"description": "The id of the account to perform the request from.",
"in": "query",
"name": "account_id",
"required": true,
"schema": {
"type": "string"
}
},
{
"in": "query",
"name": "cursor",
"required": false,
"schema": {
"description": "A cursor for pagination purposes. To get the next page of entries, you need to make a new request and fulfill this field with the cursor received in the preceding request. This process should be repeated until all entries have been retrieved.",
"minLength": 1,
"title": "CursorParam",
"type": "string"
}
},
{
"description": "`Linkedin only` Set it to **\"true\"** if the posts are from a company.",
"in": "query",
"name": "is_company",
"required": false,
"schema": {
"type": "boolean"
}
},
{
"in": "query",
"name": "limit",
"required": false,
"schema": {
"description": "A limit for the number of items returned in the response. The value can be set between 1 and 100.",
"example": 100,
"maximum": 100,
"minimum": 1,
"type": "integer"
}
}
],
"security": [
{
"bearerAuth": []
}
],
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}