Bitbucket Search API

The Search API from Bitbucket — 3 operation(s) for search.

Operations 3

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /teams/{username}/search/code Search code across a team's repositories · Search for code in a team's repositories #
Ask an LLM
“How do I find where a function is used across all of my team's repos?”
“Can code search match file paths as well as file contents for a team?”
Tell an agent
Search team {username}'s repositories for {search_query}.
Find code matching {search_query} across team {username}, {pagelen} results per page.
GET /users/{selected_user}/search/code Search code in a user's repositories · Search for code in a user's repositories #
Ask an LLM
“How can I search the code in one user's personal repositories?”
“Is there a way to grep a specific developer's repos for a string?”
Tell an agent
Search user {selected_user}'s repositories for {search_query}.
Find code matching {search_query} in repos owned by {selected_user}, page {page}.
GET /workspaces/{workspace}/search/code Search code across a workspace · Search for code in a workspace #
Ask an LLM
“Where in my workspace is a particular config key referenced?”
“Can I search every repository in a workspace for a code snippet?”
Tell an agent
Search workspace {workspace} for code matching {search_query}.
Find {search_query} in all repos of workspace {workspace}, {pagelen} per page.

Documentation

Specifications

Schemas & Data

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/bitbucket:bitbucket-search-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

bitbucket-search-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Bitbucket Search API
  description: Code against the Bitbucket API to automate simple tasks, embed Bitbucket data into your own site, build mobile or desktop apps, or even add custom UI add-ons into Bitbucket itself using the Connect framework.
  version: '2.0'
  termsOfService: https://www.atlassian.com/legal/customer-agreement
  contact:
    name: Bitbucket Support
    url: https://support.atlassian.com/bitbucket-cloud/
    email: support@bitbucket.org
servers:
- url: https://api.bitbucket.org/2.0
tags:


# --- truncated at 32 KB (146 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/bitbucket/refs/heads/main/openapi/bitbucket-search-api-openapi.yml