I think this link should help, for labels at least:
https://docs.github.com/en/github/searching-for-information-on-github/searching-issues-and-pull-requests#search-by-label

For labels, you use:

label:"label name"