IndexNow for better SEO

CK CK 3788 
Created at  
321 0 0

For SEO(Search Engine Optimization), we usually use sitemap.xml. Microsoft also supports sitemap.xml, but it looks like that they want to have the different kind of standard which is named as IndexNow.

IndexNow is an initiative that was launched by Microsoft in collaboration with Yandex. It allows websites to instantly notify search engines about content changes (such as updates, new pages, or deletions) using a standardized API.

This reduces the time it takes for search engines to crawl and reflect website changes in their indexes. While it was initially spearheaded by Microsoft Bing and Yandex, other search engines, such as Seznam, have also joined the effort, though Google has not yet fully adopted it.

So, Microsoft and Yandex can be considered the primary owners of the IndexNow protocol.

 

Steps to Set Up IndexNow on CentOS 7 using curl:

  1. Generate an API Key: To interact with IndexNow, you first need to generate an API key. This is typically a unique key for your domain.

    You can create a 32-character API key using any method, such as openssl:

    openssl rand -hex 16
    

    Save this key in a file on your website at https://yourdomain.com/indexnow.txt.

  2. Create a JSON Payload: For every URL you want to submit to IndexNow, create a JSON payload that includes the URL(s) and your API key.

    {
      "host": "yourdomain.com",
      "key": "YOUR_API_KEY",
      "keyLocation": "https://yourdomain.com/indexnow.txt",
      "urlList": [
        "https://yourdomain.com/new-page",
        "https://yourdomain.com/updated-page"
      ]
    }
    
  3. Submit URLs to IndexNow using curl:

    Use curl to send the request to the IndexNow endpoint. Replace "YOUR_API_KEY" with the key you generated and "yourdomain.com" with your actual domain.

    Example curl command:

    curl -X POST \
    -H "Content-Type: application/json" \
    -d '{
      "host": "yourdomain.com",
      "key": "YOUR_API_KEY",
      "keyLocation": "https://yourdomain.com/indexnow.txt",
      "urlList": [
        "https://yourdomain.com/new-page",
        "https://yourdomain.com/updated-page"
      ]
    }' https://www.bing.com/indexnow
    
  4. Automate URL Submission (Optional): If you'd like to automate URL submissions, you can set up a cron job on CentOS 7 to trigger the curl request whenever content changes.

    Example cron job (submit every 5 minutes):

    */5 * * * * curl -X POST -H "Content-Type: application/json" -d '{
      "host": "yourdomain.com",
      "key": "YOUR_API_KEY",
      "keyLocation": "https://yourdomain.com/indexnow.txt",
      "urlList": [
        "https://yourdomain.com/new-page",
        "https://yourdomain.com/updated-page"
      ]
    }' https://www.bing.com/indexnow
    

Key Notes:

  • Ensure the indexnow.txt file is accessible at the URL specified.
  • Keep your API key secure, but publicly shareable in the indexnow.txt file.
  • Check the documentation for other search engines using IndexNow (e.g., Yandex, Bing).

This approach will allow your CentOS 7 system to interact with the IndexNow protocol using curl.


Key Takeaways: IndexNow for Faster SEO

  • IndexNow is a new standard for notifying search engines about website changes. This allows search engines to update their indexes more quickly, improving your website's visibility.
  • IndexNow is a collaborative effort, currently led by Microsoft Bing and Yandex. Other search engines, such as Seznam, are also participating, but Google has not yet fully adopted it.
  • Implementing IndexNow requires a few simple steps:
    • Generate a unique API key and store it in a publicly accessible file on your website.
    • Create a JSON payload containing your URLs and API key.
    • Submit the payload to the IndexNow endpoint using curl.
  • For optimal results, consider automating the submission process. This can be done by setting up a cron job that runs periodically and submits new or updated URLs.
  • Keep your API key secure, but make it accessible via the specified file location. This allows IndexNow to authenticate your requests.
  • Refer to the documentation of participating search engines for specific instructions and requirements.
Tags Content updates Crawling Deleted pages Faster indexing IndexNow New pages SEO Search Engine Optimization Search engine indexing Visibility Website changes Website performance Facebook X
Comments 0
Similar posts
  1. JavaScript Code to Get Meta Description from HTML
    398
  2. Enhancing SEO for Single Page Applications: Implementing Dynamic URL Updates
    1,043
  3. How do we make better SEO with schema.org?
    428
  4. Why 100% SEO Guarantees Better User Engagement and How to Achieve It in Your Service
    57
  1. How to post content (image or video) to Instagram using the Instagram Graph API
    6,412
  2. Font name correctly having the same width space
    1,229
  3. JavaScript Algorithms
    722
  4. GraphQL Tutorial on CentOS 7: From Installation to Deployment
    564
  5. Capture all browser console logs including errors for debugging
    2,192
  6. Simple asynchronous/synchronous $.ajax() example using jQuery to make an HTTP GET request
    862
  7. JavaScript Code to Get Page Keywords
    353
  8. What is OpenGraph?
    367
  9. What is Twitter Cards?
    405
  10. Code to Extract the Site Thumbnail Image for Twitter or Facebook
    395
  11. JavaScript Code to Get the Page Title
    340
  12. Javascript code to extract favicon URL
    404
  13. RSS to Array in JavaScript
    2,168
  14. Javascript function to convert sitemap.xml to array
    602
  15. Understanding Elasticsearch from Installation to Trouble Shooting
    915
  16. Method to ignore JavaScript Errors globally instead of try... catch for each of cases
    973
  17. Method to catch the browser console log and errors for remote web debugging
    2,191
  18. Atlassian Jira Ticket API Response Example
    2,807
  19. Three different type of Word-Wrap options in HTML CSS
    1,189
  20. JavaScript code to load XML Document
    604
  21. Creating a Pinterest-Style Card Layout with Bootstrap and Masonry
    599
  22. Equal Height Blocks in Bootstrap with JavaScript
    713
  23. Copy text to clipboard in Javascript
    1,717
  24. To block copy & paste on your blog content
    905
  25. Shake your browser window by Javascript
    939
  26. Photoshop script programming in Javascript
    533
  27. To compare two HTML tables on web page in real time
    517
  28. To hide/show area of web page without re-loading a page
    1,028
  29. Displays the html tags without rendering on a webpage
    354
  30. Javascript based query parser for AJAX application
    570
Recently updated
  1. Google OAuth Token Expiration: Causes and Solutions
    31
  2. Why SPF and DKIM Are Essential for Linux Email Servers?
    51
  3. How do I create animated background for Google Meet?
    23,191
  4. MaxMind GeoLite2 vs. DB-IP Lite vs. ip-api.com: Choosing the Right Free IP Geolocation Solution
    273
  5. Meet Valkey: Why Redis Changed Its License, Why Valkey is Better, and How to Use It as a Drop-in Replacement
    104
  6. How Rogue Web Scrapers Are Stealing My Content and Destroying My Server
    170
  7. Array of arguments passed to script in PHP
    98
  8. Invalid Auction Storms in Ad Tech
    107
  9. Building MRC-Compliant Instrumentation in Ad Tech: Implementation Steps and Key Challenges
    208
  10. The Two Clocks of Ad Server Architecture
    78
  11. Frequency Cap Architecture Overview
    527
  12. Collecting Proof-of-Play from 100,000 Screens
    153
  13. Vector Search in Relational Databases (RDBs): Trends & Usage Environments
    303
  14. What is RedisVL?
    116
  15. Designing a Skill Registry Architecture: Minimize Token Usage and Maximize AI Performance
    247
  16. TPU & GPU Cluster Management Tools
    258
  17. The Concept of Scaffolding in AI Agents
    245
  18. Beyond Static Pipelines: Architecting LLM Multi-Agent Systems for Autonomous Workflow Orchestration
    598
  19. AI-DLC vs. AI-SDLC: Model-Centric vs. System-Centric AI Development
    268
  20. Fine-Tuning Open-Weight LLMs: Training, Licensing, and Deploying Custom Models with Ollama
    354
  21. Inside the Next-Generation Streaming Architecture: Ultra-Low Latency, SGAI, and AI Codecs
    207
  22. Machine Learning: Training vs. Ranking
    229
  23. The Continuous Learning Machine: Designing a Loop That Actually Turns
    228
  24. The Next-Gen Low-Latency Standards: LL-HLS & MoQ
    203
  25. Designing a Data Curation System Around a Vector Database
    230
  26. Extracting Context from Live Video: The Architecture Got Simpler When We Stopped Building Features
    263
  27. The New Ad Stack Behind Live Sports Streaming: Inside SGAI, EABN, and the Standards Race to Fix Live Monetization
    674
  28. Designing MLOps Architectures to Handle Seasonal Data Drift in EV Fleet Models
    201
  29. From 15 to 40+ FPS: Accelerating PyTorch Object Detection on Automotive ECUs
    233
  30. Understanding Data Lineage
    272