Yes. They run an indexer and essentially crawl all known relays for notes and events. Though Nostr.band has an API and Snort uses it. Other clients could too. nosWhere will have this available soon.
Discussion
Cool, if it’s a public api I will add this to my client thanks