The nonlinear harmonic sensor is a popular wireless sensor and radiofrequency identification (RFID) technique, which allows high-performance sensing in a severe interference/clutter background by transmitting a radio wave and detecting its modulated higher-order harmonics. Here we introduce the concept and design of optical harmonic tags based on nonlinear nanoantennas that can contactlessly detect electronic (e.g. electron affinity) and optical (e.g. relative permittivity) characteristics of molecules. By using a dual-resonance gold-molecule–silver nanodipole antenna within the quantum mechanical realm, the spectral form of the second-harmonic scattering can sensitively reveal the physical properties of molecules, paving a new route towards optical molecular sensors and optical identification (OPID) of biological, genetic, and medical events for the 'Internet of Nano-Things'.