# Public catalog

Browse and search the whole approved catalog — open to every account, buyer or author. Build price trackers, portfolio showcases or category dashboards. Returns storefront data only: buyer-facing prices (discounts included) and ratings — never files, download links, sales counts or buyer identities. Needs `catalog:read`.

> **Note:** Any registered account can create a token with the `catalog:read` permission — you do not need to be an author or have made a purchase.

## Search items

`GET /api/catalog/items`

| Parameter | Type | Description |
|---|---|---|
| `search` | string | full-text search across item names and tags |
| `category` | string | a category slug (see the categories endpoint) |
| `sort` | string | latest (default) \| popular \| rating |
| `per_page` | integer | default 25, max 50 |
| `page` | integer | page number |
```bash
curl "https://sellmycode.net/api/catalog/items?search=woocommerce&sort=popular" \
  -H "Authorization: Bearer YOUR_API_KEY"
```
```json
{
  "status": "success",
  "pagination": { "page": 1, "per_page": 25, "total": 64, "last_page": 3 },
  "items": [
    {
      "id": 123,
      "name": "My Theme",
      "url": "https://sellmycode.net/item/my-theme/123",
      "thumbnail": "https://sellmycode.net/files/thumbnails/…",
      "category": { "id": 4, "name": "WordPress", "slug": "wordpress" },
      "author": "janedoe",
      "price": { "regular": 29.0, "extended": 145.0 },
      "currency": "USD",
      "rating": { "average": 4.8, "count": 36 },
      "version": "2.1.0",
      "updated_at": "2026-07-10T08:00:00+00:00",
      "published_at": "2026-01-05T12:00:00+00:00"
    }
  ]
}
```
## One item

`GET /api/catalog/items/{id}`

Full public detail of one approved item — the list fields plus description, media previews, included files list and framework.
```bash
curl https://sellmycode.net/api/catalog/items/123 \
  -H "Authorization: Bearer YOUR_API_KEY"
```
## Categories

`GET /api/catalog/categories`

All categories with their approved-item counts — use the slug as the `category` filter above.

```json
{
  "status": "success",
  "categories": [
    { "id": 4, "name": "WordPress", "slug": "wordpress", "url": "https://sellmycode.net/categories/wordpress", "items_count": 128 }
  ]
}
```

---
Source: https://sellmycode.net/api-docs/catalog
