build api hash from file
builds uris from opts hash