Typical measurements of light in the near-field utilize a photodetector such as a photomultiplier tube or a photodiode, which is placed remotely from the region under test. This kind of detection has many draw-backs including the necessity to detect light in the far-field, the influence of background propagating radiation, the relatively narrowband operation of photodetectors which complicates the operation over a wide wavelength range, and the difficulty in detecting radiation in the far-IR and THz. Here we review an alternative near-field light measurement technique based on the detection of optically induced forces acting on the scanning probe. This type of detection overcomes some of the above limitations, permitting true broad-band detection of light directly in the near-field with a single detector. The physical origins and the main characteristics of optical force detection are reviewed. In addition, intrinsic effects of the inherent optical forces for certain operation modalities of scanning probe microscopy are discussed. Finally, we review practical applications of optical force detection of interest for the broader field of the scanning probe microscopy.