Accessing the API

Host for all API requests:

https://jsonapi.partner2.yandex.com/vX/

where X is the version number of the API.

To work with the API, you need to use an API key.

Use one of the following ways to pass the key:

  • Pass the key in the HTTP Authorization header and specify the token type before the value.

    Authorization: token ac3b42lp-89ls-...
    
  • Pass it as a query parameter.

    curl -g -i -H "Accept: application/vnd.api+json" GET 'https://jsonapi.partner2.yandex.com/vX/resources?page\[size\]=2&apikey=e78...'