Skip to content

Submit Multiple URLs to IndexNow#

How to Submit URLs in Bulk#

If several pages on your site have changed and you want them all to be reindexed, you can submit a list of URLs in bulk to the IndexNow API using the submit_urls_to_index_now() method:

Python
from index_now import submit_urls_to_index_now, IndexNowAuthentication

authentication = IndexNowAuthentication(
    host="example.com",
    api_key="a1b2c3d4",
    api_key_location="https://example.com/a1b2c3d4.txt",
)

urls = [
    "https://example.com/page1",
    "https://example.com/page2",
    "https://example.com/page3"
]

submit_urls_to_index_now(authentication, urls)