2018-09-26 00:19:54 +02:00
|
|
|
---
|
2018-10-05 02:35:29 +02:00
|
|
|
title: Search
|
2018-09-26 00:19:54 +02:00
|
|
|
menu:
|
|
|
|
docs:
|
2018-10-05 02:35:29 +02:00
|
|
|
parent: rest-api
|
2018-09-26 00:19:54 +02:00
|
|
|
weight: 10
|
|
|
|
---
|
2018-10-05 01:43:37 +02:00
|
|
|
|
|
|
|
## GET /api/v2/search
|
|
|
|
|
|
|
|
Search for content in accounts, statuses and hashtags.
|
|
|
|
|
|
|
|
Returns [Results]({{< relref "entities.md#results" >}})
|
|
|
|
|
|
|
|
### Resource information
|
|
|
|
|
2019-01-20 09:41:37 +01:00
|
|
|
{{< api_method_info auth="Yes" user="Yes" scope="read read:search" version="2.4.1" >}}
|
2018-10-05 01:43:37 +02:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
|
|
|
|
|Name|Description|Required|Default|
|
|
|
|
|----|-----------|:------:|:-----:|
|
|
|
|
| `q` | The search query | Required ||
|
2018-10-06 00:42:15 +02:00
|
|
|
| `resolve` | Attempt WebFinger look-up | Optional |false|
|
2019-05-07 04:45:09 +02:00
|
|
|
| `limit` | Maximum number of results | Optional | 40 |
|
|
|
|
| `offset` | Offset in the search results | Optional | 0 |
|
|
|
|
| `following` | Only include accounts the user is following | Optional | false |
|