How do I create a RESTful API in Flask for use in a project?

I have a Flask project I’m currently working on and I wish to create an API whose primary purpose is to deal with data scraped from websites. I am confused as to how my project is supposed to be structured.

  1. Do I even require an API in the first place?
  2. How should I associate the scraper with the rest of the project?
  3. Should I create a new package for the scraping part?

I would appreciate it if I could receive some insight as to how people would generally go about implementing such a project since I have not dealt with large application structures before.

Thank you.