Adding article search functionality

Hello,
I am trying to add a search functionality to my application which can search content through out the website. Is there a way to fetch data from Prismic on Next js API endpoint as API routes do not have access to getStaticProps?

Thank you.

Hello @sean2, you can use the fulltext search option from the REST API, or configure Algolia for more advanced search functionality.

Hello @Pau, good to see you again!

I came across these links earlier, but was looking for some specific articles that explains search functionality. It is a basic functionality for a website. I wonder why even the Prismic starter templates do not have this feature, or am I missing out something here?

Anyway, thanks for the response.

It's true, we don't add this functionality in the starters. I'll add a note on our backlog for future improvements.