I'm not sure there is a publicly accessible API that offers basket  definition. The occ sells that data. Otherwise see their info memos.