# Faradars — 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.

> Search and explore thousands of Persian video courses on Faradars, discovering detailed information about each course including its category, description, and curriculum. Browse through available course categories to find educational content that matches your learning interests.

**Category:** Education | **Website:** [faradars.org/](https://faradars.org/) | **Docs:** [parse.bot/marketplace/7fe68df7-1533-44c9-a6b7-8a8e93d4ab6c/faradars-org-api](https://parse.bot/marketplace/7fe68df7-1533-44c9-a6b7-8a8e93d4ab6c/faradars-org-api)

Pay-per-use API proxy for Locus Pro. Each call burns credits from your workspace balance.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/credits/faradars/`
**Auth:** `Authorization: Bearer <LOCUS_CREDITS_SECRET_KEY>` (an `lcr_` secret key or a scoped `lcac_` agent credential)
**Required header:** `Idempotency-Key: <fresh UUID per call>`. A retry with the same key replays the stored result without a new charge.
**Response:** the provider response after any endpoint-specific normalization. `X-Locus-Credits-Charged` carries the charge and `X-Locus-Credits-Balance` the remaining balance. Insufficient credits return `402` before the provider is called.
**Pricing:** estimated costs below are USD. Locus debits the credit equivalent at your workspace rate.

Full call contract: https://docs.paywithlocus.com/api-reference/introduction

> Using a Pay With Locus wallet key (`claw_` prefix)? Wallet routes are documented separately: https://docs.paywithlocus.com/wrapped-apis/for-agents

## Endpoints

### Get course details

Get detailed information about a specific course by its slug. Returns full metadata including title, description, pricing, duration, instructors, categories, learning objectives, rating, and course content structure. The slug is available from search_courses results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `slug` | string | Yes | Course slug identifier (e.g. 'install-python-fvpy326'). Available from search_courses results. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/faradars/get-course-details \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"slug":"<string>"}'
```

### List categories

List all course categories as a hierarchical tree. Each category includes an ID, name, slug, and nested children. Use category IDs to filter search_courses results. One upstream round-trip, no parameters.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/faradars/list-categories \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### Search courses

Search courses by keyword with optional category filtering and sorting. Returns paginated results with course summaries including title, price, duration, instructor, and popularity metrics. One upstream round-trip per call.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `category_id` | string | No | Category ID to filter results. IDs are available from the list_categories endpoint (e.g. '1049' for programming). |
| `count` | integer | No | Number of results per page (max 100). |
| `page` | integer | No | Page number for pagination (1-based). |
| `sort` | string | No | Sort order for results. |
| `term` | string | No | Search keyword (e.g. 'python', 'excel'). Omitting returns all courses. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/faradars/search-courses \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"category_id":"<string>","count":"<integer>","page":"<integer>","sort":"<string>","term":"<string>"}'
```

## Next steps

- [All wrapped API providers](https://paywithlocus.com/wapi/index.md): pick another provider.
- [Find and call tools](https://paywithlocus.com/agent/tools.md): price ceilings, async results, and errors.
- [Credits and billing](https://paywithlocus.com/agent/billing.md): what a call costs and how to add credits.
- [Agent docs index](https://paywithlocus.com/agent/index.md): every Locus agent page.