get
\(DEPRECATED\) Search results

https://CounterSocial.example/api/v1/search

Returns: Results, but hashtags is an array of strings instead of an array of Tag.
OAuth: User token + read:search
Version history:
1.1 - added, limit hardcoded to 5
1.5.0 - now requires authentication
2.8.0 - added limit, pagination, and account options
3.0.0 - removed; use v2 instead

Request

Query Parameters
q
required
string
The search query
resolve
optional
string
Attempt Webfinger lookup. Defaults to false.
limit
optional
string
Max number of results to load per type. Defaults to 20
type
optional
string
Enum(accounts,hashtags,statuses)
offset
optional
string
Offset in search results.
min_id
optional
string
Return results immediately newer than this id
max_id
optional
string
Return results older than this id
account_id
optional
string
Return statuses only from this account

Response

200: Success

v1 search was deprecated because hashtags were returned as strings instead of as Tag entities.

{
  "accounts": [...],
  "statuses": [...],
  "hashtags": ["cats","catsofCounterSocial"]
}

401: Unauthorized

Invalid or missing Authorization header

{
  "error": "The access token is invalid"
}

Last updated December 27, 2020 ?? Improve this page