В поддержку «Дадаты» иногда обращаются с вопросом «как проверить, является ли физлицо самозанятым». Налоговая служба не предоставляет открытых данных по самозанятым, поэтому такого сервиса нет в «Дадате».
Но можно воспользоваться API налоговой. Мы подготовили примеры, как это сделать на самых популярных языках — Python, PHP и JavaScript.
API налоговой бесплатное, но используете его вы на свой страх и риск. Никто не гарантирует, что оно будет работать корректно и стабильно.
Пример ответа API налоговой, если ИНН принадлежит самозанятому: