Search OneDrive
files_searchSearch a signed-in user's OneDrive for files by free text, matching names and indexed content. Returns compact fields with pagination links.
Instructions
Searches the whole of the signed-in user's OneDrive for free text, matching file names and indexed file contents, and returns the same compact fields as files_list_children plus count and nextLink. Page size defaults to 25. This endpoint accepts only a search term: it supports no date range, no file-type filter and no sort order, so narrow the results yourself or list a folder with files_list_children instead. Recently uploaded files are missing until the service has indexed them.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | Maximum number of matches to return in this page. Defaults to 25. | |
| query | Yes | Free text matched against file names and indexed file contents across the whole drive. |