# 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. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-faradars-org-api-7fe68df7/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## 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/parse-faradars-org-api-7fe68df7/get_course_details \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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/parse-faradars-org-api-7fe68df7/list_categories \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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/parse-faradars-org-api-7fe68df7/search_courses \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"category_id":"<string>","count":"<integer>","page":"<integer>","sort":"<string>","term":"<string>"}'
```
