I have a link similar to https://app.ticketmaster.com/discovery/v2/events?apikey=xxxxxx&keyword=Sarah%20Jarosz&latlong=xx.xxxxx,-xxx.xxxx&radius=15&unit=miles&locale=* that is being passed as a parameter in a function of mine. I want to get the value of the keyword portion of this link and I was hoping to find something easier than writing my own function with substring.
I am familiar with the window.locaiton.____ method of getting portions of links but this is being passed as a parameter in a function so I cannot use that method. I tried using the method defined in this question Parse an URL in JavaScript but I cannot use .keyword instead of .search to get the keyword portion only.