Using rest apis and find duplicates in a file.