def METHOD_NAME(self, query, from_date=None, to_date=None, page=1):
    data = {
        'q': query,
        'api-key': self.credentials.key,
        'page': str(page),
        'show-fields': 'headline,trailText,body,bodyText,lang,wordcount',
        'show-tags': 'all',
    }
    if from_date is not None:
        data['from-date'] = from_date
    if to_date is not None:
        data['to-date'] = to_date
    return data