You asked
Can I adapt the nikon af s 24mm f 1 8g ed to nikon z?
I can't confirm this one from the site. The 24mm f/1.8G ED is listed for the Nikon F mount, and the camera list on its page covers only Nikon F-mount bodies, not Nikon Z cameras. So I can't tell you whether it works on a Z body, or with what adapter.
What I can say is that the Lenses page covers adapting lenses to mirrorless cameras, but it's about old manual-focus film-era lenses. This lens autofocuses, which that page doesn't cover. Check the adapter's specs and the camera maker's compatibility list before buying. If you'd rather choose a lens for a Z body, tell me what you want to shoot and I can point you to options on the site.
Written by Claude from this site's pages.