Bugzilla API: Beginner’s Tips and Recommendations

If you’re new to development with the Bugzilla API, this is the post for you! I will be sharing some pointers and tips to getting started with the Bugzilla API in your code.

For reference, the official Bugzilla REST API is here.

  1. Make sure you have requests set up in your preferred environment. In my case, that meant importing Python requests.
  2. If you are doing queries that involve logging in, remember to create a mock Bugzilla account. If you plan to be hosting your code on Github on a public repo, your credentials will be exposed to the public. Creating an account that you don’t mind people seeing (and potentially using).
  3. For combining multiple queries, it may be more complicated. Go to the Bugzilla website and perform your desired search. Then, click on the REST API button at the bottom of the page. It will provide you with a URL that you can ‘Get’.

For example, I was looking for bugs in Firefox that are Tracking 39+ and have a crash signature, and I wanted the JSON that gets returned to contain the ID and crash signatures of the bug.


That is how you would go about it! Once you do this frequently, it will be easier to piece queries together but for now the REST API button is your friend when piecing them together.

That’s all for now, let me know if you have any other questions. And happy coding!


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s