extract the marketplace endpoint correctly