R
R
revukvr2019-11-22 13:58:37
Java
revukvr, 2019-11-22 13:58:37

How to pull filtered data through the AmoCRM API?

Hello! There is such a problem. I need to extract all filtered data from AmoCRM. I have my own fields in each transaction (for example, "lamination date", "manager"). And I need to pull through the api all the data that is in some funnels + lamination date (from - to) and which is assigned to a certain manager. In the service itself, this is not a problem, since there is a filter there and it will show me from all transactions only those that fall under the filter. Can I configure the same filter through the API? Because there can be about 1000 transactions, and only 2 fall under the filter. And you don’t want to pull all the transactions, and then filter them on your server. Over time, there will be about 10,000 of them.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Valery Chmykh, 2019-11-26
@revukvr

POST https://<subdomain>.amocrm.ru/ajax/leads/list/

Options:
  • filter - array with data for filtering.
  • filter[cf] - an array of custom fields, where the key is id and the value is what it is equal to
  • filter[main_user][] - array of managers
  • filter[cf][][from] - value from
  • filter[cf][][to] - value before
  • page - selection page

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question