Search

The GitBook API is currently in beta phase. If you wish to be one of our testers, please contact our team at support@gitbook.com.

get
Search content in a space

https://$HOSTNAME/v1/spaces/:space/search
Request
Response
Request
Path Parameters
space
required
string
ID of the space
Query Parameters
query
required
string
Query
Response
200: OK
{
"results": [
{
"id": "pageID",
"title": "Page Title",
"sections": []
},
...
]
}

get
Search content in an organization

https://$HOSTNAME/v1/owners/:owner/search
Request
Response
Request
Path Parameters
owner
required
string
ID of the owner
Response
200: OK
{
"spaces": [
{
"id": "spaceID",
"title": "Space Title",
"pages": [
{
"id": "pageID",
"title": "Page Title",
"sections": []
},
...
]
}
...
]
}