How to override the Search bar functionality?

Is there any updates to this? I’ve looked into how to override the StoreFront search but it appears its not possible. The closest I got was the predictive-search where I thought I could just change the url here:

fetch(${**routes.predictive_search_url**}?q=${encodeURIComponent(searchTerm)}&section_id=predictive-search, {
signal: this.abortController.signal,
})

But the response here is HTML .. I was hoping i could intercept the JSON payload instead so that it would work with any theme instead of theme specific changes. I don’t want to have to create my own search blocks, just be able to intercept the storefront search call and return my own payload to the site. Is this possible?