# Team Bhp — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Access forum discussions, travelogues, news articles, and user profiles from Team-BHP.com to discover automotive insights, travel stories, and community conversations. Search threads, browse categories, and find trending discussions all in one place.

**Category:** Automotive | **Website:** [team-bhp.com/](https://team-bhp.com/) | **Docs:** [parse.bot/marketplace/247438e2-bebe-4eaa-a4f6-d49a3904fa45/team-bhp-com-api](https://parse.bot/marketplace/247438e2-bebe-4eaa-a4f6-d49a3904fa45/team-bhp-com-api)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-team-bhp-com-api-247438e2/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_forum_category

Get threads in a specific forum category by its URL slug. Returns thread listings with metadata including thread ID, title, author, replies, views, and URL. Paginated by page number.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number for pagination |
| `slug` | string | Yes | Forum category slug as it appears in the URL path. Obtain valid slugs from the get_forum_index endpoint. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-team-bhp-com-api-247438e2/get_forum_category \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>","slug":"<string>"}'
```

### get_forum_index

Get all forum categories and sub-forums from the Team-BHP forum index page. Returns the full category hierarchy with forum names and slugs. Thread/post counts may be unavailable depending on forum configuration.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-team-bhp-com-api-247438e2/get_forum_index \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_hot_threads

Get hand-picked popular discussions from the Team-BHP Hot Threads section. Returns a curated list of trending threads with titles and URLs. No pagination; the full list is returned in a single page.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-team-bhp-com-api-247438e2/get_hot_threads \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_news_listing

Get the latest automotive news articles from the Team-BHP news section. Returns paginated article listings with title, URL, summary, and date. Uses an XHR callback endpoint for pagination.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number for pagination |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-team-bhp-com-api-247438e2/get_news_listing \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>"}'
```

### get_thread

Get all posts in a specific forum thread. Returns paginated post content with author, date, and full text content. Requires the category slug, thread ID, and thread slug to construct the URL.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `category_slug` | string | Yes | Forum category slug from the thread URL path |
| `page` | integer | No | Page number for pagination |
| `thread_id` | string | Yes | Numeric thread ID |
| `thread_slug` | string | Yes | Thread URL slug |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-team-bhp-com-api-247438e2/get_thread \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"category_slug":"<string>","page":"<integer>","thread_id":"<string>","thread_slug":"<string>"}'
```

### get_user_profile

Get public profile information of a Team-BHP member.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `username` | string | Yes | Username of the member (e.g., 'gto') |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-team-bhp-com-api-247438e2/get_user_profile \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"username":"<string>"}'
```

### search_forum

Search for threads or posts in the Team-BHP forum. Returns paginated search results with thread metadata. The search is processed server-side and returns a search_id for pagination of results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number for pagination |
| `query` | string | Yes | Search keyword or phrase |
| `showposts` | integer | No | Set to 0 to search threads, or 1 to search individual posts |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-team-bhp-com-api-247438e2/search_forum \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>","query":"<string>","showposts":"<integer>"}'
```
