You asked
Is the nikon af s 24mm f 1 8g ed good for street photography?
Yes, the Nikon AF-S 24mm f/1.8G ED is a good street lens. At 24mm on full frame it takes in a lot of the scene, and f/1.8 gives you enough light for dim streets and indoor cafés. It has autofocus, but no stabilisation, so keep your shutter speed up.
Street work rewards a camera you barely notice, so I'd pair this lens with an APS-C body. On APS-C it frames like 36mm, and the sensor guide makes the case that a smaller APS-C camera is easier to carry all day. Good options from its list are the Nikon D3500 and the Nikon D5600.
Before you shoot people, read the street page on being open about what you're doing.
Written by Claude from this site's pages.