Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
L'Explorer API di Google è uno strumento disponibile nella maggior parte delle pagine della documentazione sui metodi API REST che consente di provare i metodi API di Google senza scrivere codice.
Explorer API agisce sui dati reali, quindi fai attenzione quando provi metodi che creano, modificano o eliminano dati.
Utilizza la directory
Per un elenco delle API di Google che puoi esplorare, consulta la directory delle API di Google. Questo elenco contiene link alla documentazione di riferimento per le API supportate. Per esplorare l'API:
Nella casella di ricerca in alto, inserisci il nome dell'API che vuoi esplorare.
Fai clic sul nome dell'API. Viene aperta la documentazione di riferimento dell'API.
A sinistra, fai clic sul metodo da utilizzare nella navigazione.
A destra, individua il riquadro "Prova questo metodo". Di seguito sono riportate informazioni dettagliate su come utilizzare il riquadro laterale di Explorer API e su come espanderlo nel riquadro Explorer API Explorer a schermo intero.
Utilizzare il riquadro laterale
Figura 1: riquadro laterale di Explorer API per l'API Google Libri.
Per impostazione predefinita, l'Explorer API viene visualizzato sul lato destro della schermata nella documentazione di riferimento dell'API per i metodi supportati.
Puoi personalizzare e interagire con le seguenti sezioni nel riquadro laterale Explorer API:
Parametri di richiesta, se richiesti dal metodo.
Corpo della richiesta, se richiesto dal metodo.
Credenziali, per testare il metodo con vari tipi di credenziali e ambiti.
Pulsante Esegui, per eseguire il metodo utilizzando i parametri e le impostazioni specificati.
Risultato, visualizzato solo dopo aver eseguito il metodo.
Utilizzare il riquadro a schermo intero
Figura 2: riquadro a schermo intero dell'Explorer API per l'API Google Libri.
Nel riquadro laterale API Explorer compresso, puoi fare clic su Schermo intero
fullscreen per espandere Explorer API. Il riquadro a schermo intero mostra un riquadro aggiuntivo contenente esempi di codice, application/json risposte e risposte HTTP non elaborate.
Autenticazione
Explorer API utilizza le proprie credenziali per effettuare una richiesta. Non puoi utilizzare le credenziali personalizzate con Explorer API.
Formato dei dati
Explorer API supporta solo JSON per le risposte e i payload delle richieste. Anche se la tua API supporta altri formati di dati, questi formati non funzionano in Explorer API.
[null,null,["Ultimo aggiornamento 2022-11-01 UTC."],[[["\u003cp\u003eGoogle APIs Explorer allows you to experiment with Google API methods directly without coding, using real data.\u003c/p\u003e\n"],["\u003cp\u003eYou can find the desired API through the Google APIs Explorer Directory and navigate to its documentation to access the Explorer.\u003c/p\u003e\n"],["\u003cp\u003eThe Explorer provides an interface to input parameters, request bodies, and credentials for executing the API method and viewing results.\u003c/p\u003e\n"],["\u003cp\u003eWhile the Explorer uses its own credentials, it offers both side-panel and full-screen views with functionalities like code samples and response formats in JSON.\u003c/p\u003e\n"],["\u003cp\u003eRemember to exercise caution when using methods that modify data, as the Explorer operates on live data.\u003c/p\u003e\n"]]],[],null,["# Overview\n\nThe Google APIs Explorer is a tool available on most REST API method\ndocumentation pages that lets you try Google API methods without writing code.\nThe APIs Explorer acts on real data, so use caution when trying methods that\ncreate, modify, or delete data.\n\nUse the directory\n-----------------\n\nFor a list of Google APIs you can explore, browse the\n[Google APIs Explorer Directory](/apis-explorer). This list contains links to\nthe API reference documentation for supported APIs. Follow the steps below to\nexplore the API:\n\n1. Open the [Google APIs Explorer Directory](/apis-explorer).\n2. In the search box at the top, enter the name of the API you want to explore.\n3. Click the name of the API. This opens the API reference documentation.\n4. At the left, click the method you want to use in the navigation.\n5. At the right, find the panel labeled \"Try this method.\" See below for details\n about how to use the APIs Explorer side panel and how to expand it into the\n full-screen APIs Explorer panel.\n\n | **Note:** If you don't see the APIs Explorer side panel, the method might not be compatible with APIs Explorer.\n\nUse the side panel\n------------------\n\n**Figure 1**: APIs Explorer side panel for the Google Books API.\n\nBy default, the APIs Explorer appears on the right-hand side of the screen in\nAPI reference documentation for supported methods.\n\nYou can customize and interact with the following sections in the APIs Explorer\nside panel:\n\n- **Request parameters**, if required by the method.\n- **Request body**, if required by the method.\n- **Credentials**, to test the method with various credential types and scopes.\n- **Execute** button, to run the method using the parameters and settings you've specified.\n- **Result**, displayed only after executing the method.\n\nUse the full-screen panel\n-------------------------\n\n**Figure 2**: APIs Explorer full-screen panel for the Google Books API.\n\nIn the collapsed APIs Explorer side panel, you can click Full screen\nfullscreen to expand the APIs Explorer. The\nfull-screen panel displays an extra pane containing code samples,\n`application/json` responses, and Raw HTTP responses.\n\nAuthentication\n--------------\n\nThe APIs Explorer uses its own credentials to make a request. You can't use\ncustom credentials with the APIs Explorer.\n\nData formats\n------------\n\nThe APIs Explorer only supports JSON for responses and request payloads. Even if\nyour API supports other data formats, these formats don't work in the\nAPIs Explorer.\n\nNext steps\n----------\n\n- Learn how to [display the APIs Explorer and execute a method](/explorer-help/execute-method).\n- Learn how to [test a method using different credentials and scopes](/explorer-help/authorization-and-authentication).\n- Learn how to [execute APIs Explorer sample code locally](/explorer-help/code-samples)."]]