# Medium Post Detail API Documentation

Retrieve a single public Medium post: title, url, visibility, lock state, clap count, reading time in whole minutes (at least 1), publish date (ISO 8601, UTC), creator, collection, subtitle, response count, member-only flag and the free body text as paragraphs and plain text. Member-only posts return preview text only, never member content. A post with zero claps is a successful response.

- **Documentation:** [https://scrappa.co/docs/medium-api/medium_post](https://scrappa.co/docs/medium-api/medium_post)
- **API group:** Medium API
- **Endpoint:** `GET https://scrappa.co/api/medium/post`

## 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 |
| --- | --- | --- | --- |
| `post_id` | string | Yes | Medium post id, e.g. e8864c83702e. Example: e8864c83702e. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/medium/post?post_id=e8864c83702e"
```

## Example response

```json
{
    "success": true,
    "data": {
        "post": {
            "id": "e8864c83702e",
            "title": "PYTHON PROGRAMMING",
            "url": "https://medium.com/@sahakarthi3/python-programming-e8864c83702e",
            "visibility": "PUBLIC",
            "is_locked": false,
            "clap_count": 0,
            "reading_time": 1,
            "published_at": "2026-10-01T11:02:10Z",
            "creator": {
                "id": "669aacf56bdb",
                "name": "Sahana.K",
                "username": "sahakarthi3"
            },
            "subtitle": "Zero to Hero",
            "responses_count": 0,
            "is_member_only": false,
            "body_paragraphs": [
                {
                    "type": "H2",
                    "text": "PYTHON PROGRAMMING"
                },
                {
                    "type": "P",
                    "text": "Zero to Hero"
                }
            ],
            "body_text": "PYTHON PROGRAMMING\n\nZero to Hero"
        }
    },
    "meta": {
        "endpoint_family": "post_detail",
        "billable": true
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A required query parameter is missing or invalid. This response is not billable. |
| 404 | Resource Not Found | The requested Medium resource does not exist. This response is not billable. |
| 502 | Invalid Source Response | The upstream answered with a shape that no longer matches the documented contract. This response is not billable. |
| 503 | Service Unavailable | The upstream service is temporarily unavailable. Please retry shortly. |

## 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)
