Filter list in discovery search function

Is there a filter list we can refer to when using discovery search function for what filters we can have for a particular query? thank you


Best Answer

  • @Ginger J. Xing

    Thanks for reaching out to us.

    If you mean a list of properties available in a given view, you can use the metadata endpoint. For example, this one https://api.refinitiv.com/discovery/search/v1/metadata/views/SearchAll provides a list of properties in the SearchAll view.

    1676025993907.png

    However, if you are using the Refinitiv Data Library for Python, you can use the following code.

    response = search.metadata.Definition(
        view = search.Views.SEARCH_ALL  # Required parameter
    ).get_data()


    response.data.df

    The output is:

    1676026060398.png

    I hope that this information is of help.