convert to library
get the item type
document possible values
return item data in struct
no longer write to stdout
no longer used
expose item urls