# Smashingmagazine — Wrapped API

> **You are on:** `https://api.beta.paywithlocus.com/api` | [llms.txt](https://beta.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 Smashing Magazine's library of articles, books, ebooks, newsletters, and events with powerful search and filtering capabilities. Browse by category, discover related content, explore author profiles, and stay updated with the latest design and web development resources.

**Category:** News & Media | **Website:** [smashingmagazine.com/](https://smashingmagazine.com/) | **Docs:** [parse.bot/marketplace/72e65c3b-5660-426b-8fec-8cbd8bfd30e0/smashingmagazine-com-api](https://parse.bot/marketplace/72e65c3b-5660-426b-8fec-8cbd8bfd30e0/smashingmagazine-com-api)

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

## Access

**Base URL:** `https://api.beta.paywithlocus.com/api/wrapped/parse-smashingmagazine-com-api-72e65c3b/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### Get all categories

Fetch all available article categories from the site navigation. Returns the complete list of categories with their names, slugs, and URLs.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/parse-smashingmagazine-com-api-72e65c3b/get_all_categories \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### Get article detail

Fetch full details of a single article by its URL, including the full text content, author information, publication date, and categories.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `url` | string | Yes | Full article URL (e.g. https://www.smashingmagazine.com/2026/05/architecture-local-first-web-development/). |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/parse-smashingmagazine-com-api-72e65c3b/get_article_detail \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"<string>"}'
```

### Get articles by category

List articles filtered by category slug. Returns articles from a specific category page with pagination. Each page contains approximately 10 articles.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number (1-based). |
| `slug` | string | Yes | Category slug (e.g. 'css', 'javascript', 'ux', 'design'). |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/parse-smashingmagazine-com-api-72e65c3b/get_articles_by_category \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>","slug":"<string>"}'
```

### Get book detail

Fetch full details of a specific book or ebook by its slug identifier. Returns pricing in multiple currencies, stock status, and product type.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `slug` | string | Yes | Book slug identifier (e.g. 'click-book', 'accessible-ux-research'). |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/parse-smashingmagazine-com-api-72e65c3b/get_book_detail \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"slug":"<string>"}'
```

### Get books list

Fetch the list of all Smashing Magazine printed books available in the store. Returns book name, slug, price, description, image, and ID.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/parse-smashingmagazine-com-api-72e65c3b/get_books_list \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### Get ebooks list

Fetch the list of all Smashing Magazine digital ebooks available in the store. Returns ebook name, slug, price, description, image, and ID.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/parse-smashingmagazine-com-api-72e65c3b/get_ebooks_list \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### Get events

Fetch upcoming Smashing conferences and workshops from the events page. Returns event names and URLs linking to SmashingConf.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/parse-smashingmagazine-com-api-72e65c3b/get_events \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### Get latest articles

Fetch the latest articles using the Algolia search index. Returns paginated results sorted by publication date descending. Each page contains up to 15 articles.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number (0-based). |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/parse-smashingmagazine-com-api-72e65c3b/get_latest_articles \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>"}'
```

### Get newsletter issues

Fetch the archive of past Smashing Newsletter issues with issue numbers and titles. Returns issues in reverse chronological order.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/parse-smashingmagazine-com-api-72e65c3b/get_newsletter_issues \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### Get related categories

Retrieve related categories for a given category. Returns categories that the site considers related to the specified category slug.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `slug` | string | Yes | Category slug to find related categories for (e.g. 'css', 'javascript', 'design'). |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/parse-smashingmagazine-com-api-72e65c3b/get_related_categories \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"slug":"<string>"}'
```

### Search articles

Search for articles by keyword query using Algolia. Returns paginated results matching the query. Each page contains up to 15 articles.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number (0-based). |
| `query` | string | Yes | Search keyword or phrase. |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/parse-smashingmagazine-com-api-72e65c3b/search_articles \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>","query":"<string>"}'
```
