changed get_data call to include one more parameter
changed get_data function for more url customization. Added new endpoint