מוצג לך תיעוד של הגרסה הקודמת של Google Photos Library API.
Method: mediaItems.get
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-25 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-25 (שעון UTC)."],[[["\u003cp\u003eThis endpoint retrieves a specific media item using its unique identifier.\u003c/p\u003e\n"],["\u003cp\u003eThe request is made using an HTTP GET request to the specified URL with the \u003ccode\u003emediaItemId\u003c/code\u003e as a path parameter.\u003c/p\u003e\n"],["\u003cp\u003eAn empty request body is required, and a successful response returns a \u003ccode\u003eMediaItem\u003c/code\u003e object.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization is necessary using one of the listed OAuth scopes related to Google Photos Library access.\u003c/p\u003e\n"]]],["Retrieves a specific media item using its identifier. The request is a `GET` to the provided URL, `https://photoslibrary.googleapis.com/v1/mediaItems/{mediaItemId}`, with the `mediaItemId` parameter being mandatory. The request body must be empty. A successful response contains a `MediaItem` instance. Access requires one of the listed OAuth authorization scopes: `photoslibrary`, `photoslibrary.readonly`, or `photoslibrary.readonly.appcreateddata`.\n"],null,["# Method: mediaItems.get\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nReturns the media item for the specified media item identifier.\n\n### HTTP request\n\n`GET https://photoslibrary.googleapis.com/v1/mediaItems/{mediaItemId}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|---------------|------------------------------------------------------------------|\n| `mediaItemId` | `string` Required. Identifier of the media item to be requested. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body contains an instance of [MediaItem](/photos/library/legacy/reference/rest/v1/mediaItems#MediaItem).\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/photoslibrary`\n- `\n https://www.googleapis.com/auth/photoslibrary.readonly`\n- `\n https://www.googleapis.com/auth/photoslibrary.readonly.appcreateddata`"]]