Wikidata:Requests for comment/Adding URL reference to claims using pywikibot

I'm having trouble understanding the details of claims as references in the pywikibot API reference. I'm trying to add a URL reference to a claim I'd like to add to a list of items, however it doesn't seem as straightforward as it is in the graphical web editor to me. I can't find examples online and using search engines gives any result mentioning the API reference. Is this not a best practice? Is there a reason for so few mentions of how to do this?