def METHOD_NAME(offset, limit):
    try:
        search_filters = parse_search_query(
            request.query_params.get("query", ""), config=replay_url_parser_config
        )
    except InvalidSearchQuery as e:
        raise ParseError(str(e))
    return query_replays_collection(
        project_ids=filter_params["project_id"],
        start=filter_params["start"],
        end=filter_params["end"],
        environment=filter_params.get("environment"),
        sort=filter_params.get("sort"),
        fields=request.query_params.getlist("field"),
        limit=limit,
        offset=offset,
        search_filters=search_filters,
        organization=organization,
        actor=request.user,
    )