# Mastodon Status Context API Documentation

Fetch a single Mastodon status with its full conversation context: ancestors (parent posts) and descendants (replies). Returns an object with ancestors and descendants arrays. Useful for reading entire threads.

- **Documentation:** [https://scrappa.co/docs/mastodon-api/mastodon_status](https://scrappa.co/docs/mastodon-api/mastodon_status)
- **API group:** Mastodon API
- **Endpoint:** `GET https://scrappa.co/api/mastodon/status`

## 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 |
| --- | --- | --- | --- |
| `instance` | string | No | Public Mastodon hostname. Defaults to mastodon.social. |
| `id` | string | Yes | Status ID from a statuses or hashtag response. Example: 117429466327292556. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/mastodon/status?instance=mastodon.social&id=117429466327292556"
```

## Example response

```json
{
    "success": true,
    "data": {
        "ancestors": [
            {
                "id": "117429380693278565",
                "content": "RE: thread",
                "content_text": "RE: thread",
                "url": "https://caneandable.social/@WeirdWriter/117429380684940393"
            }
        ],
        "descendants": [
            {
                "id": "117429522442252174",
                "content": "The thread is a gold mine!",
                "content_text": "The thread is a gold mine!",
                "url": "https://mastodon.gamedev.place/@duke_of_germany/117429522402638522"
            }
        ]
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A public parameter or range is invalid. This response is not billable. |
| 502 | Invalid Source Response | Mastodon returned an unexpected response. This response is not billable. |

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