The invention provides a flow statistics-based solar energy internet-of-things road lamp and its working principle, which comprises a display screen, an internet of things main controller, a storage battery, a photovoltaic charger, an internet of things communication module, a main switch, a main control cabinet, a cabinet door, a fixed base, a LED lamp, a lamp holder rain-proof lampshade, a maintenance type foldable garbage storage plate structure, a top seat, an illumination sensor, a connecting pipe, a traffic light, an adjusting chute, a vehicle flow self-checking adaptation device structure and an adjustable pre-installation anti-rain cover structure.The protective cover, the sensor mounting seat, the connecting rod, the connecting plate, the vehicle flow self-checking sensor, the high-definition camera and the camera fixing frame are beneficial tothe rain-proof protection function of the traffic flow self-checking sensor, and the traffic flow can be measured in real time throughthe traffic flow self-inspection sensor and high-definition camera; the adjusting seat, the fixing plate, the rain-proof cover main body, the rain-proof plate and the adjusting bolt are arranged tohelp the traffic light to havea good protection and can play a role of rain-proof.