GET /users/{selected_user}/search/code
Search for code in the repositories of the specified user.
Note that searches can match in the file's text (content_matches
),
the path (path_matches
), or both.
You can use the same syntax for the search query as in the UI.
E.g. to search for "foo" only within the repository "demo",
use the query parameter search_query=foo+repo:demo
.
Similar to other APIs, you can request more fields using a
fields
query parameter. E.g. to get some more information about
the repository of matched files, use the query parameter
search_query=foo&fields=%2Bvalues.file.commit.repository
(the %2B
is a URL-encoded +
).
Servers
- https://api.bitbucket.org/2.0
Path parameters
Name | Type | Required | Description |
---|---|---|---|
selected_user |
String | Yes |
Either the UUID of the account surrounded by curly-braces, for example |
Query parameters
Name | Type | Required | Description |
---|---|---|---|
page |
Integer | No |
Which page of the search results to retrieve Default value: 1 |
pagelen |
Integer | No |
How many search results to retrieve per page Default value: 10 |
search_query |
String | Yes |
The search query |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.