How to download YAML for an API?

Go to the API, at the top right there is downside arrow symbol with text ”open API” click on that YAML file will download for that API.