Search LinkedIn posts
harvestapi.linkedin.post.searchSearch LinkedIn posts by keywords, author, date range, and more.
- Price
- $0.004/callPelo preço do provedor
- Success rate
- 100%Last 30 days · 126.807 calls
- Latency p50
- 2.2 sp95 5.5 s
- Last verified
- 10 de set. de 2026Verified working
GEThttps://toolswitch.dev/v1/tools/harvestapi.linkedin.post.search?page=1&search=MicrosoftPreview- Uses platform quota
- Synchronous response
- Reads public data
Parâmetros
Use only the declared query parameters, once each, without a request body. Results are provider-native: inspect element/elements and body status/error; HTTP 200 alone does not prove a hit. Empty results can still be charged.
| Parâmetro | Tipo | Obrigatório | Descrição | Exemplo |
|---|---|---|---|---|
| Parâmetros de consulta | ||||
page | inteiro | Opcional | Page number for pagination | 1 |
group | string | Opcional | Group LinkedIn URL or Group ID | |
search | string | Opcional | Keywords to search for in posts | Microsoft |
sortBy | string | Opcional | Sort by field. Supported values: 'relevance', 'date' | |
company | string | Opcional | Filter posts by this company URL or URLs (comma-separated). Note: LinkedIn returns fewer results per company when using post search. To extract all posts by a company, use the /linkedin/company-posts endpoint | |
profile | string | Opcional | Filter posts by author's profile URL (comma-separated). Note: LinkedIn returns fewer results per profile when using post search. To extract all posts by a profile, use the /linkedin/profile-posts endpoint | |
companyId | string | Opcional | Filter posts by company ID or IDs (comma-separated). It's faster to search by ID. Note: LinkedIn returns fewer results per company when using post search. To extract all posts by a company, use the /linkedin/company-posts endpoint | |
profileId | string | Opcional | Filter posts by author's profile ID or IDs (comma-separated). It's faster to search by ID. Note: LinkedIn returns fewer results per profile when using post search. To extract all posts by a profile, use the /linkedin/profile-posts endpoint | |
contentType | string | Opcional | Filter by content type. Supported values: 'videos', 'images', 'live_videos', 'documents', 'collaborative_articles', 'jobs' | |
postedLimit | string | Opcional | Filter posts by maximum posted date. Supported values: '24h', 'week', 'month'. This parameter will be sent to LinkedIn, the filtering will be done on their side | |
authorKeywords | string | Opcional | Filter by keywords in authors' profiles | |
authorsCompany | string | Opcional | List of LinkedIn companies where authors of posts work (comma-separated). It supports company URLs and IDs. | |
paginationToken | string | Opcional | Required if it was returned by the previous page. Otherwise the page will always be 1 (on LinkedIn side). Doesn't apply for all queries, usually profile posts return this token | |
mentioningMember | string | Opcional | Filter posts mentioning this LinkedIn profile URL or ID (comma-separated). It supports profile URLs and IDs. | |
authorsIndustryId | string | Opcional | List of LinkedIn industry IDs of authors' companies (comma-separated). It supports industry IDs. Full list of industry IDs: https://github.com/HarvestAPI/linkedin-industry-codes-v2/blob/main/linkedin_industry_code_v2_all_eng.csv | |
mentioningCompany | string | Opcional | Filter posts mentioning this LinkedIn company URL or ID (comma-separated). It supports company URLs and IDs. | |
scrapePostedLimit | string | Opcional | Post-Filter posts by maximum posted date. Supported values: '1h', '24h', 'week','month', '3months', '6months', 'year'. This parameter will be applied after receiving results from LinkedIn, the filtering will be done on our side | |
- Parâmetros de consulta
pageinteiroOpcionalPage number for pagination
Exemplo:
1groupstringOpcionalGroup LinkedIn URL or Group ID
searchstringOpcionalKeywords to search for in posts
Exemplo:
MicrosoftsortBystringOpcionalSort by field. Supported values: 'relevance', 'date'
companystringOpcionalFilter posts by this company URL or URLs (comma-separated). Note: LinkedIn returns fewer results per company when using post search. To extract all posts by a company, use the /linkedin/company-posts endpoint
profilestringOpcionalFilter posts by author's profile URL (comma-separated). Note: LinkedIn returns fewer results per profile when using post search. To extract all posts by a profile, use the /linkedin/profile-posts endpoint
companyIdstringOpcionalFilter posts by company ID or IDs (comma-separated). It's faster to search by ID. Note: LinkedIn returns fewer results per company when using post search. To extract all posts by a company, use the /linkedin/company-posts endpoint
profileIdstringOpcionalFilter posts by author's profile ID or IDs (comma-separated). It's faster to search by ID. Note: LinkedIn returns fewer results per profile when using post search. To extract all posts by a profile, use the /linkedin/profile-posts endpoint
contentTypestringOpcionalFilter by content type. Supported values: 'videos', 'images', 'live_videos', 'documents', 'collaborative_articles', 'jobs'
postedLimitstringOpcionalFilter posts by maximum posted date. Supported values: '24h', 'week', 'month'. This parameter will be sent to LinkedIn, the filtering will be done on their side
authorKeywordsstringOpcionalFilter by keywords in authors' profiles
authorsCompanystringOpcionalList of LinkedIn companies where authors of posts work (comma-separated). It supports company URLs and IDs.
paginationTokenstringOpcionalRequired if it was returned by the previous page. Otherwise the page will always be 1 (on LinkedIn side). Doesn't apply for all queries, usually profile posts return this token
mentioningMemberstringOpcionalFilter posts mentioning this LinkedIn profile URL or ID (comma-separated). It supports profile URLs and IDs.
authorsIndustryIdstringOpcionalList of LinkedIn industry IDs of authors' companies (comma-separated). It supports industry IDs. Full list of industry IDs: https://github.com/HarvestAPI/linkedin-industry-codes-v2/blob/main/linkedin_industry_code_v2_all_eng.csv
mentioningCompanystringOpcionalFilter posts mentioning this LinkedIn company URL or ID (comma-separated). It supports company URLs and IDs.
scrapePostedLimitstringOpcionalPost-Filter posts by maximum posted date. Supported values: '1h', '24h', 'week','month', '3months', '6months', 'year'. This parameter will be applied after receiving results from LinkedIn, the filtering will be done on our side
Exemplos de código
Substitua $TOOLSWITCH_KEY pela chave criada no console.
curl -X GET 'https://toolswitch.dev/v1/tools/harvestapi.linkedin.post.search?page=1&search=Microsoft' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/harvestapi.linkedin.post.search?page=1&search=Microsoft",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/harvestapi.linkedin.post.search?page=1&search=Microsoft", {
method: "GET",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());Esta API de gateway está em prévia; a URL e a autenticação podem mudar. Os parâmetros do exemplo são dados de amostra. As chamadas são cobradas a $0.004/call, incluindo a taxa de serviço.