Get all products by category name or url key

Sorry I just read my question again and realised that maybe I forgot an important detail…I would like to retrieve the products programmatically.