Skip to content
ChangelogNew

Social now covers TikTok, X and LinkedIn

API
A SOCIAL request on POST /v1/async/task for the LinkedIn job search data engineer in the United States, the first job in the response (Data Engineer at Amazon Web Services), and a followerCount table: TikTok @nasa 2,217,555, X @NASA 92,143,757 and LinkedIn williamhgates 40,842,523

Read TikTok videos and comments, X posts, and LinkedIn profiles and jobs as JSON from any API key, for 0.5 credits a completed request.

What you get

  • platform tiktok: videos for a keyword, one video with its caption, music and counts, a video’s comments with their replies, a creator’s profile, and the trending videos of a country.
  • platform x: one post with its media and counts, and a public profile with its newest posts.
  • platform linkedin: a public profile with its recent posts and articles, one post with a preview of its comments, a job search by keyword, place, date, workplace, type and experience level, and one job posting.
  • Counts as numbers, such as viewCount, likeCount, retweetCount, commentCount and followerCount, with publishedAt or createdAt times, so you compare accounts and posts without parsing text like 2.2M.

How it works

Send taskType SOCIAL to POST /v1/async/task with a platform and an action, or send the same fields straight to POST /v1/social/{platform}/{action}. In a path, the _ of an action name is written -, as in jobs-search. TikTok defaults to search, and x and linkedin take an action on every request. Each action takes an ID such as videoId, username, tweetId or jobId, or the page URL.

curl -X POST https://api.querying.ai/v1/social/tiktok/video \
  -H "Authorization: Bearer $QUERYING_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "videoId": "7689165576589069582" }'

Every platform reads the public pages a logged-out visitor sees. X shows such a visitor about 5 recent posts of a profile, and a LinkedIn profile shows 5 to 9 posts and up to 10 articles. A page that does not exist, is private or needs a signed-in viewer ends the task with PAGE_UNAVAILABLE.

LinkedIn jobs_search returns hasMore and nextCursor. Put nextCursor in cursor of the same request to read the next page. A TikTok search returns up to limit videos, 50 at most, in one page. A request completes in 2 to 4 seconds at the median, and a TikTok search in about 14.

The read_social tool on the querying.ai MCP server reads the same three platforms from Claude Code, Codex, Cursor and other MCP clients.

Where it helps

  • Watch a brand’s TikTok creators, with their followers and videos, and the comments under a launch video.
  • Read your competitors’ latest X posts with their views, likes and reposts, and compare them week by week.
  • Track hiring signals with LinkedIn job search by role, place and date, and read executives’ public posts.

Send a request

Send the request with your API key in the Authorization header.

curl -X POST https://api.querying.ai/v1/async/task \
  -H "Authorization: Bearer $QUERYING_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "taskType": "SOCIAL",
    "payload": {
      "platform": "linkedin",
      "action": "jobs_search",
      "query": "data engineer",
      "jobLocation": "United States",
      "postedWithin": "week",
      "limit": 25
    }
  }'

Request fields

taskTypestringRequired
The engine to run, such as CHATGPT or GOOGLE.
payload.platformstringRequired
The platform to read: youtube, instagram, threads, tiktok, x or linkedin.
payload.actionstringRequired
What to read. tiktok: search, video, comments, creator, trending. x: tweet, profile. linkedin: profile, post, jobs_search, job. TikTok defaults to search, and x and linkedin take an action on every request.
payload.querystring
The search term for search on TikTok and for jobs_search on LinkedIn (up to 200 characters). jobs_search takes query, jobLocation or both.
payload.jobLocationstring
The place where jobs_search looks for jobs, such as United States or Seoul, South Korea. Up to 100 characters.
payload.postedWithinstring
The jobs_search filter for how recent a posting is: day, week or month.
payload.limitinteger
Results to return. jobs_search takes 1 to 100, default 10. Each action has its own range, listed in the docs.
webhook.urlstring
An HTTPS address on your server. The finished task is posted there the moment it completes.

Response

A finished task looks like this, trimmed for length.

JSON
{
  "success": true,
  "task": {
    "id": "…",
    "taskType": "SOCIAL",
    "status": "COMPLETED",
    "createdAt": "…"
  },
  "credits": { "creditsToCharge": 0.5, "creditsCharged": 0.5 },
  "response": {
    "platform": "linkedin",
    "action": "jobs_search",
    "query": "data engineer",
    "jobLocation": "United States",
    "returnedCount": 25,
    "hasMore": true,
    "jobs": [
      {
        "position": 1,
        "jobId": "4493232607",
        "url": "https://www.linkedin.com/jobs/view/…",
        "title": "Data Engineer, Central InfraOps Analytics Team",
        "company": {
          "name": "Amazon Web Services (AWS)",
          "url": "https://www.linkedin.com/company/amazon-web-services"
        },
        "location": "Herndon, VA",
        "postedAt": "2026-11-21",
        "postedText": "1 day ago",
        "benefits": "Actively Hiring"
      },
      "…"
    ],
    "nextCursor": "27"
  }
}
task.statusstring
QUEUED, PROCESSING, then COMPLETED with the answer or FAILED with error.
credits.creditsChargedinteger
Credits charged for the finished task. A failed task charges 0.
response.returnedCountinteger
The number of items in the list the action returned, such as jobs, videos, tweets or comments.
response.jobsarray
Job postings in LinkedIn’s order: position, jobId, url, title, company, location, postedAt, postedText and benefits.
response.nextCursorstring
hasMore says whether more results exist. Put nextCursor in cursor of the same request to read the next page. It is null at the end of the list.

Receive the result

The request returns the task right away with status QUEUED. Poll GET /v1/async/task/{id} until status is COMPLETED or FAILED, or add webhook.url and the finished task arrives at your server with the same task, credits and response. Results stay available for 24 hours after a task finishes.

curl https://api.querying.ai/v1/async/task/$TASK_ID \
  -H "Authorization: Bearer $QUERYING_API_KEY"

Pricing

Each completed request uses 0.5 credits, on every platform and every action. Only completed requests are charged. Plans and credits: https://querying.ai/pricing

More updates

Stay in the loop

Get new product updates in your inbox.

RSS feed