Run Function on request from frontend nextjs or from backend Strapi interface

Hello everyone,

Im trying to scrape some data from various sites and save data to a strapi CMS,

but i would like to request to run scrape function on request (and pass argument to a function URL for example) and not on cron timer.
Did anyone done something like this or is it even possible?

What about creating a custom route and controller?

yes partially for scraping, but for running that scraping without cron i think i need custom plugin to run it from backend.

What i need to run it from frontend i dont know. :sweat_smile: