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 transport plane along a respective article transportation direction; - a closing element transport system for transporting closing elements, in particular caps, arranged randomly on at least a first 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 so as to close it; - an extraction system for transporting the filled and closed articles (A') along a longitudinal extraction direction (X-X) and in an extraction sense from upstream to downstream; - one or more first pick and place devices arranged and configured to pick up the articles 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 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 transport plane and of the closing elements in transit on the respective at least first transport plane and making the information available for controlling the pick and place devices (30,40); - a processing and control unit for controlling the components and operating systems of the apparatus; - gripping and positioning means (43,44) configured and controlled to hold an article in a filling position in the filling station, to displace a filled article from the filling station to a closing position in the closing station, to hold the article in the closing position during the application of a closing element, and to displace a filled and closed article (A') from the closing position in the closing station into a position and/or orientation for extraction. - an article transport system for transporting the articles arranged randomly on at least a first transport plane along a respective article transportation direction; - a closing element transport system for transporting closing elements, in particular caps, arranged randomly on at least a first 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 so as to close it; - an extraction system for transporting the filled and closed articles (A') along a longitudinal extraction direction (X-X) and in an extraction sense from upstream to downstream; - one or more first pick and place devices arranged and configured to pick up the articles 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 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 transport plane and of the closing elements in transit on the respective at least first transport plane and making the information available for controlling the pick and place devices (30,40); - a processing and control unit for controlling the components and operating systems of the apparatus; - gripping and positioning means (43,44) configured and controlled to hold an article in a filling position in the filling station, to displace a filled article from the filling station to a closing position in the closing station, to hold the article in the closing position during the application of a closing element, and to displace a filled and closed article (A') from the closing position in the closing station into a position and/or orientation for extraction.