The invention discloses a method and a device for automatically realizing an API (Application Program Interface) application, and the method comprises the following steps: recording an execution process of processing equipment, the execution process comprising the operation of at least one input equipment of the processing equipment and the execution information of the processing equipment in response to the operation; analyzing the execution process, determining a target data item, determining the execution process for obtaining the target data item, and determining input parameters for obtaining the target data item; and determining an API corresponding to the target data item, taking a part of parameters or all parameters used for obtaining input parameters of the target data item as input parameters of the API, and taking an execution process used for obtaining the target data item as an execution process of the API. The parameters and the execution process of the API can be automatically generated, the workload of API configuration parameters and the process is reduced, part of operation in the execution process can be modified according to the preset rule, and the personalized requirement of a user is met. The flexibility of the process is improved to adapt to more complex systems, and the function of an API is added.