<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>SEO - TheCodeBuzz</title>
	<atom:link href="https://thecodebuzz.com/category/seo/feed/" rel="self" type="application/rss+xml" />
	<link>https://thecodebuzz.com</link>
	<description>Best Practices for Software Development</description>
	<lastBuildDate>Mon, 04 Dec 2023 04:21:46 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://thecodebuzz.com/wp-content/uploads/2022/11/cropped-android-chrome-512x512-1-1-51x51.jpg</url>
	<title>SEO - TheCodeBuzz</title>
	<link>https://thecodebuzz.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How to Remove Website URLs from Google search indexing or crawling</title>
		<link>https://thecodebuzz.com/how-to-remove-website-urls-google-search-indexing-or-crawling-api/</link>
					<comments>https://thecodebuzz.com/how-to-remove-website-urls-google-search-indexing-or-crawling-api/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Sat, 02 Dec 2023 02:29:00 +0000</pubDate>
				<category><![CDATA[Automation]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[remove-website-urls-google-search]]></category>
		<guid isPermaLink="false">https://www.thecodebuzz.com/?p=29200</guid>

					<description><![CDATA[<p>How to Remove Website URLs from Google search indexing or crawling Today in this article, we will see how to How to How to Remove Website URLs from Google search indexing or crawling. You might find genuine need of not crawling or indexing the website. But in today&#8217;s article, we will see a use case [&#8230;]</p>
<p>The post <a href="https://thecodebuzz.com/how-to-remove-website-urls-google-search-indexing-or-crawling-api/">How to Remove Website URLs from Google search indexing or crawling</a> first appeared on <a href="https://thecodebuzz.com">TheCodeBuzz</a>.</p>]]></description>
										<content:encoded><![CDATA[<h1 class="wp-block-heading">How to Remove Website URLs from Google search indexing or crawling</h1>



<figure class="wp-block-image size-full"><img fetchpriority="high" decoding="async" width="764" height="400" src="https://www.thecodebuzz.com/wp-content/uploads/2023/12/python-remove-url-google-search-console-engine.jpg" alt="" class="wp-image-29251" srcset="https://thecodebuzz.com/wp-content/uploads/2023/12/python-remove-url-google-search-console-engine.jpg 764w, https://thecodebuzz.com/wp-content/uploads/2023/12/python-remove-url-google-search-console-engine-300x157.jpg 300w" sizes="(max-width: 764px) 100vw, 764px" /></figure>



<p>Today in this article, we will see how to How to How to Remove Website URLs from Google search indexing or crawling.</p>



<p></p>



<p>You might find genuine need of not crawling or indexing the website. </p>



<p></p>



<div class="wp-block-aioseo-table-of-contents"><ul><li><a href="#aioseo-few-common-reasons-for-removing-the-urls-are-as-below">Common Reasons for Removing the URLs</a></li><li><a href="#aioseo-remove-url-from-indexing-immediately-steps-by-step">Remove URL from Indexing Immediately &#8211; Manual</a></li><li><a href="#aioseo-make-url-removal-permanent">Remove URL permanently from Indexing</a></li><li><a href="#aioseo-remove-url-permanently-using-google-indexing-api">Remove URL permanently using Google Indexing API</a></li></ul></div>



<p></p>



<p>But in today&#8217;s article, we will see a use case where you already have website URL which is indexed but you want to remove the URL due to some reasons. </p>



<p></p>



<h2 class="wp-block-heading" id="aioseo-few-common-reasons-for-removing-the-urls-are-as-below">Common Reasons for Removing the URLs</h2>



<p></p>



<p>Few common reasons for Removing the URLs are as below,</p>



<p></p>



<ul class="wp-block-list">
<li><strong>Private Content:</strong> To maintain privacy and security, website owners may restrict search engines from indexing certain pages or sections that contain data, internal documents, or private information.</li>
</ul>



<p></p>



<ul class="wp-block-list">
<li><strong>Outdated Content:</strong> Some websites might have outdated or low-quality content that could harm the overall search engine rankings. User may want no longer relevant or accurate. </li>
</ul>



<p></p>



<ul class="wp-block-list">
<li><strong>Temporary Pages:</strong> Under progress website with temporary pages that are not ready for public viewing might opt to exclude pages from search engine results.</li>
</ul>



<p></p>



<h2 class="wp-block-heading" id="aioseo-remove-url-from-indexing-immediately-steps-by-step">Remove URL from Indexing Immediately &#8211; Manual</h2>



<p></p>



<ul class="wp-block-list">
<li>Login to Google Search console </li>
</ul>



<p></p>



<p><a href="https://search.google.com/search-console">https://search.google.com/search-console</a></p>



<p></p>



<ul class="wp-block-list">
<li>Select your website from the list of websites available </li>
</ul>



<p></p>



<figure class="wp-block-image size-full"><img decoding="async" width="776" height="245" src="https://www.thecodebuzz.com/wp-content/uploads/2023/12/image.jpg" alt="Remove Website URLs from Google search" class="wp-image-29242" srcset="https://thecodebuzz.com/wp-content/uploads/2023/12/image.jpg 776w, https://thecodebuzz.com/wp-content/uploads/2023/12/image-300x95.jpg 300w, https://thecodebuzz.com/wp-content/uploads/2023/12/image-768x242.jpg 768w" sizes="(max-width: 776px) 100vw, 776px" /></figure>



<p></p>



<ul class="wp-block-list">
<li>Under Indexing option please click on &#8220;Removal&#8221;</li>
</ul>



<p></p>



<figure class="wp-block-image size-full"><img decoding="async" width="322" height="375" src="https://www.thecodebuzz.com/wp-content/uploads/2023/12/image-1.jpg" alt="" class="wp-image-29243" srcset="https://thecodebuzz.com/wp-content/uploads/2023/12/image-1.jpg 322w, https://thecodebuzz.com/wp-content/uploads/2023/12/image-1-258x300.jpg 258w" sizes="(max-width: 322px) 100vw, 322px" /></figure>



<p></p>



<ul class="wp-block-list">
<li>Under tab &#8220;Temporary Removals &#8221; please click on &#8220;NEW REQUEST&#8221;</li>
</ul>



<p></p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="284" src="https://www.thecodebuzz.com/wp-content/uploads/2023/12/image-1024x284.png" alt="delete Website from Google search results" class="wp-image-29244" srcset="https://thecodebuzz.com/wp-content/uploads/2023/12/image-1024x284.png 1024w, https://thecodebuzz.com/wp-content/uploads/2023/12/image-300x83.png 300w, https://thecodebuzz.com/wp-content/uploads/2023/12/image-768x213.png 768w, https://thecodebuzz.com/wp-content/uploads/2023/12/image-785x218.png 785w, https://thecodebuzz.com/wp-content/uploads/2023/12/image.png 1336w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p></p>



<ul class="wp-block-list">
<li>Finally Submit the url as below,</li>
</ul>



<figure class="wp-block-image size-full is-resized"><img loading="lazy" decoding="async" width="686" height="540" src="https://www.thecodebuzz.com/wp-content/uploads/2023/12/image-1.png" alt="" class="wp-image-29245" style="width:306px;height:auto" srcset="https://thecodebuzz.com/wp-content/uploads/2023/12/image-1.png 686w, https://thecodebuzz.com/wp-content/uploads/2023/12/image-1-300x236.png 300w, https://thecodebuzz.com/wp-content/uploads/2023/12/image-1-661x520.png 661w" sizes="auto, (max-width: 686px) 100vw, 686px" /></figure>



<p></p>



<p>Above step will remove URL only for 6 month. </p>



<p></p>



<p>To remove URL permanently please follow below guidelines. </p>



<p></p>



<p></p>



<h2 class="wp-block-heading" id="aioseo-make-url-removal-permanent">Remove URL permanently from Indexing </h2>



<p></p>



<p>The above discussed removals tool removes the URL from google search for six months <em>temporar</em>ily&nbsp;. </p>



<p></p>



<p>If you want to remove content or a URL from Google search&nbsp;<em>permanently</em>, please follow the steps as below,</p>



<p></p>



<ul class="wp-block-list">
<li><strong>Remove the content of your site</strong>&nbsp;&#8211; Please remove images, pages, directories.</li>
</ul>



<p></p>



<ul class="wp-block-list">
<li><strong>Update the content of your site</strong>&nbsp; to returns either a&nbsp;<code>404 (Not Found)</code>&nbsp;or&nbsp;<code>410 (Gone)</code>&nbsp;HTTP status code. </li>
</ul>



<p></p>



<ul class="wp-block-list">
<li><strong>Update the content</strong> to be accessed through password.</li>
</ul>



<p></p>



<ul class="wp-block-list">
<li>Other possible option is using the&nbsp;<strong><em>noindex</em></strong> meta tag. </li>
</ul>



<p></p>



<h2 class="wp-block-heading" id="aioseo-remove-url-permanently-using-google-indexing-api">Remove URL permanently using Google Indexing API</h2>



<p></p>



<p>One can easily remove URLs from Google search using Indexing API and requesting URL to be removed from search results.</p>



<p></p>



<p>This way , you can achieve automation where you can specify which URLs to be removed from indexing or update the URLs etc. or add new indexing URL.</p>



<p></p>



<p>Below is sample code using Python to achieve the same. </p>



<p>We are using Indexing POST API call using JOSN schema where you need to specify URL and type of operation as &#8220;URL_DELETED&#8221; .</p>



<p></p>



<pre class="wp-block-code"><code>urlList=&#91;"url1","url2", "url3"]
for index, item in enumerate(urlList):
    content = {
      "url": item,
      "type": "URL_DELETED"
    }
    response, content = http.request(ENDPOINT, method="POST", body=json.dumps(content))
    print(response)</code></pre>



<p></p>



<p></p>



<p>For more details on how to setup Indexing API, please visit this article &#8211;<a href="https://www.thecodebuzz.com/how-to-bulk-submit-website-urls-index-google-search-engine-console-wordpress-crawling/" target="_blank" rel="noopener" title="How to Bulk Index and Crawl Website URLs To Google Search – SEO Automation"><strong><em>How to Bulk Index and Crawl Website URLs To Google Search – SEO Automation</em></strong></a></p>



<p></p>



<hr>



<p class=""></p>



<p class="has-background" style="background-color:#b6d9ac;font-size:18px"><br>Please <strong><em>bookmark </em></strong>this page and <em><strong>share </strong></em>it with your friends.                                                    Please <a href="https://www.thecodebuzz.com/subscription/" target="_blank" rel="noreferrer noopener"><em><mark style="background-color:rgba(0, 0, 0, 0)" class="has-inline-color has-luminous-vivid-orange-color"><strong>Subscribe</strong> </mark></em></a>to the blog to receive notifications on freshly published (2025) best practices and guidelines for software design and development.</p>




<br>



<hr>



<p class=""></p>



<p></p>



<p></p>



<p></p>



<p></p><p>The post <a href="https://thecodebuzz.com/how-to-remove-website-urls-google-search-indexing-or-crawling-api/">How to Remove Website URLs from Google search indexing or crawling</a> first appeared on <a href="https://thecodebuzz.com">TheCodeBuzz</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://thecodebuzz.com/how-to-remove-website-urls-google-search-indexing-or-crawling-api/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How To Bulk Index URL To Google Search &#8211; SEO Automation</title>
		<link>https://thecodebuzz.com/how-to-bulk-submit-website-urls-index-google-search-engine-console-wordpress-crawling/</link>
					<comments>https://thecodebuzz.com/how-to-bulk-submit-website-urls-index-google-search-engine-console-wordpress-crawling/#comments</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Sun, 09 Jan 2022 19:47:00 +0000</pubDate>
				<category><![CDATA[SEO]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[add to google index]]></category>
		<category><![CDATA[bulk request indexing google]]></category>
		<category><![CDATA[bulk url indexer]]></category>
		<category><![CDATA[google add url to index]]></category>
		<category><![CDATA[google add website to index]]></category>
		<category><![CDATA[google indexing api-python]]></category>
		<category><![CDATA[google submit page for indexing]]></category>
		<category><![CDATA[google submit url for indexing]]></category>
		<category><![CDATA[google to crawl and index your url]]></category>
		<category><![CDATA[index multiple URL in google]]></category>
		<category><![CDATA[index url google search engine seo]]></category>
		<category><![CDATA[index url google using script]]></category>
		<category><![CDATA[submit to google for indexing]]></category>
		<category><![CDATA[submit url for indexing]]></category>
		<category><![CDATA[ulk Submit URLs to Google Search Engine]]></category>
		<guid isPermaLink="false">https://www.thecodebuzz.com/?p=19957</guid>

					<description><![CDATA[<p>Bulk Index and Crawl URLs to Google Search Engine Console Today we will learn how to bulk Index URL to google search engine. We will see manual and automated Indexing or Crawling techniques for helping your Website&#8217;s SEO optimization strategies. You may find the need for the automation of this activity due to multiple reasons. [&#8230;]</p>
<p>The post <a href="https://thecodebuzz.com/how-to-bulk-submit-website-urls-index-google-search-engine-console-wordpress-crawling/">How To Bulk Index URL To Google Search – SEO Automation</a> first appeared on <a href="https://thecodebuzz.com">TheCodeBuzz</a>.</p>]]></description>
										<content:encoded><![CDATA[<h1 class="wp-block-heading">Bulk Index and Crawl URLs to Google Search Engine Console</h1>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="764" height="400" src="https://www.thecodebuzz.com/wp-content/uploads/2022/01/index-multiple-url-google-search-console-engine.jpg" alt="Index and Crawl Website URLs To Google , index url google search engine seo,submit to google for indexing,add to google index, google add url to index, google to crawl and index your url, submit url for indexing, bulk url indexer, submit url for indexing, google add website to index , google indexing api-python, bulk request indexing google, google submit url for indexing, google submit page for indexing, google console index" class="wp-image-20001" srcset="https://thecodebuzz.com/wp-content/uploads/2022/01/index-multiple-url-google-search-console-engine.jpg 764w, https://thecodebuzz.com/wp-content/uploads/2022/01/index-multiple-url-google-search-console-engine-300x157.jpg 300w" sizes="auto, (max-width: 764px) 100vw, 764px" /></figure>



<p>Today we will learn how to bulk Index URL to google search engine.</p>



<p></p>



<p>We will see manual and automated Indexing or Crawling techniques for helping your Website&#8217;s SEO optimization strategies.</p>



<p></p>



<p>You may find the need for the automation of this activity due to multiple reasons. </p>



<p></p>



<p>For example, the <strong><em>article is updated </em></strong><em><strong>or article enhancement,</strong></em> etc. </p>



<p></p>



<p>You often try to index URLs to Google Search Engine using manual ways for your WordPress website or any custom websites.</p>



<p></p>



<p>Bulk Indexing will be a great SEO strategy you can adopt overall. </p>



<p></p>



<p>We shall cover the below aspects in today&#8217;s article,</p>



<p></p>



<div class="wp-block-aioseo-table-of-contents"><ul><li><a href="#aioseo-issues-with-manual-url-indexing-and-crawling">Manual URL Indexing and Crawling</a><ul><li><a href="#aioseo-issue-with-manual-indexing">The issue with Manual indexing</a></li></ul></li><li><a href="#aioseo-seo-strategies---automation-for-url-index-or-crawling-for-google">SEO Strategies &#8211; Automation for Url Index or crawling using Google Indexing API</a></li><li><a href="#aioseo-getting-started---bulk-index-urls-to-google-search-engine">Getting started &#8211; Bulk Index URLs to Google Search Engine</a></li><li><a href="#aioseo-authorize-requests-to-indexing-api">Authorize Requests to Google Indexing API</a></li><li><a href="#create-project">Create a Project</a></li><li><a href="#create-service-account">Create a service account</a></li><li><a href="#verify-site">Site Ownership &#8211; Add your service account as a site owner</a><ul><li><a href="#1.-prove-that-you-own-the-site">Prove as the Owner of the site</a></li><li><a href="#2.-grant-owner-status-to-your-service-account">Grant owner status to your service account</a></li></ul></li><li><a href="#aioseo-final-step--bulk-submit-urls-programmatically">Final Step- Bulk Submit URLs Programmatically</a></li></ul></div>



<p></p>



<h2 class="wp-block-heading" id="aioseo-issues-with-manual-url-indexing-and-crawling">Manual URL Indexing and Crawling </h2>



<p></p>



<p>It is always difficult to perform indexing manually like using the below search console window option.</p>



<p></p>



<ul class="wp-block-list">
<li><a href="https://search.google.com/search-console" target="_blank" rel="noreferrer noopener"><strong><em>https://search.google.com/search-console</em></strong></a></li>
</ul>



<p> </p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="313" src="https://www.thecodebuzz.com/wp-content/uploads/2022/01/index-url-in-google-search-engine-automatically-1024x313.jpg" alt="Bulk Index URLs to Google,Bulk Index and Crawl URLs " class="wp-image-19997" srcset="https://thecodebuzz.com/wp-content/uploads/2022/01/index-url-in-google-search-engine-automatically-1024x313.jpg 1024w, https://thecodebuzz.com/wp-content/uploads/2022/01/index-url-in-google-search-engine-automatically-300x92.jpg 300w, https://thecodebuzz.com/wp-content/uploads/2022/01/index-url-in-google-search-engine-automatically-768x235.jpg 768w, https://thecodebuzz.com/wp-content/uploads/2022/01/index-url-in-google-search-engine-automatically-1536x470.jpg 1536w, https://thecodebuzz.com/wp-content/uploads/2022/01/index-url-in-google-search-engine-automatically-785x240.jpg 785w, https://thecodebuzz.com/wp-content/uploads/2022/01/index-url-in-google-search-engine-automatically.jpg 1621w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p></p>



<h3 class="wp-block-heading" id="aioseo-issue-with-manual-indexing">The issue with Manual indexing </h3>



<p></p>



<ul class="wp-block-list">
<li>To submit URLs, you must log in each time.</li>
</ul>



<p></p>



<ul class="wp-block-list">
<li>Only authorized users, primarily Admin, can do indexing after logging in.</li>
</ul>



<p></p>



<ul class="wp-block-list">
<li>It takes time, and if you have numerous URLs to send, you&#8217;ll have to submit each one manually.</li>
</ul>



<p></p>



<ul class="wp-block-list">
<li>Crawling or indexing by Google can take some time ( delay may be longer than days or weeks)</li>
</ul>



<p></p>



<ul class="wp-block-list">
<li>It&#8217;s conceivable that you forgot to index URLs (including modified or newly added URLs)</li>
</ul>



<p></p>



<p></p>



<h2 class="wp-block-heading" id="aioseo-seo-strategies---automation-for-url-index-or-crawling-for-google">SEO Strategies &#8211; Automation for Url Index or crawling using Google Indexing API</h2>



<p></p>



<p>Using an automation method, all of the above-mentioned challenges can be resolved. </p>



<p></p>



<p>We&#8217;ll develop a script to do authentication and authorization in this section. </p>



<p></p>



<p>Once authorized, the script can be updated with new URLs or existing modified URLs to submit or resubmit as posts are updated or resubmitted. </p>



<p></p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p>With this approach, you can submit multiple URLs to google as per the quota limit.</p>



<p></p>



<p>Quota limit is 200 URls as default.</p>
</blockquote>



<p></p>



<h2 class="wp-block-heading" id="aioseo-getting-started---bulk-index-urls-to-google-search-engine">Getting started &#8211; Bulk Index URLs to Google Search Engine</h2>



<p></p>



<p>We shall cover the below set of steps needed to be performed,</p>



<p></p>



<ul class="has-medium-font-size wp-block-list">
<li>Create a service account</li>



<li>Site Ownership- Add your service account as a site owner</li>



<li>Writing a script and using an access token</li>



<li>Submit URL Programmatically</li>
</ul>



<p></p>



<p></p>



<p>A typical manual step involves below,</p>



<p></p>



<ul class="has-medium-font-size wp-block-list">
<li>Login to Google Search Console </li>



<li>Submit each URL individually </li>



<li>Wait for indexing to be effective</li>
</ul>



<p></p>



<p></p>



<p></p>



<p>Before we start using the Indexing API, there are a few things that need to be set up,</p>



<p></p>



<h2 class="wp-block-heading" id="aioseo-authorize-requests-to-indexing-api">Authorize Requests to Google Indexing API</h2>



<p></p>



<p>Application requests must be authorized by an authenticated user who has access to that data.</p>



<p></p>



<ul class="wp-block-list">
<li>Request applications sent to the <strong><em>Indexing API </em></strong>must include an <strong><em>authorization token.</em></strong> </li>
</ul>



<p></p>



<ul class="wp-block-list">
<li>Make sure to <strong><em>Enable Indexing API </em></strong>using the below link,
<ul class="wp-block-list">
<li><a href="https://console.developers.google.com/flows/enableapi?apiid=indexing.googleapis.com&amp;credential=client_key" target="_blank" rel="noreferrer noopener">https://console.developers.google.com/flows/enableapi?apiid=indexing.googleapis.com&amp;credential=client_key</a></li>
</ul>
</li>
</ul>



<p></p>



<p></p>



<p>Below we will cover high-level steps for achieving the Authorization.</p>



<p></p>



<p></p>



<h2 class="wp-block-heading" id="create-project">Create a Project</h2>



<p></p>



<p>Before you can send requests to the Indexing API, you need to tell Google about the client and activate access to the API. </p>



<p></p>



<p>You do this by using the Google Cloud Console to create a&nbsp;<dfn>project</dfn>, which is a named collection of settings and API access information, and register your application.</p>



<p></p>



<p>To get started using Indexing API, visit <a href="https://console.developers.google.com/start/api?id=indexing.googleapis.com&amp;credential=client_key" target="_blank" rel="noreferrer noopener">use the setup tool</a>, which guides you through creating a project in the Google API Console, enabling the API, and creating credentials.</p>



<p></p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="796" height="291" src="https://www.thecodebuzz.com/wp-content/uploads/2022/01/Google-Indexing-Submit-URL-using-script-or-batch.jpg" alt="wordpress indexing urls in google via automated scripts, SEO index url ,Bulk Index URLs to Google " class="wp-image-19960" srcset="https://thecodebuzz.com/wp-content/uploads/2022/01/Google-Indexing-Submit-URL-using-script-or-batch.jpg 796w, https://thecodebuzz.com/wp-content/uploads/2022/01/Google-Indexing-Submit-URL-using-script-or-batch-300x110.jpg 300w, https://thecodebuzz.com/wp-content/uploads/2022/01/Google-Indexing-Submit-URL-using-script-or-batch-768x281.jpg 768w, https://thecodebuzz.com/wp-content/uploads/2022/01/Google-Indexing-Submit-URL-using-script-or-batch-785x287.jpg 785w" sizes="auto, (max-width: 796px) 100vw, 796px" /><figcaption class="wp-element-caption">Google Indexing -Submit URL using script or batch</figcaption></figure>



<p></p>



<p></p>



<h2 class="wp-block-heading" id="create-service-account">Create a service account</h2>



<p></p>



<ul class="wp-block-list">
<li>Go to &nbsp;<a href="https://console.developers.google.com/iam-admin/serviceaccounts" target="_blank" rel="noreferrer noopener"><strong>Service accounts</strong>&nbsp;</a>and Select your project else create a new project as explained above.</li>
</ul>



<p></p>



<ul class="wp-block-list">
<li>Click&nbsp;Add&nbsp;<strong>Create Service Account</strong>, and enter a name and description for the service account. You can use the default service account ID, or choose a different, unique one. When done click&nbsp;<strong>Create</strong>.</li>
</ul>



<p></p>



<figure class="wp-block-image size-large is-resized"><img loading="lazy" decoding="async" width="935" height="1024" src="https://www.thecodebuzz.com/wp-content/uploads/2022/01/Google-Indexing-API-Submit-URL-using-script-or-batch-Create-service-account-935x1024.jpg" alt="submit multiple url to google,SEO index url," class="wp-image-19961" srcset="https://thecodebuzz.com/wp-content/uploads/2022/01/Google-Indexing-API-Submit-URL-using-script-or-batch-Create-service-account-935x1024.jpg 935w, https://thecodebuzz.com/wp-content/uploads/2022/01/Google-Indexing-API-Submit-URL-using-script-or-batch-Create-service-account-274x300.jpg 274w, https://thecodebuzz.com/wp-content/uploads/2022/01/Google-Indexing-API-Submit-URL-using-script-or-batch-Create-service-account-768x841.jpg 768w, https://thecodebuzz.com/wp-content/uploads/2022/01/Google-Indexing-API-Submit-URL-using-script-or-batch-Create-service-account-475x520.jpg 475w, https://thecodebuzz.com/wp-content/uploads/2022/01/Google-Indexing-API-Submit-URL-using-script-or-batch-Create-service-account.jpg 1096w" sizes="auto, (max-width: 935px) 100vw, 935px" /><figcaption class="wp-element-caption">Google Indexing API -Submit URL using a script or batch-Create service account</figcaption></figure>



<p></p>



<ul class="wp-block-list">
<li>The&nbsp;<strong>Service account permissions (optional)</strong>&nbsp;section that follow is not required. Click&nbsp;<strong>Continue</strong>.</li>
</ul>



<p></p>



<ul class="wp-block-list">
<li>On the&nbsp;Grant users access to this service account. You can add a specific role or keep the role optional.</li>
</ul>



<p></p>



<ul class="wp-block-list">
<li>Once done you shall see your service account create as below,</li>
</ul>



<p></p>



<ul class="wp-block-list">
<li>In the side panel, click on Action or: symbol. Please select Manage keys.</li>
</ul>



<p></p>



<p>Select the format for your private key:&nbsp;<strong>JSON</strong>&nbsp;is recommended.</p>



<p></p>



<figure class="wp-block-image size-large is-resized"><img loading="lazy" decoding="async" width="1024" height="760" src="https://www.thecodebuzz.com/wp-content/uploads/2022/01/script-to-bulk-submit-URLs-to-Google-for-re-crawling-Create-SVC-JSOn-private-key-1024x760.jpg" alt="Bulk Submit URLs to Google Search Engine,Bulk Index URLs to Google SEO" class="wp-image-19963" srcset="https://thecodebuzz.com/wp-content/uploads/2022/01/script-to-bulk-submit-URLs-to-Google-for-re-crawling-Create-SVC-JSOn-private-key-1024x760.jpg 1024w, https://thecodebuzz.com/wp-content/uploads/2022/01/script-to-bulk-submit-URLs-to-Google-for-re-crawling-Create-SVC-JSOn-private-key-300x223.jpg 300w, https://thecodebuzz.com/wp-content/uploads/2022/01/script-to-bulk-submit-URLs-to-Google-for-re-crawling-Create-SVC-JSOn-private-key-768x570.jpg 768w, https://thecodebuzz.com/wp-content/uploads/2022/01/script-to-bulk-submit-URLs-to-Google-for-re-crawling-Create-SVC-JSOn-private-key-1536x1140.jpg 1536w, https://thecodebuzz.com/wp-content/uploads/2022/01/script-to-bulk-submit-URLs-to-Google-for-re-crawling-Create-SVC-JSOn-private-key-701x520.jpg 701w, https://thecodebuzz.com/wp-content/uploads/2022/01/script-to-bulk-submit-URLs-to-Google-for-re-crawling-Create-SVC-JSOn-private-key-370x275.jpg 370w, https://thecodebuzz.com/wp-content/uploads/2022/01/script-to-bulk-submit-URLs-to-Google-for-re-crawling-Create-SVC-JSOn-private-key.jpg 1578w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p></p>



<ul class="wp-block-list">
<li>Click&nbsp;<strong>Create</strong>. A new public/private key pair will be generated and downloaded to your machine; </li>
</ul>



<p></p>



<p></p>



<h2 class="wp-block-heading" id="verify-site">Site Ownership &#8211; Add your service account as a site owner </h2>



<p></p>



<p>For site ownership, please perform the below steps,</p>



<p></p>



<h3 class="wp-block-heading" id="1.-prove-that-you-own-the-site">Prove as the Owner of the site&nbsp;</h3>



<p></p>



<p>The verification process of proving that you own the property needs to be done by you. </p>



<p>Please note that verified owners will have access to sensitive Search data for a site. Please click <a href="https://search.google.com/search-console/not-verified?original_url=/search-console/ownership&amp;original_resource_id" target="_blank" rel="noreferrer noopener">here </a>for more details </p>



<p></p>



<h3 class="wp-block-heading" id="2.-grant-owner-status-to-your-service-account">Grant owner status to your service account&nbsp;</h3>



<p></p>



<p>The next step is to make your Service account(created in the above step) a site owner.</p>



<p></p>



<p>This step is an important step toward getting actual access to the Indexing API.</p>



<p></p>



<ul class="has-medium-font-size wp-block-list">
<li>Please Open&nbsp;<a href="https://www.google.com/webmasters/verification/home" target="_blank" rel="noreferrer noopener">Webmaster Central</a></li>
</ul>



<ul class="has-medium-font-size wp-block-list">
<li>Click on the verified website.</li>
</ul>



<ul class="has-medium-font-size wp-block-list">
<li>In the&nbsp;<strong>Verified owner</strong>&nbsp;list, click&nbsp;<strong>Add an owner</strong>.</li>
</ul>



<ul class="has-medium-font-size wp-block-list">
<li>Provide your service account email as the delegated owner. You can find your service account email address in two places:
<ul class="wp-block-list">
<li><strong><em><code>client_email</code>&nbsp;</em></strong>&#8211; This is a field in the JSON private key in the JSON service account file which we downloaded in one of the above steps.</li>
</ul>
</li>
</ul>



<p></p>



<p>An <strong><em>email </em></strong>has the below <strong><em>pattern</em></strong>,</p>



<p></p>



<p class="has-medium-font-size">&lt;<code><var>your-service-account</var>&gt;@&lt;your-<var>project-name</var>&gt;.google.com.iam.gserviceaccount.com</code></p>



<p><br><br></p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="286" src="https://www.thecodebuzz.com/wp-content/uploads/2022/01/script-to-bulk-submit-URLs-to-Google-Add-owner-status-to-your-service-account-1024x286.jpg" alt="How To Bulk Index and Crawl URLs To Google Search Engine" class="wp-image-19964" srcset="https://thecodebuzz.com/wp-content/uploads/2022/01/script-to-bulk-submit-URLs-to-Google-Add-owner-status-to-your-service-account-1024x286.jpg 1024w, https://thecodebuzz.com/wp-content/uploads/2022/01/script-to-bulk-submit-URLs-to-Google-Add-owner-status-to-your-service-account-300x84.jpg 300w, https://thecodebuzz.com/wp-content/uploads/2022/01/script-to-bulk-submit-URLs-to-Google-Add-owner-status-to-your-service-account-768x214.jpg 768w, https://thecodebuzz.com/wp-content/uploads/2022/01/script-to-bulk-submit-URLs-to-Google-Add-owner-status-to-your-service-account-785x219.jpg 785w, https://thecodebuzz.com/wp-content/uploads/2022/01/script-to-bulk-submit-URLs-to-Google-Add-owner-status-to-your-service-account.jpg 1222w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p></p>



<h2 class="wp-block-heading" id="aioseo-final-step--bulk-submit-urls-programmatically">Final Step- Bulk Submit URLs Programmatically   </h2>



<p></p>



<p>That&#8217;s all, you are now all set to set up the automation. </p>



<p></p>



<p>With required <strong><em>prerequisites </em></strong>to start invoking the Google Indexing API.</p>



<p></p>



<p><em><strong>As a next step</strong></em>, please use any of the scripts of your choice(you are comfortable with) to call the Google Indexing API. </p>



<p></p>



<p>Please see the below article for the final steps where we will use a<strong><em> script to send the URL </em></strong>for Google indexing <strong><em>programmatically</em></strong>.</p>



<p></p>



<ul class="has-medium-font-size wp-block-list">
<li><a href="https://www.thecodebuzz.com/python-script-bulk-submit-urls-to-google-search-console-indexing-crawling/" target="_blank" rel="noreferrer noopener"><em><strong>Python script for Indexing the URL</strong></em></a></li>
</ul>



<ul class="has-medium-font-size wp-block-list">
<li><a href="https://www.thecodebuzz.com/java-bulk-submit-urls-google-search-console-index-crawl/" target="_blank" rel="noreferrer noopener" title="Using JAVA for indexing/Crawling the URL "><em><strong>Using JAVA for indexing/Crawling the URL </strong></em></a></li>
</ul>



<ul class="has-medium-font-size wp-block-list">
<li><a href="https://www.thecodebuzz.com/node-js-bulk-submit-urls-google-search-console/" target="_blank" rel="noreferrer noopener" title="Node.js – Bulk Submit URLs to Google Search Console"><em><strong>Node js example for indexing API </strong></em></a></li>
</ul>



<p></p>



<p>Please choose the language of your choice to script the indexing or crawling logic using automation techniques.</p>



<p></p>



<p></p>



<p style="font-size:18px">Do you have any <strong>comments or ideas or any better </strong>suggestions to share?</p>



<p class="has-small-font-size"></p>



<p style="font-size:18px">Please sound off your comments below.</p>



<p class="has-medium-font-size"></p>



<p class="has-medium-font-size"><strong>Happy Coding </strong>!!</p>



<p></p>



<hr>



<p class=""></p>



<p class="has-background" style="background-color:#b6d9ac;font-size:18px"><br>Please <strong><em>bookmark </em></strong>this page and <em><strong>share </strong></em>it with your friends.                                                    Please <a href="https://www.thecodebuzz.com/subscription/" target="_blank" rel="noreferrer noopener"><em><mark style="background-color:rgba(0, 0, 0, 0)" class="has-inline-color has-luminous-vivid-orange-color"><strong>Subscribe</strong> </mark></em></a>to the blog to receive notifications on freshly published (2025) best practices and guidelines for software design and development.</p>




<br>



<hr>



<p class=""></p>



<p></p><p>The post <a href="https://thecodebuzz.com/how-to-bulk-submit-website-urls-index-google-search-engine-console-wordpress-crawling/">How To Bulk Index URL To Google Search – SEO Automation</a> first appeared on <a href="https://thecodebuzz.com">TheCodeBuzz</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://thecodebuzz.com/how-to-bulk-submit-website-urls-index-google-search-engine-console-wordpress-crawling/feed/</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		
			</item>
		<item>
		<title>Python &#8211; Submit Website URLs To Google Search Index</title>
		<link>https://thecodebuzz.com/python-script-bulk-submit-urls-to-google-search-console-indexing-crawling/</link>
					<comments>https://thecodebuzz.com/python-script-bulk-submit-urls-to-google-search-console-indexing-crawling/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Sun, 02 Jan 2022 02:48:00 +0000</pubDate>
				<category><![CDATA[Python-How to]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[Wordpress]]></category>
		<guid isPermaLink="false">https://www.thecodebuzz.com/?p=19968</guid>

					<description><![CDATA[<p>Python script for Bulk Submit URLs to Google Search Console Today in this article, we will learn how to use Python script for Bulk Submit Website URLs to Google Search Console for Indexing or Crawling purpose. We already learned how to set up the service account, project, and other configurations so that we can leverage [&#8230;]</p>
<p>The post <a href="https://thecodebuzz.com/python-script-bulk-submit-urls-to-google-search-console-indexing-crawling/">Python – Submit Website URLs To Google Search Index</a> first appeared on <a href="https://thecodebuzz.com">TheCodeBuzz</a>.</p>]]></description>
										<content:encoded><![CDATA[<h1 class="wp-block-heading">Python script for Bulk Submit URLs to Google Search Console</h1>



<figure class="wp-block-image size-full is-resized"><img loading="lazy" decoding="async" width="764" height="400" src="https://www.thecodebuzz.com/wp-content/uploads/2022/01/python-script-for-index-multiple-url-google-search-console-engine.jpg" alt="Python - Submit Website URLs To Google Search Index" class="wp-image-20006" srcset="https://thecodebuzz.com/wp-content/uploads/2022/01/python-script-for-index-multiple-url-google-search-console-engine.jpg 764w, https://thecodebuzz.com/wp-content/uploads/2022/01/python-script-for-index-multiple-url-google-search-console-engine-300x157.jpg 300w" sizes="auto, (max-width: 764px) 100vw, 764px" /></figure>



<p>Today in this article,  we will learn how to use Python script for Bulk Submit Website URLs to Google Search Console for Indexing or Crawling purpose.</p>



<p></p>



<p>We already learned how to set up the service account, project, and other configurations so that we can leverage Google&#8217;s Indexing API before.</p>



<p></p>



<p>Today in this article, we will cover below aspects,</p>



<p></p>



<div class="wp-block-aioseo-table-of-contents"><ul><li><a href="#aioseo-python-script-for-bulk-submit-urls-to-google-search-console">Python script for Bulk Submit URLs to Google Search Console</a></li></ul></div>



<p></p>



<p>If you have not performed mandatory prerequisites, please follow the below article for more details,</p>



<p></p>



<ul class="has-medium-font-size wp-block-list">
<li><a href="https://www.thecodebuzz.com/how-to-bulk-submit-website-urls-index-google-search-engine-console-wordpress-crawling/" target="_blank" rel="noreferrer noopener" title="Configuration to setup multiple URLs submit to Google Search Console "><em>Configuration to setup multiple URLs submit to Google Search Console </em></a></li>
</ul>



<p></p>



<p></p>



<p>You may find the need to submit the URLs due to many reasons like article update due to new data or upgrade or article enhancement, etc.</p>



<p></p>



<p>In such scenarios, it is always difficult to perform indexing manually.</p>



<p></p>



<p>We shall be using below endpoints required for publishing the URLs,</p>



<p></p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p><strong>SCOPES</strong> = [ &#8220;<a href="https://www.googleapis.com/auth/indexing&quot;" target="_blank" rel="noreferrer noopener"><em><strong>https://www.googleapis.com/auth/indexing</strong>&#8220;</em></a> ]</p>



<p><strong>ENDPOINT</strong> = &#8220;<em><strong>https://indexing.googleapis.com/v3/urlNotifications:publish</strong></em>&#8220;</p>
</blockquote>



<p></p>



<p>In your <strong><em>python </em></strong>script please add below &#8220;<strong><em>using</em></strong>&#8221; namespace,</p>



<p></p>



<pre class="wp-block-preformatted has-medium-font-size">from oauth2client.service_account import ServiceAccountCredentials
import httplib2
import json</pre>



<p></p>



<p></p>



<p><strong>Sample Script </strong></p>



<p></p>



<pre class="wp-block-code"><code>from oauth2client.service_account import ServiceAccountCredentials
import httplib2
import json

SCOPES= &#91; "https://www.googleapis.com/auth/indexing" ]
ENDPOINT= "https://indexing.googleapis.com/v3/urlNotifications:publish"

# thecodebuzz-da659b2b8b0d.json is the private key that you created for your service account.


JSON_KEY_FILE = "thecodebuzz-da659b2b8b0d.json" #Specify your service account JSON here
credentials = ServiceAccountCredentials.from_json_keyfile_name(JSON_KEY_FILE, scopes=SCOPES)
http = credentials.authorize(httplib2.Http())
url="url-1"
content = {
      "url": url,
      "type": "URL_UPDATED"
    }
    response, content = http.request(ENDPOINT, method="POST", body=json.dumps(content))
    print(response)</code></pre>



<p></p>



<p><strong><em>from_json_keyfile_name </em></strong>method uses the <strong><em>JSON </em></strong>file service account information which we created in the previous article.</p>



<p></p>



<p></p>



<p>The above code works perfectly fine for one URL which we are providing the variable &#8220;URL&#8221;</p>



<p></p>



<p>Please install packages like <strong><em>oauth2client </em></strong>or <em><strong>httplib2 </strong></em>as required.</p>



<p></p>



<p></p>



<h2 class="wp-block-heading" id="aioseo-python-script-for-bulk-submit-urls-to-google-search-console">Python script for Bulk Submit URLs to Google Search Console</h2>



<p></p>



<p>You can use Python built-in function called enumerate to submit the URL list as below,</p>



<p></p>



<pre class="wp-block-code"><code>urlList=&#91;"url1","url2", "url3"]
for index, item in enumerate(urlList):
    content = {
      "url": item,
      "type": "URL_UPDATED"
    }
    response, content = http.request(ENDPOINT, method="POST", body=json.dumps(content))
    print(response)</code></pre>



<p></p>



<p>Once successfully submitted the URLs for indexing, you can see the status code as 200 for the request.</p>



<p></p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="526" src="https://www.thecodebuzz.com/wp-content/uploads/2022/01/script-to-bulk-submit-URLs-to-Google-indexing-engine-success-1024x526.jpg" alt="Python script for Bulk Submit URLs to Google Search Console" class="wp-image-19988" srcset="https://thecodebuzz.com/wp-content/uploads/2022/01/script-to-bulk-submit-URLs-to-Google-indexing-engine-success-1024x526.jpg 1024w, https://thecodebuzz.com/wp-content/uploads/2022/01/script-to-bulk-submit-URLs-to-Google-indexing-engine-success-300x154.jpg 300w, https://thecodebuzz.com/wp-content/uploads/2022/01/script-to-bulk-submit-URLs-to-Google-indexing-engine-success-768x394.jpg 768w, https://thecodebuzz.com/wp-content/uploads/2022/01/script-to-bulk-submit-URLs-to-Google-indexing-engine-success-1536x789.jpg 1536w, https://thecodebuzz.com/wp-content/uploads/2022/01/script-to-bulk-submit-URLs-to-Google-indexing-engine-success-785x403.jpg 785w, https://thecodebuzz.com/wp-content/uploads/2022/01/script-to-bulk-submit-URLs-to-Google-indexing-engine-success.jpg 1817w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p></p>



<p><strong><em>References </em></strong>:</p>



<p></p>



<p>Please follow the below article for more details on prerequisites,</p>



<p></p>



<ul class="has-medium-font-size wp-block-list">
<li><a href="https://www.thecodebuzz.com/how-to-bulk-submit-website-urls-index-google-search-engine-console-wordpress-crawling/" target="_blank" rel="noreferrer noopener" title="Configuration to setup multiple URLs submit to Google Search Console "><em>Configuration to setup multiple URLs submit to Google Search Console </em></a></li>
</ul>



<ul class="has-medium-font-size wp-block-list">
<li><a href="https://www.thecodebuzz.com/java-bulk-submit-urls-google-search-console-index-crawl/" target="_blank" rel="noreferrer noopener" title="Using JAVA for indexing/Crawling the URL "><em>Using JAVA for indexing/Crawling the URL </em></a></li>
</ul>



<p>That&#8217;s all! Happy coding!</p>



<p></p>



<p>Does this help you fix your issue? </p>



<p></p>



<p>Do you have any better solutions or suggestions? Please sound off your comments below.</p>



<hr>



<p class=""></p>



<p class="has-background" style="background-color:#b6d9ac;font-size:18px"><br>Please <strong><em>bookmark </em></strong>this page and <em><strong>share </strong></em>it with your friends.                                                    Please <a href="https://www.thecodebuzz.com/subscription/" target="_blank" rel="noreferrer noopener"><em><mark style="background-color:rgba(0, 0, 0, 0)" class="has-inline-color has-luminous-vivid-orange-color"><strong>Subscribe</strong> </mark></em></a>to the blog to receive notifications on freshly published (2025) best practices and guidelines for software design and development.</p>




<br>



<hr>



<p class=""></p>



<p></p><p>The post <a href="https://thecodebuzz.com/python-script-bulk-submit-urls-to-google-search-console-indexing-crawling/">Python – Submit Website URLs To Google Search Index</a> first appeared on <a href="https://thecodebuzz.com">TheCodeBuzz</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://thecodebuzz.com/python-script-bulk-submit-urls-to-google-search-console-indexing-crawling/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
