How do I get a Collection metadata in the backend?

Is there a way to get

  • Field name

  • Field key

  • Field type
    of every field in a collection?

Thank you