Skip to main content

Python API for Amocrm

Project description

AmoCRM python API.


.. image::
:alt: Join the chat at

Могу оказать помощь по экспорту/импроту ваших данных из/в AmoCRM

.. image::
.. image::

Python AmoCRM API ( (human interface for easy using )



pip install amocrm_api


There are 7 abstraction of 5 AmoCRM objects:

- Контакт - BaseContact
- Компания - BaseCompany
- Сделка - BaseLead
- Задача - (LeadTask, ContactTask)
- Событие - (LeadNote, ContactNote)


First of all you need to define settings

from amocrm import BaseContact, amo_settings, fields
amo_settings.set('', '4b332718c4c5944003af7e6389860ced', 'testcentrobit')

Custom field

One of the features of AmoCRM in the presence of custom fields in a contact, company and lead objects

To define your custom field you need describe it


from amocrm import BaseContact, amo_settings, fields
amo_settings.set('', '4b332718c4c5944003af7e6389860ced', 'testcentrobit')

class Contact(BaseContact):
position = fields.CustomField(u'Должность')
site = fields.CustomField(u'Сайт')
phone = fields.EnumCustomField(u'Телефон', enum='WORK')

Ok, now it is ready to use and you can get, create or edit contacts


new_contact = Contact(name='Example2', company='ExampleCorp2', position='QA', phone='0001') = ''

contact = Contact.objects.get(
contact_search ='Example2')
assert ==
print( = '8-800-00000000'
contact.create_task('New task, yeee', task_type=u'Звонок',

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for amocrm_api, version 0.8.3
Filename, size & hash File type Python version Upload date
amocrm_api-0.8.3.tar.gz (16.0 kB) View hashes Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page