Key for user verification
To send URLs, you need to verify that you are the owner of the site for which you send data. To verify this, use a special key: you need to generate it and place a file with it on your site. Yandex checks the key in every API request. The contents of the file and its location should be known only to you and the search engine.
You can generate the key manually. Some CMS may also support IndexNow.
Key requirements
- Only UTF-8 encoding is supported.
- The minimum number of characters in the key is 8, the maximum is 128.
- The key can contain characters
a-z
,A-Z
,0-9
,-
. - Use a TXT file or another format with text data. The file must not contain HTML markup. Example:
How do I place a file with a key?
You can place the file:
In this case, the file name must strictly match the key value. For example, the https://www.example.org/EdD8dkmdNLlxREi2LkhJjYOH2kyQbJqM3cBKT5fX.txt file that contains the EdD8dkmdNLlxREi2LkhJjYOH2kyQbJqM3cBKT5fX
key.
In this case, you need to send the file location in the keyLocation variable in every API request. A request with the key can contain only pages located in the same directory as the key.
For example, the http://example.com/catalog/key12457EDd.txt key is valid only for the URLs of the pages located in http://example.com/catalog/ and invalid for pages hosted in http://example.com/help/.