If you have to index / submit your website URL in bulk to Google search console or do instant indexing, then how can you generate API key for that, also you can use Google Index Api in PHP without any WordPress plugin How to call online.
How to Get Google Instant Indexing Api key JSON or Google JSON Key
Now you need to create Google Service Account and that account is used for the access of Google Indexing API.
1. Go to https://console.cloud.google.com/iam-admin/serviceaccounts.
2. Go to Service Accounts > Create Project.
3. Give name to your project and click Create.
4. Make sure that your newly created project is selected and click Create Service Account.
5. Fill in service account details and give it description so that you know where you are going to use it.
6. Change the role to Owner and hit Continue.
7. Click done.
Creating private key file for Google API authentication
Now we create private key file in JSON format and this JSON file is used by PHP / Laravel to access the Google API.
8. Click the service account email address.
9. Go to Keys > Add key > Create new key.
10. Select JSON and click Create, and save the JSON file to place where you find it.
Adding Google Service Account as domain property owner
For the last step you have to add Google Service Account as the domain propety owner in Google Search Console. After this your Service Account has permission to access to your domain properties through Google API.
1. Go to Google Search Console https://search.google.com/search-console/welcome.
2. Select your domain and go to Settings > Users and permissions > ADD USER
3. Enter Email address and Permission in Owner Select then click on Add button.
While generating your Indexing API, you will get a Google JSON Key, on opening it you will get to see the email named client_email
Permission denied. Failed to verify the URL ownership.
If you are getting such error, then for this you have to open Google Search Console, select your website name, click on setting option, click on ADD USER button, downloaded Google Index API KEY JSON On opening it in notepad, you will get mail address named client_email, enter it here, select owner in permission, click on add button
When you add @hardy-device-358905.iam.gserviceaccount.com by entering email ending with this mail, you will get to see like this, Now you can call API, Permission denied. Failed to verify the URL ownership. error will not occur
Without wordpress plugin google instant indexing api calls
If you do not have a WordPress website, and you want to call or use Google’s Instant Indexing API without any plugin, then how can you do it?
Step 1:- For this you have to click on https://webtool.codinghelp.in/google-instant-indexing.php link, from here you can call Google Indexing API without WordPress, plugin, library.
Step 2:- You get to see this in front of you, in Google Instant Indexing > Enter URLs, enter the URL you want to index or check the indexing status, Google Indexing Api JSON that you downloaded in Google JSON Key, which is the same as above step Enter what was obtained through Instant Indexing Action
Select what you want to do.
Step 3:- We have entered a url, as well as indexing json, now we want to check the indexing status of the entered url that when this url was indexed on google search console, To check, click on the Send to API button.
Step 4:- url_update_time It is being told that when the URL you just entered was indexed on Google Search Console.
Step 5:- “Requested entity was not found” This error means that the URL you entered is not indexed on Google Search Console, please index that URL.
Step 6:- As you can see we want to submit this URL to Google Search Console, we have entered the URL, Instant Indexing Action > Update/Indexing URL is selected, Google JSON Key is entered, now you have to Send To Api button, then you will get to see the time in below url_update_time when this URL is indexed
Somehow you can index any URL without WordPress website or plugin.