i want to create flask app for 

# load .env file
load_dotenv()

# fetching data from env file
API_KEY = os.environ['API_KEY']
BASE_URL = os.environ['BASE_URL'] 

# API method to fetch all videos
def get_all_videos():
    response = requests.get(f"{BASE_URL}/videos/get-all", headers={'X-API-Key': API_KEY})
    if response.status_code == 200:
        return response.json()
    else:
        return 'error something'
print(get_all_videos())

and the output of this code 

{'status': True, 'pagination': {'page': 1, 'per_page': 20, 'total': 2000}, 'data': [{'id': 5864828, 'source': 'Xvideos', 'source_id': '32454477', 'source_published_day': None, 'source_published_month': None, 'source_published_year': None, 'title': '(samantha hayes) Naughty Cute GF Like Hard Sex On Tape video-20', 'title_alphabet': 'latin', 'embed_url': 'https://www.xvideos.com/embedframe/32454477', 'has_preview': True, 'preview_url': 'https://cdn1.adultvideosapi.com/data/temp/sites/6908b978389d19bf597bce41bef03a8434c2a03c/202205/1914/26/9571ac70-02b3-43c6-bcf2-c54ecf20a000.mp4', 'default_thumb_url': 'https://cdn1.adultvideosapi.com/data/temp/sites/6908b978389d19bf597bce41bef03a8434c2a03c/202205/2600/10/8309f798-0442-45be-ac7e-b5e0e7c99604.jpg', 'other_thumbs_url': [''], 'rating': 1, 'duration': 428, 'views_count': 33696, 'votes_count': 17, 'votes_up': 14, 'votes_down': 3, 'votes_pct': 82.35, 'is_best': False, 'sections': ['straight'], 'categories': [42, 40, 1, 48, 93]}, {'id': 5881401, 'source': 'Xvideos', 'source_id': '3264209', 'source_published_day': None, 'source_published_month': None, 'source_published_year': None, 'title': 'Webcam orgasm with teen Flora', 'title_alphabet': 'latin', 'embed_url': 'https://www.xvideos.com/embedframe/3264209', 'has_preview': True, 'preview_url': 'https://cdn1.adultvideosapi.com/data/temp/sites/6908b978389d19bf597bce41bef03a8434c2a03c/202205/2003/30/99183d7c-f3a7-48fd-a671-20701b701117.mp4', 'default_thumb_url': 'https://cdn1.adultvideosapi.com/data/temp/sites/6908b978389d19bf597bce41bef03a8434c2a03c/202205/2600/15/773258ea-5278-4ec9-8c77-41ed406529fe.jpg', 'other_thumbs_url': [''], 'rating': 2, 'duration': 433, 'views_count': 294756, 'votes_count': 235, 'votes_up': 160, 'votes_down': 75, 'votes_pct': 68.09, 'is_best': True, 'sections': ['straight'], 'categories': [42, 10, 1, 90]}, {'id': 1869166, 'source': 'Pornhub', 'source_id': 'ph5ff36d26d9025', 'source_published_day': 4, 'source_published_month': 1, 'source_published_year': 2021, 'title': 'HOT MILF Shakes Her Milky Boobs And Squirt Breast Milk - Wet Huge Saggy Tits!!', 'title_alphabet': 'latin', 'embed_url': 'https://www.pornhub.com/embed/ph5ff36d26d9025', 'has_preview': True, 'preview_url': 'https://cdn1.adultvideosapi.com/data/temp/sites/a4235f121db031ec6571d46a8c96bc170d48f6f0/202205/1310/15/f6939b43-6125-4204-a04e-cb4d39145c9a.mp4', 'default_thumb_url': 'https://cdn1.adultvideosapi.com/data/temp/sites/a4235f121db031ec6571d46a8c96bc170d48f6f0/202205/2515/42/e15381f0-a357-4ead-9b40-65f49aaa195f.jpg', 'other_thumbs_url': ['https://di.phncdn.com/videos/202101/04/379686782/original/(m=eaf8Ggaaaa)(mh=TTxEhig95UFnO63T)1.jpg', 'https://di.phncdn.com/videos/202101/04/379686782/original/(m=eaf8Ggaaaa)(mh=TTxEhig95UFnO63T)2.jpg', 'https://di.phncdn.com/videos/202101/04/379686782/original/(m=eaf8Ggaaaa)(mh=TTxEhig95UFnO63T)3.jpg', 'https://di.phncdn.com/videos/202101/04/379686782/original/(m=eaf8Ggaaaa)(mh=TTxEhig95UFnO63T)4.jpg', 'https://di.phncdn.com/videos/202101/04/379686782/original/(m=eaf8Ggaaaa)(mh=TTxEhig95UFnO63T)5.jpg', 'https://di.phncdn.com/videos/202101/04/379686782/original/(m=eaf8Ggaaaa)(mh=TTxEhig95UFnO63T)6.jpg', 'https://di.phncdn.com/videos/202101/04/379686782/original/(m=eaf8Ggaaaa)(

and so on 

so i give further instrection if you understand what is code and what output comes form code
