app.bsky.unspecced.search_posts_skeleton#

pydantic model atproto.xrpc_client.models.app.bsky.unspecced.search_posts_skeleton.Params#

Bases: ParamsModelBase

Parameters model for app.bsky.unspecced.searchPostsSkeleton.

Show JSON schema
{
   "title": "Params",
   "description": "Parameters model for :obj:`app.bsky.unspecced.searchPostsSkeleton`.",
   "type": "object",
   "properties": {
      "q": {
         "title": "Q",
         "type": "string"
      },
      "cursor": {
         "anyOf": [
            {
               "type": "string"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "title": "Cursor"
      },
      "limit": {
         "anyOf": [
            {
               "maximum": 100,
               "minimum": 1,
               "type": "integer"
            },
            {
               "type": "null"
            }
         ],
         "default": 25,
         "title": "Limit"
      }
   },
   "additionalProperties": false,
   "required": [
      "q"
   ]
}

Fields:
field cursor: Optional[str] = None#

optional pagination mechanism; may not necessarily allow scrolling through entire result set.

field limit: Optional[int] = 25#

Limit.

Constraints:
  • ge = 1

  • le = 100

field q: str [Required]#

search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended.

class atproto.xrpc_client.models.app.bsky.unspecced.search_posts_skeleton.ParamsDict#

Bases: TypedDict

cursor: typing_extensions.NotRequired[Optional[str]]#

optional pagination mechanism; may not necessarily allow scrolling through entire result set.

limit: typing_extensions.NotRequired[Optional[int]]#

Limit.

q: str#

search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended.

pydantic model atproto.xrpc_client.models.app.bsky.unspecced.search_posts_skeleton.Response#

Bases: ResponseModelBase

Output data model for app.bsky.unspecced.searchPostsSkeleton.

Show JSON schema
{
   "title": "Response",
   "description": "Output data model for :obj:`app.bsky.unspecced.searchPostsSkeleton`.",
   "type": "object",
   "properties": {
      "posts": {
         "items": {
            "$ref": "#/$defs/SkeletonSearchPost"
         },
         "title": "Posts",
         "type": "array"
      },
      "cursor": {
         "anyOf": [
            {
               "type": "string"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "title": "Cursor"
      },
      "hitsTotal": {
         "anyOf": [
            {
               "type": "integer"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "title": "Hitstotal"
      }
   },
   "$defs": {
      "SkeletonSearchPost": {
         "additionalProperties": false,
         "description": "Definition model for :obj:`app.bsky.unspecced.defs`.",
         "properties": {
            "uri": {
               "title": "Uri",
               "type": "string"
            },
            "$type": {
               "const": "app.bsky.unspecced.defs#skeletonSearchPost",
               "default": "app.bsky.unspecced.defs#skeletonSearchPost",
               "title": "$Type"
            }
         },
         "required": [
            "uri"
         ],
         "title": "SkeletonSearchPost",
         "type": "object"
      }
   },
   "additionalProperties": false,
   "required": [
      "posts"
   ]
}

Fields:
field cursor: Optional[str] = None#

Cursor.

field hits_total: Optional[int] = None (alias 'hitsTotal')#

count of search hits. optional, may be rounded/truncated, and may not be possible to paginate through all hits.

field posts: List[models.AppBskyUnspeccedDefs.SkeletonSearchPost] [Required]#

Posts.