import requests
from dateutil.parser import parse
SEARCH = 'puzzle'
YEAR = 2012
url = f'https://itunes.apple.com/search?term={SEARCH}&limit=10000&media=software'
res = requests.get(url).json()
for item in res.get('results'):
date_release = item.get('currentVersionReleaseDate')
dt = parse(date_release)
if YEAR >= dt.year:
print(item.get('trackViewUrl'))
https://apps.apple.com/us/app/whats-my-iq/id547094449?uo=4
https://apps.apple.com/us/app/amazing-breaker-free/id448129309?uo=4