My dilemma involves utilizing the SWAPI API to display a single result, whether it be a person or a planet. However, instead of providing a direct ID for each item, the API returns a complete URL in this format:
"url": "http://swapi.dev/api/people/1/"
I am unsure how to extract that final digit from the URL so that I can dynamically use it as an ID in my dynamic pages.