[](https://github.com/jakob-bagterp/index-now-for-python/releases/latest)
[](https://www.python.org)
[](https://github.com/jakob-bagterp/index-now-for-python/blob/master/LICENSE.md)
[](https://codecov.io/gh/jakob-bagterp/index-now-for-python)
[](https://github.com/jakob-bagterp/index-now-for-python/actions/workflows/codeql.yml)
[](https://github.com/jakob-bagterp/index-now-for-python/actions/workflows/test.yml)
[](https://pepy.tech/project/index-now-for-python)
# 🔍 Submit URLs to the IndexNow API of Various Search Enginges 🔎
Are you concerned about search engine optimization (SEO)? Do you want to make sure your website is indexed frequently by [Bing](https://www.bing.com/indexnow), [Yandex](https://yandex.com/indexnow), [DuckDuckGo](https://duckduckgo.com/), 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](https://jakob-bagterp.github.io/index-now-for-python/getting-started/installation/) and find tutorials in the [user guide](https://jakob-bagterp.github.io/index-now-for-python/user-guide/).
## Getting Started
### Basic Usage and Submit Individual URLs
Firstly, ensure that you have an [API key for IndexNow](https://jakob-bagterp.github.io/index-now-for-python/user-guide/tips-and-tricks/generate-api-keys/). 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:
```python
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")
```
> [!IMPORTANT]
> Instances of `authentication = IndexNowAuthentication(...)` below refer to this section:
>
> ```python
> authentication = IndexNowAuthentication(
> host="example.com",
> api_key="a1b2c3d4",
> api_key_location="https://example.com/a1b2c3d4.txt",
> )
> ```
### Submit Multiple URLs in Bulk
How to submit multiple URLs in bulk to the IndexNow API:
```python
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:
```python
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:
```python
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, no matter the size, makes a difference.
[Donate on GitHub Sponsors](https://github.com/sponsors/jakob-bagterp)
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](https://github.com/jakob-bagterp/index-now-for-python/pulls).
## Report Bugs
If you encounter any issues, you can [report them as bugs or raise issues](https://github.com/jakob-bagterp/index-now-for-python/issues).
# MIT License
Copyright (c) 2025 – present, Jakob Bagterp
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Raw data
{
"_id": null,
"home_page": "https://jakob-bagterp.github.io/index-now-for-python/",
"name": "index-now-for-python",
"maintainer": "Jakob Bagterp",
"docs_url": null,
"requires_python": ">=3.11",
"maintainer_email": "jakob_bagterp@hotmail.com",
"keywords": "python, timer",
"author": "Jakob Bagterp",
"author_email": "jakob_bagterp@hotmail.com",
"download_url": "https://files.pythonhosted.org/packages/ff/ce/d3cc8b12319b006ca62ce2c176374259e1536ea32cec2c75e6ae3314ae99/index_now_for_python-1.0.7.tar.gz",
"platform": null,
"description": "[](https://github.com/jakob-bagterp/index-now-for-python/releases/latest)\n[](https://www.python.org)\n[](https://github.com/jakob-bagterp/index-now-for-python/blob/master/LICENSE.md)\n[](https://codecov.io/gh/jakob-bagterp/index-now-for-python)\n[](https://github.com/jakob-bagterp/index-now-for-python/actions/workflows/codeql.yml)\n[](https://github.com/jakob-bagterp/index-now-for-python/actions/workflows/test.yml)\n[](https://pepy.tech/project/index-now-for-python)\n\n# \ud83d\udd0d Submit URLs to the IndexNow API of Various Search Enginges \ud83d\udd0e\nAre you concerned about search engine optimization (SEO)? Do you want to make sure your website is indexed frequently by [Bing](https://www.bing.com/indexnow), [Yandex](https://yandex.com/indexnow), [DuckDuckGo](https://duckduckgo.com/), and other search engines?\n\nIndexNow 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.\n\nReady to try? Learn [how to install](https://jakob-bagterp.github.io/index-now-for-python/getting-started/installation/) and find tutorials in the [user guide](https://jakob-bagterp.github.io/index-now-for-python/user-guide/).\n\n## Getting Started\n### Basic Usage and Submit Individual URLs\nFirstly, ensure that you have an [API key for IndexNow](https://jakob-bagterp.github.io/index-now-for-python/user-guide/tips-and-tricks/generate-api-keys/). 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:\n\n```python\nfrom index_now import submit_url_to_index_now, IndexNowAuthentication\n\nauthentication = IndexNowAuthentication(\n host=\"example.com\",\n api_key=\"a1b2c3d4\",\n api_key_location=\"https://example.com/a1b2c3d4.txt\",\n)\n\nsubmit_url_to_index_now(authentication, \"https://example.com/page1\")\n```\n\n> [!IMPORTANT]\n> Instances of `authentication = IndexNowAuthentication(...)` below refer to this section:\n>\n> ```python\n> authentication = IndexNowAuthentication(\n> host=\"example.com\",\n> api_key=\"a1b2c3d4\",\n> api_key_location=\"https://example.com/a1b2c3d4.txt\",\n> )\n> ```\n\n### Submit Multiple URLs in Bulk\nHow to submit multiple URLs in bulk to the IndexNow API:\n\n```python\nfrom index_now import submit_urls_to_index_now, IndexNowAuthentication\n\nauthentication = IndexNowAuthentication(...)\n\nurls = [\"https://example.com/page1\", \"https://example.com/page2\", \"https://example.com/page3\"]\n\nsubmit_urls_to_index_now(authentication, urls)\n```\n\n### Submit Entire Sitemap\nHow to submit an entire sitemap to the IndexNow API:\n\n```python\nfrom index_now import submit_sitemap_to_index_now, IndexNowAuthentication\n\nauthentication = IndexNowAuthentication(...)\n\nsitemap_location = \"https://example.com/sitemap.xml\"\n\nsubmit_sitemap_to_index_now(authentication, sitemap_location)\n```\n\n### Submit to Specific Search Engines\nHow to use the default `SearchEngineEndpoint` options or a custom endpoint:\n\n```python\nfrom index_now import submit_url_to_index_now, IndexNowAuthentication, SearchEngineEndpoint\n\nauthentication = IndexNowAuthentication(...)\n\nendpoint_bing = SearchEngineEndpoint.BING\nendpoint_custom = \"https://example.com/indexnow\"\n\nfor endpoint in [endpoint_bing, endpoint_custom]:\n submit_url_to_index_now(authentication, \"https://example.com/page1\", endpoint)\n```\n\n## Become a Sponsor \ud83c\udfc5\nIf you find this project helpful, please consider supporting its development. Your donations will help keep it alive and growing. Every contribution, no matter the size, makes a difference.\n\n[Donate on GitHub Sponsors](https://github.com/sponsors/jakob-bagterp)\n\nThank you for your support! \ud83d\ude4c\n\n## Contribute\nIf you have suggestions or changes to the module, feel free to add to the code and create a [pull request](https://github.com/jakob-bagterp/index-now-for-python/pulls).\n\n## Report Bugs\nIf you encounter any issues, you can [report them as bugs or raise issues](https://github.com/jakob-bagterp/index-now-for-python/issues).\n\n# MIT License\n\nCopyright (c) 2025 \u2013 present, Jakob Bagterp\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n",
"bugtrack_url": null,
"license": "MIT License",
"summary": "Lightweight Python package that makes it easy to submit URLs to the IndexNow API of various search engines",
"version": "1.0.7",
"project_urls": {
"API Reference": "https://jakob-bagterp.github.io/index-now-for-python/reference/",
"Bug Tracker": "https://github.com/jakob-bagterp/index-now-for-python/issues",
"Documentation": "https://jakob-bagterp.github.io/index-now-for-python/",
"Download": "https://pypi.org/project/index-now-for-python/",
"Homepage": "https://jakob-bagterp.github.io/index-now-for-python/",
"Release Notes": "https://github.com/jakob-bagterp/index-now-for-python/releases",
"Source Code": "https://github.com/jakob-bagterp/index-now-for-python"
},
"split_keywords": [
"python",
" timer"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "9080bc43c350a71365f195ee942378ba815424bc213dfb5a89f744ede4f8fd1f",
"md5": "cbbdf573ba1f0e08196b2bc241386c17",
"sha256": "10838195082e60975657ae2bbf1917b9a1489d57254e45c47b2f82edcb3fa03e"
},
"downloads": -1,
"filename": "index_now_for_python-1.0.7-py3-none-any.whl",
"has_sig": false,
"md5_digest": "cbbdf573ba1f0e08196b2bc241386c17",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.11",
"size": 17737,
"upload_time": "2025-09-01T18:02:21",
"upload_time_iso_8601": "2025-09-01T18:02:21.012465Z",
"url": "https://files.pythonhosted.org/packages/90/80/bc43c350a71365f195ee942378ba815424bc213dfb5a89f744ede4f8fd1f/index_now_for_python-1.0.7-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "ffced3cc8b12319b006ca62ce2c176374259e1536ea32cec2c75e6ae3314ae99",
"md5": "cc238480b1dfd1447f41ff508594500f",
"sha256": "1d56edf603e2ecc0045bf08b4df846e0d715a588a5847cd0e344c8e5d631ffa5"
},
"downloads": -1,
"filename": "index_now_for_python-1.0.7.tar.gz",
"has_sig": false,
"md5_digest": "cc238480b1dfd1447f41ff508594500f",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.11",
"size": 15187,
"upload_time": "2025-09-01T18:02:22",
"upload_time_iso_8601": "2025-09-01T18:02:22.199048Z",
"url": "https://files.pythonhosted.org/packages/ff/ce/d3cc8b12319b006ca62ce2c176374259e1536ea32cec2c75e6ae3314ae99/index_now_for_python-1.0.7.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-09-01 18:02:22",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "jakob-bagterp",
"github_project": "index-now-for-python",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [
{
"name": "colorist",
"specs": [
[
"==",
"1.8.3"
]
]
},
{
"name": "lxml",
"specs": [
[
"==",
"6.0.0"
]
]
},
{
"name": "requests",
"specs": [
[
"==",
"2.32.4"
]
]
}
],
"tox": true,
"lcname": "index-now-for-python"
}