Added function to get entities from URL