Modular apparatus for filling and closing randomly fed articles, in particular containers, comprising: - an article transport system for transporting the articles arranged randomly on at least a first article transport plane along a respective direction for transporting articles; - a closing element transport system for transporting closing elements, in particular caps, arranged randomly on at least a first closing element transport plane for transporting closing elements, in a respective transport direction; - a filling station, configured to supply and dispense a product inside one of said articles A arranged in a filling position; - a closing station for closing the filled articles, provided with means for applying a respective one of said closing elements onto a respective one of said filled articles A; - an extraction system for transporting the filled and closed articles along a longitudinal extraction direction (X-X) and in an extraction sense from upstream to downstream; the extraction system comprising in particular an extraction plane for extracting the filled and closed articles which is oriented parallel to the longitudinal extraction direction (X-X) and to a transverse widthwise direction (Y-Y) of the apparatus, on which the filled and closed articles (A') are transported, arranged with a predefined orientation and/or position; - one or more first pick and place devices arranged and configured to pick up the articles A arranged randomly on the first article transport plane and to position them in a predefined orientation and/or position at the filling station; - one or more second pick and place devices, arranged and configured to pick up one of said closing elements from said first closing element transport plane of the respective transport system and to feed it to the application means of the closing station; - a detection system for detecting the position and/or the arrangement of the articles in transit on the at least first article transport plane and of the closing elements in transit on the respective at least first closing element transport plane and making the information available for controlling the pick and place devices (30,40); - a processing and controlling unit for controlling the components and operating systems of the apparatus, designed in particular to receive information about the position and/or arrangement of the articles and/or of the closing elements and to control the pick and place devices; wherein said first article transport plane for transporting the articles and first closing element transport plane for transporting the closing elements are arranged on opposite sides of the extraction system, in particular of the extraction plane for extraction of the filled and closed articles. - an article transport system for transporting the articles arranged randomly on at least a first article transport plane along a respective direction for transporting articles; - a closing element transport system for transporting closing elements, in particular caps, arranged randomly on at least a first closing element transport plane for transporting closing elements, in a respective transport direction; - a filling station, configured to supply and dispense a product inside one of said articles A arranged in a filling position; - a closing station for closing the filled articles, provided with means for applying a respective one of said closing elements onto a respective one of said filled articles A; - an extraction system for transporting the filled and closed articles along a longitudinal extraction direction (X-X) and in an extraction sense from upstream to downstream; the extraction system comprising in particular an extraction plane for extracting the filled and closed articles which is oriented parallel to the longitudinal extraction direction (X-X) and to a transverse widthwise direction (Y-Y) of the apparatus, on which the filled and closed articles (A') are transported, arranged with a predefined orientation and/or position; - one or more first pick and place devices arranged and configured to pick up the articles A arranged randomly on the first article transport plane and to position them in a predefined orientation and/or position at the filling station; - one or more second pick and place devices, arranged and configured to pick up one of said closing elements from said first closing element transport plane of the respective transport system and to feed it to the application means of the closing station; - a detection system for detecting the position and/or the arrangement of the articles in transit on the at least first article transport plane and of the closing elements in transit on the respective at least first closing element transport plane and making the information available for controlling the pick and place devices (30,40); - a processing and controlling unit for controlling the components and operating systems of the apparatus, designed in particular to receive information about the position and/or arrangement of the articles and/or of the closing elements and to control the pick and place devices;