prototypey.org - atproto lexicon typescript toolkit - mirror https://github.com/tylersayshi/prototypey
1{
2 "type": "query",
3 "description": "Find posts matching search criteria",
4 "parameters": {
5 "type": "params",
6 "properties": {
7 "q": {
8 "type": "string",
9 "required": true
10 },
11 "sort": {
12 "type": "string",
13 "enum": ["top", "latest"],
14 "default": "latest"
15 },
16 "limit": {
17 "type": "integer",
18 "minimum": 1,
19 "maximum": 100,
20 "default": 25
21 },
22 "cursor": {
23 "type": "string"
24 }
25 },
26 "required": ["q"]
27 },
28 "output": {
29 "encoding": "application/json",
30 "schema": {
31 "type": "object",
32 "properties": {
33 "cursor": {
34 "type": "string"
35 },
36 "hitsTotal": {
37 "type": "integer"
38 },
39 "posts": {
40 "type": "array",
41 "items": {
42 "type": "ref",
43 "ref": "app.bsky.feed.defs#postView"
44 },
45 "required": true
46 }
47 },
48 "required": ["posts"]
49 }
50 },
51 "errors": [
52 {
53 "name": "BadQueryString"
54 }
55 ]
56}