reading content and building API calls