You asked
What is the nikon af s 20mm f 1 8g ed good for?
The Nikon AF-S 20mm f/1.8G ED is a wide prime for Nikon F-mount cameras. It's built for full-frame bodies, though it also fits APS-C cameras, where it frames like a 30mm lens. Its f/1.8 aperture lets in plenty of light for indoor and night shots, and it's autofocus. It has no stabilisation, so it steadies the camera but not the subject, and in dim light you'll rely on the lens's speed and the camera's sensor size.
Its main job is wide views. The lenses guide suggests a wide lens for landscapes, and this one gives you a wide, immersive frame with a shallow-enough depth of field for separating a foreground from the background. A 20mm lens is too wide for flattering portraits, as the portraits guide explains, since close subjects get exaggerated. For people, a 35mm or 50mm is the better choice.
For vlogging, the video guide recommends a wide lens around 16-20mm full-frame equivalent held at arm's length, so this lens suits that use on a full-frame Nikon. Full-frame bodies such as the Nikon D750 or Nikon D850 make the most of it. If you want a lighter, cheaper setup, the Nikon D5600 is an APS-C body that also fits this lens, though it turns the view into a narrower 30mm.
Written by Claude from this site's pages.
From these pages
This answer is for the question above. Each answer is written for the exact question in its address, so a question with its details in it (a budget, what you shoot, what you already have) gets an answer about those details. An answer draws on all 15 pages of the guide and its catalogue of 320 cameras and 1050 lenses. Another question gets its own answer at its own address, as words after /ask/. Or fill in your own: /ask/which-camera-for-{what-you-shoot}-under-{budget}-euros or /ask/which-lens-for-{what-you-shoot}-on-{your-camera}.