Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Tutte le richieste inviate all'API della Libreria Google Foto vengono conteggiate ai fini di una quota. Questi limiti sono in vigore per proteggere il sistema e i suoi utenti.
Per accedere all'API sono necessarie le credenziali client OAuth di un progetto Google Developers. Questo progetto deve avere l'API Library abilitata, come descritto in Inizia.
Il limite di quota per le richieste all'API Library è di 10.000 richieste per progetto al giorno. Ciò include tutte le richieste API, come il caricamento, l'elenco dei contenuti multimediali e l'applicazione di filtri, ma non l'accesso ai byte multimediali da un URL di base.
Oltre a questi limiti, esistono altre quote per proteggere l'affidabilità e l'integrità dei nostri sistemi. Se ricevi un errore 429, è probabile che tu abbia raggiunto una di queste quote. Se ricevi uno di questi errori, riduci il numero di richieste che effettui in un determinato periodo di tempo. Per scoprire di più, consulta gli articoli relativi al nuovo tentativo di richieste non riuscite e al backoff esponenziale.
Controllo dell'utilizzo della quota
Per scoprire quanta quota disponibile hai utilizzato e per visualizzare o modificare i limiti di utilizzo per il tuo progetto, visita la pagina Quote nella console API di Google e seleziona l'API Foto Library.
Superamento dei limiti di quota
Se la quota di richieste all'API Library viene superata, l'API restituisce un codice di errore 429 e un messaggio che indica che il progetto ha superato la quota. Per ulteriori informazioni, consulta i Termini di servizio.
Richiesta di quota aggiuntiva
Il Programma partner di Google Foto è orientato alle applicazioni consumer di grandi dimensioni che richiedono limiti di quota aumentati. Se ritieni che la tua domanda appartiene a questa categoria, esprimi interesse per il programma partner.
Archiviazione e qualità delle foto
Tutti gli elementi multimediali caricati su Google Foto utilizzando l'API vengono archiviati alla massima risoluzione e alla qualità originale. Vengono conteggiate ai fini dello spazio di archiviazione dell'utente.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Mancano le informazioni di cui ho bisogno","missingTheInformationINeed","thumb-down"],["Troppo complicato/troppi passaggi","tooComplicatedTooManySteps","thumb-down"],["Obsoleti","outOfDate","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Problema relativo a esempi/codice","samplesCodeIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-08-29 UTC."],[[["\u003cp\u003eAll requests to the Google Photos Library API are subject to daily quota limits to protect the system, including limits for general API requests and accessing media bytes.\u003c/p\u003e\n"],["\u003cp\u003eExceeding these quota limits will result in a 429 error, requiring developers to reduce request frequency and implement strategies like retrying failed requests and exponential backoff.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can monitor and manage their quota usage through the Quotas page in the Google API Console.\u003c/p\u003e\n"],["\u003cp\u003eApplications with high-volume needs can request increased quota limits by expressing interest in the Google Photos partner program.\u003c/p\u003e\n"],["\u003cp\u003eMedia uploaded via the API is stored at original quality and counts towards the user's storage, requiring applications to inform users about potential storage impact for large uploads.\u003c/p\u003e\n"]]],["The Google Photos Library API has request quotas to protect the system. Each project is limited to 10,000 API requests daily, including uploads and listing, and 75,000 daily requests for media byte access. Exceeding limits results in a 429 error, requiring reduced request frequency. Quota usage can be monitored via the Google API Console. Uploaded media are stored at original quality and count towards user storage. Higher quotas are available via a partner program.\n"],null,["# API limits and quotas\n\nAll requests sent to the Google Photos Library API are counted toward a quota. We put these\nlimits in place to protect the system and its users.\n\nAccess to the API requires OAuth client credentials from a Google developers\nproject. This project must have the Library API enabled as described in\n[Get started](/photos/library/guides/get-started).\n\nTo learn more about appropriate use of this API, see the\n[Acceptable use policy](/photos/library/guides/acceptable-use).\n\nGeneral quota limits\n--------------------\n\nThe quota limit for requests to the Library API is 10,000 requests per\nproject per day. This includes all API requests, such as uploading, listing\nmedia, and applying filters, but not accessing media bytes from a base URL.\n\nThe quota limit for requests to access media bytes (by\n[loading a photo or video from a base\nURL](/photos/library/guides/access-media-items#base-urls))\nis 75,000 requests per project per day.\n\nIn addition to these limits there are other quotas that exist to protect the\nreliability and integrity of our systems. If you receive a 429 error, you've\nlikely hit one of these quotas. If you receive one of these errors, reduce the\nnumber of requests you are making over a given time period. For more\ninformation, refer to [retrying failed\nrequests](/photos/library/guides/best-practices#retrying-failed-requests) and\n[exponential\nbackoff](/photos/library/guides/best-practices#exponential-backoff).\n\n### Checking quota usage\n\nTo see how much of your available quota you have used, and to view or change\nusage limits for your project, visit the\n[Quotas page](https://console.cloud.google.com/iam-admin/quotas?service=photoslibrary.googleapis.com)\nin the Google API Console and select **Photos Library API**.\n\n### Exceeding quota limits\n\nIf the quota of requests to the Library API is exceeded, the API returns\nan error code 429 and a message that the project has exceeded the quota. For\nmore information, see the [Terms of\nService](https://developers.google.com/terms/).\n\n### Requesting additional quota\n\nThe Google Photos partner program is geared towards large consumer\napplications that require increased quota limits. If you believe your\napplication belongs in this category, [express interest in the\npartner program](/photos/partner-program/overview).\n\nPhoto storage and quality\n-------------------------\n\nAll media items uploaded to Google Photos using the API are stored in\nfull resolution at [original\nquality](https://support.google.com/photos/answer/6220791). They count toward\nthe user's storage.\n| **Note:** If your uploads exceed 25MB per user, your application should remind the user that these uploads will count towards storage in their Google Account."]]