import json, urllib.request TOKEN = open('...nAPI = 'https://www.brettspiel-news.de/api/index.php/v1/content/articles' HEADERS = {'Accept': 'application/vnd.api+json', 'X-Joomla-Token': TOKEN} for aid in [15488, 15485, 15486, 15487]: req = urllib.request.Request(f'{API}/{aid}', headers=HEADERS) r = json.loads(urllib.request.urlopen(req).read()) attrs = r['data']['attributes'] text = attrs.get('text', '') has_box = ('Vorbestellbar' in text[:600]) or ('border: 2px' in text[:600]) has_rm = 'system-readmore' in text print(f"#{aid}: {len(text)} chars | box={'OK' if has_box else 'MISSING'} | readmore={'OK' if has_rm else 'MISSING'}") print(f" Start: {text[:200]}") print()