It attaches to Raspberry Pi by way of one of the two small sockets on the board upper surface. Preferred Sensor Resolution: 1080p. Supports connecting infrared LED or flash LED. Still picture resolution: 2592 x 1944, also supports 1080p30, 720p60 and 640x480p60/90 video.
eBay