Search posts
Search public professional posts by keyword and filters. The request is a JSON body, not query parameters. query supports quoted phrases, AND/OR/NOT and parentheses, with a hard ceiling of 5 boolean operators that comes from the underlying search - a 6th is refused with 400 rather than silently matching nothing. Filters cover recency (postedWithin, postedAfter), attachment kind (contentType), the author (authorProfiles, authorCompanies, authorJobTitle, authorIndustries) and mentions (mentionsProfiles, mentionsCompanies); every filter is validated against a closed list of values, so a typo is a free 400 instead of a billed page that quietly ignored it. A filter whose effect we could not confirm is refused with a free 400 rather than offered: an unrecognised filter is silently ignored by the underlying search, which would return a plausible but completely unfiltered page you paid for. sortBy has NO default: omit it and the underlying search applies its own ordering, which the response reports as sort: null. Pages are walked with an opaque cursor - author searches included - and one query is exhausted after a few hundred results, so reach further by splitting it by date window or by author. total gives the number of matching posts the source reports: an estimate that moves between pages, so walk until cursor is null. Billing is a flat 1 credit per call whatever comes back, zero results included; a 400, a 402 and a 503 cost nothing.
Request
- Base URL: https://api.fetchin.io
- URL: https://api.fetchin.io/api/v1/posts/search
- Auth: API key in header X-API-Key
Request body
Example request
{
"query": "\"head of growth\" AND (saas OR fintech) NOT intern",
"contentType": [
"document"
],
"authorProfiles": [
"ACoAAA8BYqEBCGLg_vT_ca6mMEqkpp9nVffJ3hc"
],
"authorCompanies": [
"1035"
],
"mentionsProfiles": [
"ACoAAAEkwwAB9KEc2TrQgOLEQ-vzRyZeCDyc6DQ"
],
"mentionsCompanies": [
"1035"
],
"authorIndustries": [
"DEFENSE_AND_SPACE_MANUFACTURING"
],
"authorJobTitle": "Head of Growth"
}Response
A page of matching posts. Billed 1 credit, including when results is empty. Observed latency, not a guarantee: ~1-2 s for a small page and 4.5-7 s for a full 50-result page.
Example response
{
"total": 378,
"results": [
{
"id": "urn:li:activity:7486820978292072449",
"entityId": "7486820978292072449",
"shareUrn": "urn:li:ugcPost:7486820977411145728",
"shareUrl": "https://www.linkedin.com/feed/update/urn:li:activity:7486820978292072449/",
"url": "https://www.linkedin.com/feed/update/urn:li:activity:7486820978292072449/",
"postedAgoShort": "3d",
"postType": "image",
"media": [
{
"type": "image"
}
],
"author": {
"id": "ACoAAA8BYqEBCGLg_vT_ca6mMEqkpp9nVffJ3hc",
"name": "Bill Gates",
"url": "https://www.linkedin.com/in/williamhgates",
"publicIdentifier": "williamhgates",
"universalName": "microsoft",
"followerCount": 1289,
"headline": "Chair, Gates Foundation and Founder, Breakthrough Energy"
},
"resharedPost": {
"author": {
"id": "ACoAAA8BYqEBCGLg_vT_ca6mMEqkpp9nVffJ3hc",
"name": "Bill Gates",
"url": "https://www.linkedin.com/in/williamhgates",
"publicIdentifier": "williamhgates",
"universalName": "microsoft",
"followerCount": 1289,
"headline": "Chair, Gates Foundation and Founder, Breakthrough Energy"
},
"media": [
{
"type": "image"
}
]
},
"group": {
"id": "4521873",
"name": "SaaS Growth Leaders",
"url": "https://www.linkedin.com/groups/4521873/"
}
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.