(php script) analysis of site positions in the search engine

Good day. Who has experienced this before? Interested in whether there is a system in php to analyze the position of the site in the search engine for keywords. Interested in any options, pieces of code, articles, etc. I want to begin to understand the principle of work.

The goal is to create your own such tool.

Answer 1, authority 100%

Yandex.XML— a service that allows you to send requests to the Yandex search database and receive responses in XML format .