🔍 Submit URLs to the IndexNow API of Various Search Engines 🔎
Are you concerned about search engine optimization (SEO)? Do you want to make sure your website is indexed frequently by Bing, Yandex, DuckDuckGo, and other search engines?
IndexNow for Python is a lightweight, yet powerful Python package that makes it easy to submit URLs or entire sitemaps to the IndexNow API of various search engines, so your pages can be indexed faster.
Ready to try? Learn how to install and find tutorials in the user guide.
Getting Started
Basic Usage and Submit Individual URLs
Firstly, ensure that you have an API key for IndexNow. Hereafter, add your authentication credentials to the IndexNowAuthentication class, which will be used throughout the examples. You can now submit individual URLs to the IndexNow API:
from index_now import submit_url_to_index_now, IndexNowAuthentication
authentication = IndexNowAuthentication(
host="example.com",
api_key="a1b2c3d4",
api_key_location="https://example.com/a1b2c3d4.txt",
)
submit_url_to_index_now(authentication, "https://example.com/page1")
Submit Multiple URLs in Bulk
How to submit multiple URLs in bulk to the IndexNow API:
from index_now import submit_urls_to_index_now, IndexNowAuthentication
authentication = IndexNowAuthentication(...)
urls = ["https://example.com/page1", "https://example.com/page2", "https://example.com/page3"]
submit_urls_to_index_now(authentication, urls)
Submit Entire Sitemap
How to submit an entire sitemap to the IndexNow API:
from index_now import submit_sitemap_to_index_now, IndexNowAuthentication
authentication = IndexNowAuthentication(...)
sitemap_location = "https://example.com/sitemap.xml"
submit_sitemap_to_index_now(authentication, sitemap_location)
Submit to Specific Search Engines
How to use the default SearchEngineEndpoint options or a custom endpoint:
from index_now import submit_url_to_index_now, IndexNowAuthentication, SearchEngineEndpoint
authentication = IndexNowAuthentication(...)
endpoint_bing = SearchEngineEndpoint.BING
endpoint_custom = "https://example.com/indexnow"
for endpoint in [endpoint_bing, endpoint_custom]:
submit_url_to_index_now(authentication, "https://example.com/page1", endpoint)
Become a Sponsor 🏅
If you find this project helpful, please consider supporting its development. Your donations will help keep it alive and growing. Every contribution makes a difference, whether you buy a coffee or support with a monthly donation. Find your tier here:
Thank you for your support! 🙌
Contribute
If you have suggestions or changes to the module, feel free to add to the code and create a pull request.
Report Bugs
If you encounter any issues, you can report them as bugs or raise issues.
Metadata
Release files for index-now-for-python 1.0.25
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| index_now_for_python-1.0.25.tar.gz | 13.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| index_now_for_python-1.0.25-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 32.2 kB
Release files / index_now_for_python-1.0.25.tar.gz
| Download URL | index_now_for_python-1.0.25.tar.gz |
|---|---|
| Size | 13.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c05c50fa5fd60dd132b5a6c2cb9e68adbbab9cba65025d61356f3f324246ce06
|
|
BLAKE2b-256 checksum How to use checksums |
81b29081caf2c24dfc58ac80b5470f517dd3ec1ea9adc6f9ca8d708ea5b19943
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 22, 2026.
Transparency logRelease files / index_now_for_python-1.0.25-py3-none-any.whl
| Download URL | index_now_for_python-1.0.25-py3-none-any.whl |
|---|---|
| Size | 18.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
28a39aaa14b0e58f9f7ea1f2fbda405dfadd04f9bb4efffe62e07b33402ffd7f
|
|
BLAKE2b-256 checksum How to use checksums |
e5fcf9f1f77e64860c8f7707ecbfbe00fb6830265473665f0cee06bc52f51d47
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 22, 2026.
Transparency log