Skip to content

Get Started in 3 Easy Steps 🚀#

Ready to try the easy way to submit URLs to the IndexNow API of various search engines? Let's get started:

1. Install IndexNow for Python Package#

Assuming that Python is already installed, execute this command in the terminal to install the Timer package:

pip install index-now-for-python

Find more details and options in the installation guide.

2. Set Up an API Key#

To verify ownership of your domain, you need to create an API key. This key is hosted on your website so that the IndexNow API service can authenticate your requests. The API key is required each time you submit a URL to the IndexNow API.

For more information about the API key, see the official IndexNow documentation or the getting started guide from Microsoft Bing.

3. First Script#

You're now ready to submit your first URL to the IndexNow API:

Python
1
2
3
4
5
6
7
8
9
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")

Next Steps#

Find more usage examples and tutorials in the user guide section.

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

Thank you for your support! 🙌