Skip to main content
POST
/
search
/
posts
curl -X POST https://api.dataforb2b.ai/search/posts \
  -H "api_key: YOUR_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "platform": "twitter",
    "keyword": "(\"anyone recommend\" OR \"looking for\") CRM",
    "date_posted": "past_week",
    "count": 25
  }'
curl -X POST https://api.dataforb2b.ai/search/posts \
  -H "api_key: YOUR_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "platform": "reddit",
    "keyword": "CRM recommendation",
    "subreddit": "SaaS",
    "sort_by": "relevance",
    "count": 25
  }'
curl -X POST https://api.dataforb2b.ai/search/posts \
  -H "api_key: YOUR_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "platform": "linkedin",
    "keyword": "CRM",
    "author_company": "Salesforce",
    "date_posted": "past_week",
    "count": 25
  }'
{
  "total": 25,
  "offset": 0,
  "count": 1,
  "has_next": true,
  "credits_used": 1,
  "results": [
    {
      "post_id": "1811640448000000000",
      "platform": "twitter",
      "url": "https://x.com/janedoe/status/1811640448000000000",
      "text": "anyone got a CRM recommendation that does round-robin without the enterprise upsell?",
      "created_at": "2026-07-10T14:22:03Z",
      "is_repost": false,
      "author_handle": "janedoe",
      "author_name": "Jane Doe",
      "author_bio": "Head of RevOps @ Acme",
      "author_followers": 4200,
      "author_verified": false,
      "like_count": 8,
      "comment_count": 3,
      "repost_count": 0,
      "view_count": 900
    }
  ]
}
Search posts by keyword across platforms. Every platform returns the same normalized post schema, so you parse LinkedIn, Twitter and Reddit results identically. Each post carries its author — a lead you can pass to Enrich Profile.

Credit Cost

ModeCredits
All searches1 credit per 10 posts returned

Request Body

platform
string
default:"linkedin"
Platform to search: linkedin, twitter, or reddit.
keyword
string
Search keyword or phrase in the post content (e.g., "looking for a CRM"). On Twitter you can use advanced operators (OR, quoted phrases, -word).
match
string
default:"strict"
Keyword matching mode:
  • strict (default) — only returns posts whose text actually contains the searched terms. Platforms match loosely by default (a keyword can appear only as a stock ticker, inside a link, or scattered across the post), so strict mode filters that noise out. Bare words are required (AND); quoted phrases are alternatives (OR).
  • loose — returns the platform’s raw results without post-filtering.
date_posted
string
Freshness of the posts: past_24h, past_week, past_month. Mapped to each platform’s native time window.
sort_by
string
default:"date_posted"
Ordering: date_posted (freshest first) or relevance (most relevant/engaged).
subreddit
string
Reddit only. Restrict the search to one subreddit (e.g., "SaaS").
author_company
string
LinkedIn only. Restrict to posts by employees of a company — pass a name (auto-resolved to the company) or a numeric LinkedIn company ID.
author_industry
string
LinkedIn only. Restrict to authors in an industry.
author_job_title
string
LinkedIn only. Restrict to authors with a job title (e.g., "Head of Sales").
content_type
string
LinkedIn only. Restrict to a content type: ARTICLE, VIDEO, PHOTO, DOCUMENT.
offset
integer
default:"0"
Number of results to skip for pagination (LinkedIn).
count
integer
default:"25"
Number of posts to return.

Response

total
integer
Total matching posts on LinkedIn; a lower bound (enumerated so far) on Twitter/Reddit, which expose no global count — use has_next to know if more exist.
offset
integer
Offset used for pagination.
count
integer
Number of results returned in this response.
has_next
boolean
Whether more results are available.
credits_used
number
Credits used for this search.
results
array
List of posts, normalized across platforms. Same core fields everywhere; a few platform-specific extras on top.

curl -X POST https://api.dataforb2b.ai/search/posts \
  -H "api_key: YOUR_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "platform": "twitter",
    "keyword": "(\"anyone recommend\" OR \"looking for\") CRM",
    "date_posted": "past_week",
    "count": 25
  }'
curl -X POST https://api.dataforb2b.ai/search/posts \
  -H "api_key: YOUR_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "platform": "reddit",
    "keyword": "CRM recommendation",
    "subreddit": "SaaS",
    "sort_by": "relevance",
    "count": 25
  }'
curl -X POST https://api.dataforb2b.ai/search/posts \
  -H "api_key: YOUR_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "platform": "linkedin",
    "keyword": "CRM",
    "author_company": "Salesforce",
    "date_posted": "past_week",
    "count": 25
  }'
{
  "total": 25,
  "offset": 0,
  "count": 1,
  "has_next": true,
  "credits_used": 1,
  "results": [
    {
      "post_id": "1811640448000000000",
      "platform": "twitter",
      "url": "https://x.com/janedoe/status/1811640448000000000",
      "text": "anyone got a CRM recommendation that does round-robin without the enterprise upsell?",
      "created_at": "2026-07-10T14:22:03Z",
      "is_repost": false,
      "author_handle": "janedoe",
      "author_name": "Jane Doe",
      "author_bio": "Head of RevOps @ Acme",
      "author_followers": 4200,
      "author_verified": false,
      "like_count": 8,
      "comment_count": 3,
      "repost_count": 0,
      "view_count": 900
    }
  ]
}