How is the Unified State Register - a unified state register of legal entities



Incorporation is a state register of legal entities in which data of 10 million Russian companies are stored. Manages the directory FTS.

From the Incorporation , we take the data of organizations for the " Clues ", " Single client " and " Factor ". The article will tell you how we lived before the directory, how we get access to it and how we work with it.

Life before the register


A couple of years ago, the Federal Tax Service hid the Unified State Register of Companies in its depths, and we collected data about the companies where necessary.

To begin with, we bought a database from multistat.ru - this is a legal reseller who sold the FTS data. The problem is that the Multistat gave its base at a high price and without updates.

Therefore, we updated the data using the sites kartoteka.ru and fedresurs.ru . Of course, they didn’t give any information to unload the information: in response to the TIN or OGRN entered, they showed only one company card.

We wrote a script that generated INNs and requested information on them on reference sites. If the script found a new legal entity or a change in the old one, it took the update.

And in 2015, the FTS opened the register to everyone who is willing to pay. This tax service has killed the market sales directory: before the base was worth millions, and now the symbolic, in general, 150 000 ₽. (There is a suspicion that the money just pays for infrastructure and support.)

Then we thought: "Well, now we will live!".

Access to Register


Annual access to the register is 150 000 ₽. (EGRIP is the same amount - the state register of individual entrepreneurs.)

That's what needed to be done in early 2018 to access the data.

Pay 150 000 ₽ for one reference book or 300 000 ₽ for two. Instructions for completing the payment - on the website of the Federal Tax Service .

Send by courier to the Federal Tax Service two documents:


In the request, you can choose the access delivery method - mail or email. We always choose an email, but there are surprises: in 2016, the FTS did not receive letters to the addresses of the @ hflabs.ru domain. In 2017, the problem was corrected, but the sediment remained.

Documents are accepted at: 125373, Moscow, Pokhodny travel, dvd 3, second floor. Tax Inspectorate "MITS of Russia for the Data Center . " Unlike regular inspection, this one doesn’t have a number. In January, we extended access to the Unified State Register of Legal Entities, and the courier mistakenly gave the documents to the next inspection. The package miraculously reached where it was needed, but it took longer to wait. It makes sense to emphasize to the courier that there is no inspection number in the correct address.

Wait for the decision. Within three working days, including the day of delivery of documents, incoming letters are registered with the FTS. Within five working days consider the request.

The application status is recognized by the number (495) 913-07-60. You will be asked:


Get accessed. If everything is in order, you will receive by mail or by email access to the Unified State Register. In the email attachment - an archive with files: PDF with notification on the official form, PDF with login and password, certificate in .p12 file.


Even if you order access by email, they will still be duplicated by regular mail. It is to the physical letter refers to the line about the CD

So, access in your pocket - it's time to quench your thirst for knowledge.

Directory structure


A USR is a long footwoman with date-folders.


Register data is downloaded from the FTP server

In each directory is a zip-archive.


There may be several archives in the directory.

In the integration instructions, the Federal Tax Service writes that up to 100 xml files are stored in each archive. We counted, the numbers are correct :)


Each xml - up to 1000 entries

Each entry includes the basic attributes of a legal entity:


Of the listed attributes, only the OGRN is filled in for everyone, it is always unique. With the other parameters, there are variations, even not all legal entities have a PPC.

In addition to the basic information about the legal entity in each record is something else interesting:


Yes, the USRL branches are not separate records, but only attributes.

Updates


On the first day of each year, the FTS is posting on the server all that it has, a complete base of legal entities at the current time. The name of the folder with uploads: 01 / 01 / 2015_FULL , 01 / 01 / 2016_FULL, and so on.

Further updates are released daily, the Federal Tax Service adds them to folders by dates: 01/02/2018 , 01/03/2018 , etc. If the update did not come, do not worry: the FTS may skip a couple of days, and then dump some at once.

In each update there are only changed entries. If on May 4, the FTS learned about changes in legal entity data, they will appear in a folder on 05/05/2018 , 05/06/2018 or 07/05/2018 , within 1-3 days, respectively. Therefore, current information about the company is always in the folder with the name that is closest to today.

How many archives will be in the update is not known in advance. Maybe one. If it is very average, the data usually changes around 50,000 legal entities. One day, in February 2017, the entire base came in an update. As far as can be judged, in the Unified State Register of Companies then the internal identifiers and elements of the structure globally changed, which have no relation to business objectives.

It would seem that it is elementary to get relevant information about legal entities from the Incorporation: you take a complete base at the beginning of the year and apply all subsequent updates. After that, it remains to download and roll changes to the base every day.

Not here it was! FTS strictly follows that the developers do not get bored. Errors and crutches in the Unified Statements - a separate, interesting and rich topic. We revealed it in the next article .

Come to us to work if you like to parse complex reference books, structure the data and bring them to a human mind. Now we are looking for a javista for the “Factor” product. Salary - from 175 000 to 275 000 ₽, details - on hh.ru.

Source: https://habr.com/ru/post/413891/


All Articles