Box Developer Documentation
 

    Requesting extra fields

    Guides Search Requesting extra fields
    Edit this page

    Requesting extra fields

    By default, the search API returns the standard format of a File, Folder, or Web Link. Each of these resources supports additional fields that can be requested through the fields query parameter.

    cURL
    curl -i -X GET "https://api.box.com/2.0/search?query=sales&fields=name,tags" \
        -H "Authorization: Bearer <ACCESS_TOKEN>"
    

    For more details on these fields, please check out the full File, full Folder, and full Web Link resources.

    When the fields parameter is used to query additional information about the items, only those fields and a few base fields (id, type, name, etc) are returned. Any fields that were originally in the response would now have to be requested explicitly.