Skip to content

Commit

Permalink
docs(users): 📝 add docs for search users
Browse files Browse the repository at this point in the history
  • Loading branch information
MerleLiuKun committed Mar 18, 2024
1 parent 0f3df5e commit e9bc313
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/docs/usage/users/search.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
The Users Search endpoint provides a simple, relevance-based search interface to public user accounts on X. Try querying by topical interest, full name, company name, location, or other criteria.

You can get more information for this at [docs](https://developer.twitter.com/en/docs/twitter-api/users/search/introduction)

## Search Users

Get users that match a search query.

```python
my_api.search_users(query="developers")
# Response(data=[User(id='866707894389141505', name='Refinitiv Developers', username='Developers'), User(id='2244994945', name='Developers', username='XDevelopers')])
```
1 change: 1 addition & 0 deletions docs/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ nav:
- Follows: usage/users/follows.md
- Blocks: usage/users/blocks.md
- Mutes: usage/users/mutes.md
- Search: usage/users/search.md
- Spaces:
- Spaces Lookup: usage/spaces/spaces-lookup.md
- Search Spaces: usage/spaces/search.md
Expand Down

0 comments on commit e9bc313

Please sign in to comment.