# Substack Publication Info API Documentation

Retrieve the public information of a Substack publication: name, subdomain, public URL, description, author and hero image URL. The subscriber count is not exposed by the upstream and is omitted. A publication with an empty description is still a successful response.

- **Documentation:** [https://scrappa.co/docs/substack-api/substack_publication](https://scrappa.co/docs/substack-api/substack_publication)
- **API group:** Substack API
- **Endpoint:** `GET https://scrappa.co/api/substack/publication`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `publication` | string | Yes | Substack publication subdomain. Example: slowboring. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/substack/publication?publication=slowboring"
```

## Example response

```json
{
    "success": true,
    "data": {
        "publication": {
            "name": "Slow Boring",
            "subdomain": "slowboring",
            "url": "https://slowboring.substack.com",
            "description": "Start your day with pragmatic takes on politics and public policy.",
            "author": "Matthew Yglesias",
            "hero_image_url": "https://substackcdn.com/image/fetch/..."
        }
    },
    "meta": {
        "endpoint_family": "publication_info"
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | The publication parameter is missing or not a valid Substack subdomain. This response is not billable. |
| 404 | Publication Not Found | The requested Substack publication was not found. This response is not billable. |
| 503 | Upstream Unavailable | The Substack publication could not be fetched. Failed requests are never billed; retry after a moment. |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
