Submit Multiple URLs in Bulk to the IndexNow API#
submit_urls_to_index_now()
#
Submit a list of URLs to the IndexNow API of a search engine.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
authentication | IndexNowAuthentication | Authentication credentials for the IndexNow API. | required |
urls | list[str] | List of URLs to submit. For example: | required |
endpoint | SearchEngineEndpoint | str | Select the search engine you want to submit to or use a custom URL as endpoint. | INDEXNOW |
Returns:
Name | Type | Description |
---|---|---|
int | int | The status code of the response, e.g. |
Example
After adding your authentication credentials to the IndexNowAuthentication
class, you can now submit multiple URLs to the IndexNow API:
Python | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 |
|
If you want to submit to a specific search engine, alternatively customize the endpoint:
11 12 |
|