> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bridgly.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Functions

> Every scraping function across X (Twitter), Reddit, and LinkedIn.

The client groups scraping functions by platform. Each function validates your
input against the endpoint's schema, sends the request, and returns the typed
`data` payload wrapped in an [`ApiResult`](/sdk/errors-and-types). Every call
costs one credit.

<Tip>
  For the exact request fields and response shape of any function, open the [API
  Reference](/api-reference) — each endpoint page shows the equivalent SDK call
  alongside its schema.
</Tip>

## `client.x` — X (Twitter)

```ts theme={"dark"}
const res = await client.x.getUserTweets({ userId: '44196397', count: 40 });
if (res.type === 'success') console.log(res.data);
```

| Function             | What it returns                             |
| -------------------- | ------------------------------------------- |
| `getTweetDetail`     | A tweet with its full reply thread          |
| `search`             | Tweets matching X advanced-search operators |
| `searchUsers`        | X users matching a keyword                  |
| `getUser`            | An X user profile by handle                 |
| `getUserTweets`      | A user's tweets timeline                    |
| `getUserReplies`     | A user's replies                            |
| `getUserMedia`       | A user's media tweets (photos and videos)   |
| `getFollowers`       | A user's followers                          |
| `getFollowing`       | Accounts a user follows                     |
| `getTweetRetweeters` | Users who retweeted a tweet                 |
| `getTweetQuotes`     | Quote tweets of a tweet                     |

## `client.reddit` — Reddit

```ts theme={"dark"}
const res = await client.reddit.listSubredditPosts({
  subreddit: 'programming',
  sort: 'top',
});
if (res.type === 'success') console.log(res.data);
```

| Function                | What it returns                              |
| ----------------------- | -------------------------------------------- |
| `getPost`               | A post with its full comment tree            |
| `getComment`            | A single comment with its surrounding thread |
| `getSubreddit`          | Subreddit metadata                           |
| `getUser`               | A user profile                               |
| `listUserPosts`         | A user's posts                               |
| `listUserComments`      | A user's comments                            |
| `listUserOverview`      | A user's mixed post/comment activity         |
| `listSubredditPosts`    | Posts in a subreddit feed                    |
| `listSubredditComments` | Recent comments in a subreddit               |
| `searchAll`             | Posts, communities, and users at once        |
| `searchCommunities`     | Communities (subreddits)                     |
| `searchPosts`           | Posts                                        |
| `searchUsers`           | Users                                        |
| `searchComments`        | Comments                                     |

## `client.linkedin` — LinkedIn

```ts theme={"dark"}
const res = await client.linkedin.searchJobs({
  keyword: 'engineer',
  location: 'Remote',
});
if (res.type === 'success') console.log(res.data);
```

| Function              | What it returns                       |
| --------------------- | ------------------------------------- |
| `getCompanyFromUrl`   | A company by its universal name       |
| `getProfileFromUrl`   | A profile by its public identity      |
| `getJob`              | A job posting by URL                  |
| `getPostsFromCompany` | Posts published by a company          |
| `getPostsFromProfile` | Posts published by a profile          |
| `getPostDetail`       | A single post by its activity URN     |
| `getActivityComments` | The comment thread on a post          |
| `getProfileComments`  | Comments authored by a member         |
| `getProfileReactions` | Posts a member reacted to             |
| `getPostReactions`    | Members who reacted to a post         |
| `searchAll`           | Results across every vertical         |
| `searchCompanies`     | Companies                             |
| `searchCourses`       | Courses                               |
| `searchEvents`        | Events                                |
| `searchGroups`        | Groups                                |
| `searchJobs`          | Jobs, with location and facet filters |
| `searchPeople`        | People                                |
| `searchPosts`         | Posts, with sort and date filters     |
| `searchProducts`      | Products                              |
| `searchSchools`       | Schools                               |
| `searchServices`      | Services                              |

## Next steps

<CardGroup cols={2}>
  <Card title="Account management" icon="key" href="/sdk/account">
    Create API keys and manage credits from code.
  </Card>

  <Card title="Errors" icon="list-check" href="/sdk/errors-and-types">
    Handle API and network failures predictably.
  </Card>
</CardGroup>
