> 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 # Method name: getGalleryItem(identifiers: GetGalleryItemIdentifiers, options: GetGalleryItemOptions) # Method package: wixProGalleryBackend # Method menu location: wixProGalleryBackend --> proGallery --> getGalleryItem # Method Link: https://dev.wix.com/docs/velo/apis/wix-pro-gallery-backend/pro-gallery/get-gallery-item.md # Method Description: Retrieves a gallery item by ID. # Method Code Examples: *** Note: do not assume any prop names or enum values other than the ones in the example. ## Get a gallery item by ID ```javascript import { proGallery } from 'wix-pro-gallery-backend'; /* Sample galleryId value: 'af5c3670-9b0f-4d86-b3b9-19fe62006c39' * * Sample itemId value: '813def66-0f0b-40b7-a9df-c731345a926f' */ export async function myGetGalleryItemFunction(galleryId, itemId) { try { const galleryItem = await proGallery.getGalleryItem({galleryId, itemId}); const galleryItemId = galleryItem._id; const galleryItemTitle = galleryItem.title; console.log('Success! Got the gallery item:', galleryItem); return galleryItem; } catch (error) { console.error(error); // Handle the error } } /* Promise resolves to: * { * "_createdDate": "Mon Feb 20 2021 15:22:15", * "_id": "813def66-0f0b-40b7-a9df-c731345a926f", * "_updatedDate": Tue Mar 30 2021 15:23:22, * "description": "This is the first item in my gallery.", * "image": { * "imageInfo": "wix:image://v1/38939f9568z222d6avc6285c9ac1e9129.jpg/38939f9568z222d6avc6285c9ac1e9129.jpg#originWidth=200&originHeight=199" * } * "sortOrder": 1657439075188 * "title": "My Gallery Item" * "type": "IMAGE" * } */ ``` ---