# cafe.dummy.lsky.getAuthorPosts

> Published by [lsky-publisher.dummy.to](https://lexicon.garden/identity/did:plc:yuilafccwsaj7a4qkkzhttdn)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:yuilafccwsaj7a4qkkzhttdn/cafe.dummy.lsky.getAuthorPosts)
- [Documentation](https://lexicon.garden/lexicon/did:plc:yuilafccwsaj7a4qkkzhttdn/cafe.dummy.lsky.getAuthorPosts/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:yuilafccwsaj7a4qkkzhttdn/cafe.dummy.lsky.getAuthorPosts/examples)

## Definitions

### `cafe.dummy.lsky.getAuthorPosts`

**Type**: `query`

Get posts by a specific person, filtered by type.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `type` | `string` | No | Filter by post type. |
| `actor` | `string` | Yes | DID or handle of the author. |
| `limit` | `integer` | No |  |
| `cursor` | `string` | No |  |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `posts` | `array` | Yes |  |
| `cursor` | `string` | No |  |

#### Errors

- **PersonNotFound**

## Raw Schema

```json
{
  "id": "cafe.dummy.lsky.getAuthorPosts",
  "defs": {
    "main": {
      "type": "query",
      "errors": [
        {
          "name": "PersonNotFound"
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "posts"
          ],
          "properties": {
            "posts": {
              "type": "array",
              "items": {
                "ref": "cafe.dummy.lsky.defs#postView",
                "type": "ref"
              }
            },
            "cursor": {
              "type": "string"
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "required": [
          "actor"
        ],
        "properties": {
          "type": {
            "type": "string",
            "default": "post",
            "description": "Filter by post type.",
            "knownValues": [
              "post",
              "chirp"
            ]
          },
          "actor": {
            "type": "string",
            "description": "DID or handle of the author."
          },
          "limit": {
            "type": "integer",
            "default": 20,
            "maximum": 100,
            "minimum": 1
          },
          "cursor": {
            "type": "string"
          }
        }
      },
      "description": "Get posts by a specific person, filtered by type."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
