{"id":999958231,"date":"2022-02-01T11:45:49","date_gmt":"2022-02-01T11:45:49","guid":{"rendered":"https:\/\/f60host.com\/support\/?p=999958231"},"modified":"2022-02-01T11:45:49","modified_gmt":"2022-02-01T11:45:49","slug":"how-to-generating-google-api-key","status":"publish","type":"post","link":"https:\/\/f60host.com\/support\/how-to-generating-google-api-key\/","title":{"rendered":"How to Generate Google API key"},"content":{"rendered":"\n<div class=\"wp-block-image is-style-default\"><figure class=\"aligncenter size-full\"><a href=\"https:\/\/f60host.com\/support\/wp-content\/uploads\/2022\/03\/how-to-generate-google-api-key.jpg\"><img decoding=\"async\" src=\"https:\/\/f60host.com\/support\/wp-content\/uploads\/2022\/03\/how-to-generate-google-api-key.jpg\" alt=\"How to Generate Google API key\" class=\"wp-image-999960768\" title=\"How to Generate Google API key\"\/><\/a><\/figure><\/div>\n\n\n\n<p>The Google API key is a<strong> <\/strong>unique identifier that authenticates requests associated with your project for usage and billing purposes. You must have at least one API key associated with your project. Getting the<strong> Google API key<\/strong> is quite an easy process. If you need to connect to services such as <strong>Google Drive<\/strong> or <strong>Google Maps<\/strong> from your website or another remote server, you will need a Google API key.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"what-is-the-google-api-key-used-for\">What is the Google API key used for?<\/h2>\n\n\n\n<p>This topic shows how application developers can use API keys with Google Cloud APIs. An API key is a simple encrypted string that identifies an application in the absence of a principal. They are useful for anonymously <strong>accessing public data<\/strong> and for associating API requests with your project for quota and billing.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How is API key generated?<\/h2>\n\n\n\n<p>The API key for accessing the APIs in that product is generated when the app is registered with the API product. A string containing permission information that a client-side software can use to access the API product&#8217;s resources. When a registered app is linked to an API product, the API key is generated.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"steps-to-create-google-api-keys\">Steps to create Google API key<\/h2>\n\n\n\n<p><strong>Step 1:<\/strong> First, you will need to log into the <strong>Google Developers Console<\/strong>.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><a href=\"https:\/\/f60host.com\/support\/wp-content\/uploads\/2022\/02\/google-tools_google-api-keys-1.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/f60host.com\/support\/wp-content\/uploads\/2022\/02\/google-tools_google-api-keys-1-1024x506.png\" alt=\"Google API keys\" class=\"wp-image-999958232\" width=\"686\" height=\"339\"\/><\/a><\/figure><\/div>\n\n\n\n<p><strong>Step 2:<\/strong> Once on your Google Developers Console, create a <strong>new project<\/strong>. To do so, click the <strong>Create Project<\/strong> button on the top left.<\/p>\n\n\n\n<p><strong>Step 3:<\/strong> Once the button is clicked, enter a <strong>project name<\/strong>. You may use the <strong>project ID<\/strong> that is already populated for you as this is simply a unique identifier used on Google\u2019s end, or you can create your own. Then, click <strong>Create<\/strong>.<\/p>\n\n\n\n<p><strong>Step 3:<\/strong> It can take a <strong>few minutes<\/strong> to create the project for you. <strong>Once created<\/strong>, you will be taken to that project.<\/p>\n\n\n\n<p><strong>Step 4:<\/strong> From within your new project, click on <strong>APIs &amp; auth<\/strong>. You should now see a list of services. Locate the <strong>API service<\/strong> that you want to use, and click on <strong>OFF <\/strong>to switch it to <strong>ON<\/strong>. That API service is now active on your account.<\/p>\n\n\n\n<p><strong>Step 5:<\/strong> Now, you\u2019ll need to generate your <strong>API credentials<\/strong>. To do so, click on Credentials on the left side of the page.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><a href=\"https:\/\/f60host.com\/support\/wp-content\/uploads\/2022\/02\/google-tools_google-api-keys-4.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/f60host.com\/support\/wp-content\/uploads\/2022\/02\/google-tools_google-api-keys-4-1024x506.png\" alt=\"Google API keys\" class=\"wp-image-999958233\" width=\"692\" height=\"342\"\/><\/a><\/figure><\/div>\n\n\n\n<p><strong>Step 6:<\/strong> The information that you need to generate will vary depending on your application that uses the <strong>Google API<\/strong>. If you are using a service that will require user authentication such as uploading files to <strong>Google Drive<\/strong>, then you will need to create an <strong>OAuth Client ID<\/strong>. If you are creating an application that simply relays data from Google such as generating maps with Google Maps, then you will need a <strong>Public API Key<\/strong>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"key-generation-for-oauth-applications\">Key generation for OAuth applications<\/h3>\n\n\n\n<p>To generate an <strong>OAuth Client ID<\/strong>, click on the button that says <strong>Create New Client ID<\/strong>. You will then be presented with a popup box that asks for the type of application, as well as authorized JavaScript origins and <strong>redirect URI<\/strong>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"public-api-key-generation\">Public API key generation<\/h3>\n\n\n\n<p>To access services that do not require user authentication, such as <strong>Google Maps<\/strong>, you will need to use a <strong>public API key<\/strong>. To generate one, click on <strong>Create New Key<\/strong>. You will have a few different key options to generate:<\/p>\n\n\n\n<p><strong>Server key:<\/strong> Select this if you will be making <strong>API calls<\/strong> from a <strong>server<\/strong>.<br \/><strong>Browser key:<\/strong> Select this option if you will be making<strong> API calls<\/strong> from the user\u2019s browser.<br \/><strong>Android key:<\/strong> If the user\u2019s Android phone or tablet will be making the API call, use this option.<br \/><strong>iOS key:<\/strong> This option is used for making API calls from an <strong>iPhone<\/strong>, <strong>iPad<\/strong>, or <strong>iPod<\/strong>.<\/p>\n\n\n\n<p>You&#8217;ll see your <strong>Google API key<\/strong> on the <strong>Credentials page<\/strong> now that you&#8217;ve generated them. You are now ready to incorporate this information into your application.<\/p>\n\n\n\n<p>More Information<\/p>\n\n\n\n<p>For more information about Google G Suite\/Workspace domains, Server, Hosting, check out these&nbsp;<a href=\"https:\/\/f60host.com\/\">F60 Host<\/a>&nbsp;resources:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/f60host.com\/domains.php\">F60 Host Domains<\/a>,&nbsp;<a href=\"https:\/\/f60host.com\/shared-hosting.php\">F60 Host Hosting<\/a>,&nbsp;<a href=\"https:\/\/f60host.com\/google-gsuite-workspace.php\">Google G Suite<\/a><\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>The Google API key is a unique identifier that authenticates requests associated with your project<span class=\"excerpt-hellip\"> [\u2026]<\/span><\/p>\n","protected":false},"author":1,"featured_media":999960768,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-999958231","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-google-services"],"_links":{"self":[{"href":"https:\/\/f60host.com\/support\/wp-json\/wp\/v2\/posts\/999958231","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/f60host.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/f60host.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/f60host.com\/support\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/f60host.com\/support\/wp-json\/wp\/v2\/comments?post=999958231"}],"version-history":[{"count":0,"href":"https:\/\/f60host.com\/support\/wp-json\/wp\/v2\/posts\/999958231\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/f60host.com\/support\/wp-json\/"}],"wp:attachment":[{"href":"https:\/\/f60host.com\/support\/wp-json\/wp\/v2\/media?parent=999958231"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/f60host.com\/support\/wp-json\/wp\/v2\/categories?post=999958231"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/f60host.com\/support\/wp-json\/wp\/v2\/tags?post=999958231"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}