# Mastodon Statuses API Documentation

Read the public posting history of a Mastodon account with cursor-based pagination. Returns an array of status objects including content, visibility, language, counts, media attachments, tags, and the embedded account. Use max_id or min_id from the Link header for pagination. A valid empty array is a successful response.

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

## 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 | Account ID from a profile lookup. Example: 1. |
| `limit` | integer | No | Statuses per page, 1 to 40. Defaults to 20. |
| `max_id` | string | No | Cursor: return statuses older than this ID. |
| `min_id` | string | No | Cursor: return statuses newer than this ID. |
| `exclude_replies` | boolean | No | Filter out replies. |
| `exclude_reblogs` | boolean | No | Filter out boosts. |
| `only_media` | boolean | No | Only statuses with media attachments. |

## Example request

```bash
#!/bin/bash

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

## Example response

```json
{
    "success": true,
    "data": [
        {
            "id": "117429935156576243",
            "content": "",
            "content_text": "",
            "visibility": "public",
            "language": null,
            "favourites_count": 0,
            "reblogs_count": 0,
            "replies_count": 0,
            "url": "https://mastodon.social/@Gargron/117429935156576243",
            "account": {
                "id": "1",
                "username": "Gargron"
            }
        }
    ]
}
```

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