Skip to content

Endpoint Settings for Search Engines#

SearchEngineEndpoint#

Endpoint options for the IndexNow API.

Attributes:

Name Type Description
SearchEngineEndpoint.INDEXNOW StrEnum

IndexNow default endpoint.

SearchEngineEndpoint.BING StrEnum
SearchEngineEndpoint.NAVER StrEnum
SearchEngineEndpoint.SEZNAM StrEnum
SearchEngineEndpoint.YANDEX StrEnum
SearchEngineEndpoint.YEP StrEnum

Yep.

Example

How to submit a URL to the IndexNow API using different endpoint options or a custom endpoint:

Python
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
from index_now import submit_url_to_index_now, IndexNowAuthentication, SearchEngineEndpoint

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

endpoint_bing = SearchEngineEndpoint.BING
endpoint_yandex = SearchEngineEndpoint.YANDEX
endpoint_custom = "https://example.com/indexnow"

for endpoint in [endpoint_bing, endpoint_yandex, endpoint_custom]:
    submit_url_to_index_now(authentication, "https://example.com/page1", endpoint)

Tip

The IndexNow organisation maintains a list of currently available search engines that support the IndexNow API. Find it here:

indexnow.org/searchengines.json

Warning

It is not recommended to submit the same URLs to multiple endpoints. Once you have successfully submitted to one IndexNow endpoint, the IndexNow service is designed to propagate your URLs to other search engines, so you do not need to submit to multiple times.