を買いに行った

went to buy

→ を
phrase Rare #20,157
went to buy Follows the thing being bought; を marks it as the object of 買う (to buy).
JA: 新しいノートを買いに行った。
EN: I went to buy a new notebook.

彼女は食べ物を買いに行った。

She went to buy some food.

郵便局に切手を買いに行った。

I went to the post office to buy stamps.

今日は服を買いに行ったんだ。

I went clothes shopping today.