> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt # QueryFileDescriptors # Package: mediaManager # Namespace: FilesService # Method link: https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/query-file-descriptors.md ## Permission Scopes: Read Media Manager: SCOPE.DC-MEDIA.READ-MEDIAMANAGER ## Introduction Retrieves a list of files in the Media Manager, given the provided [cursor paging](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-the-wix-api-query-language.md#cursor-paging), filtering, and sorting. Up to 200 files can be returned per request. When filtering by `mediaType`, supported values are: `IMAGE`, `VIDEO`, `AUDIO`, `DOCUMENT`, `VECTOR`, `ARCHIVE`, and `MODEL3D`. To learn about working with *Query* methods, see [API Query Language](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-the-wix-api-query-language.md) and [Sorting and Paging](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-sorting-and-paging.md). --- ## REST API ### Schema ``` Method: queryFileDescriptors Description: Retrieves a list of files in the Media Manager, given the provided [cursor paging](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-the-wix-api-query-language.md#cursor-paging), filtering, and sorting. Up to 200 files can be returned per request. When filtering by `mediaType`, supported values are: `IMAGE`, `VIDEO`, `AUDIO`, `DOCUMENT`, `VECTOR`, `ARCHIVE`, and `MODEL3D`. To learn about working with *Query* methods, see [API Query Language](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-the-wix-api-query-language.md) and [Sorting and Paging](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-sorting-and-paging.md). URL: https://www.wixapis.com/site-media/v1/files/query Method: POST Method parameters: param name: query | type: CursorQuery - name: cursorPaging | type: CursorPaging | description: Cursor paging options. Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language.md#cursor-paging). - name: limit | type: integer | description: Maximum number of items to return in the results. - name: cursor | type: string | description: Pointer to the next or previous page in the list of results. Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response. Not relevant for the first request. - name: filter | type: object | description: Filter object. Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language.md#filters). - name: sort | type: array | description: Sort object. Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language.md#sorting). - name: fieldName | type: string | description: Name of the field to sort by. - name: order | type: SortOrder | description: Sort order. Use `ASC` for ascending order or `DESC` for descending order. Default: `ASC` - enum: ASC, DESC Return type: QueryFileDescriptorsResponse - name: files | type: array | description: Retrieved files that match the query. - name: id | type: string | description: File GUID. Generated when a file is uploaded to the Media Manager. - name: displayName | type: string | description: File name as it appears in the Media Manager. - name: url | type: string | description: Static URL of the file. - name: parentFolderId | type: string | description: GUID of the file's parent folder. - name: hash | type: string | description: File hash. - name: sizeInBytes | type: string | description: Size of the uploaded file in bytes. - name: private | type: boolean | description: Whether the file is public or private. Learn more about [private files](https://dev.wix.com/docs/rest/assets/media/media-manager/files/private-files.md). - name: mediaType | type: MediaType | description: Media file type. - enum: UNKNOWN, IMAGE, VIDEO, AUDIO, DOCUMENT, VECTOR, ARCHIVE, MODEL3D, OTHER - name: media | type: FileMedia | description: Media file content. - ONE-OF: - name: image | type: ImageMedia | description: Information about the image. - name: image | type: Image | description: Image data. - name: id | type: string | description: WixMedia image GUID. - name: url | type: string | description: Image URL. - name: height | type: integer | description: Original image height. - name: width | type: integer | description: Original image width. - name: altText | type: string | description: Image alt text. - name: filename | type: string | description: Image filename. - name: colors | type: Colors | description: Image colors. - name: prominent | type: Color | description: Main color of the image. - name: hex | type: string | description: HEX color. - name: rgb | type: ColorRGB | description: RGB color. - name: r | type: integer | description: Red channel. - name: g | type: integer | description: Green channel. - name: b | type: integer | description: Blue channel. - name: palette | type: array | description: Color palette of the image. - name: faces | type: array | description: Information about faces in the image. Use to crop images without cutting out faces. - name: confidence | type: number | description: The accuracy percentage of the face recognition. The likelihood that a face is detected. - name: x | type: integer | description: Top left x pixel coordinate of the face. - name: y | type: integer | description: Top left y pixel coordinate of the face. - name: height | type: integer | description: Face pixel height. - name: width | type: integer | description: Face pixel width. - name: previewImage | type: Image | description: Information about the image preview. You can use this to display a preview for private images. - name: caption | type: string | description: Optional, An AI generated description of the image - name: video | type: VideoV2 | description: Information about the video. - name: id | type: string | description: WixMedia GUID. - name: resolutions | type: array | description: Available resolutions for the video, starting with the optimal resolution. - name: url | type: string | description: Video URL. - name: height | type: integer | description: Video height. - name: width | type: integer | description: Video width. - name: format | type: string | description: Video format Possible values: ['144p.mp4' '144p.webm' '240p.mp4' '240p.webm' '360p.mp4' '360p.webm' '480p.mp4' '480p.webm' '720p.mp4' '720p.webm' '1080p.mp4' '1080p.webm', 'hls' ] - name: filename | type: string | description: Video filename. - name: audio | type: AudioV2 | description: Information about the audio. - name: id | type: string | description: WixMedia GUID. - name: assets | type: array