Save api id to index as an int instead of a list