Grovix Lab

Sending a POST Request to IndexNow API using Postman

Sep, 2024 Thu

What is the IndexNow API?

IndexNow is a simple ping protocol that lets search engines know that a URL and its content have been added, updated, or deleted. This allows search engines to quickly reflect this change in their search results by crawling and indexing faster.

Benefits of IndexNow

With IndexNow, search engines quickly know that URLs have been updated, helping them prioritize crawl for these URLs and thereby limiting organic crawling to discover new content.

Does Google Support IndexNow?

IndexNow is supported by Bing, Yandex, Naver, and more, with the list always updating. However, Google does not support IndexNow.

Submitting URLs to IndexNow

To submit a set of URLs using an HTTP request, issue your POST JSON request to the URL provided by Search Engines. Here’s how you can do it using Postman:

Step 1: Create a New Request

  • Click on the "New" button in the top left corner.
  • Select "Request" from the dropdown menu.
  • Give your request a name and optionally add it to a collection.

Step 2: Set-Up the Request URL

  • In the request window, set the request type to POST by selecting it from the dropdown menu to the left of the URL bar.
  • Enter the URL https://api.indexnow.org/indexnow in the URL bar.

Step 3: Add Headers

  • Go to the "Headers" tab below the URL bar.
  • Add a new header: Key: Content-Type, Value: application/json;charset=utf-8.

Step 4: Add Raw JSON Body

  • Go to the "Body" tab below the URL bar.
  • Select the "raw" radio button.
  • In the dropdown menu next to the "raw" radio button, select "JSON".
  • Paste the following JSON data into the text area.
{
"host": "www.example.com",
"key": "<your-api-key>",
"keyLocation": "https://www.example.com/<your-api-key>.txt",
"urlList": [ "<new-page-urls>" ]
}

Components:

  • host: This is the domain name of the website where the changes are being reported (e.g., www.grovixlab.com). This indicates that the notification is about changes on the grovixlab.com domain.
  • key: This is the API key assigned to you by the IndexNow service. This is used to authenticate your request with the IndexNow API.
  • keyLocation: This is the URL where the key verification file is hosted on your website.
  • urlList: This is an array of URLs that have been added, updated, or deleted on your website.

Step 5: Send the Request

  • Click the "Send" button to send the request to the IndexNow API.
Sending a POST Request to IndexNow API using Postman
Sajad pp

Sajad pp 

I am an SEO specialist, a Computer Science student, Founder of Grovix Lab, and a backend developer.

Trending