def tag_feed(self, tag, **kwargs):
        """
        Get a tag feed.

        :param tag:
        :param kwargs:
            - **count**: Number of records to return
            - **end_cursor**: For pagination
        :return:
        """
        count = kwargs.pop('count', 16)
        if count > 50:
            raise ValueError('count cannot be greater than 50')

        end_cursor = kwargs.pop('end_cursor', None) or kwargs.pop('max_id', None)

        variables = {
            'tag_name': tag.lower(),
            'first': int(count),
            'show_ranked': False,
        }
        if end_cursor:
            variables['after'] = end_cursor
        query = {
            'query_hash': 'f92f56d47dc7a55b606908374b43a314',
            'variables': json.dumps(variables, separators=(',', ':'))
        }

        return self._make_request(self.GRAPHQL_API_URL, query=query)

        Get a tag feed.

        :param tag:
        :param kwargs:
            - **count**: Number of records to return
            - **end_cursor**: For pagination
        :return:
        
instagram_web_api/client.py