Skip to content

Instantly share code, notes, and snippets.

@quanon
Last active March 5, 2026 23:14
Show Gist options
  • Select an option

  • Save quanon/5e08bccdb3921aebd6bf3afaae77bf43 to your computer and use it in GitHub Desktop.

Select an option

Save quanon/5e08bccdb3921aebd6bf3afaae77bf43 to your computer and use it in GitHub Desktop.
リワインドの「新商品/再入荷」「Coming Soon/近日入荷」を JSON API で取得する
# 新商品/再入荷
curl -s 'https://yoyostorerewind.com/collections/new-items/products.json' | jq -r '.products[] | "\n\(.vendor) - \(.title) (\(.variants[0].price | tonumber | floor) yen)\nhttps://yoyostorerewind.com/products/\(.handle)"'
# Coming Soon/近日入荷
curl -s 'https://yoyostorerewind.com/collections/coming-soon/products.json' | jq -r '.products[] | "\n\(.vendor) - \(.title) (\(.variants[0].price | tonumber | floor) yen)\nhttps://yoyostorerewind.com/products/\(.handle)"'
@quanon
Copy link
Author

quanon commented Mar 5, 2026

jq コマンドが必要です。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment