amazoninfo

Drop-in an amazon product page link and have different website URLs automatically generated for the product. Has a setting at the top that changes whether the information is displayed as the embed's description or in 2 inline fields.

Sharedunrated

Content

24 lines
{=(comment):If you or your server are primarily mobile users, set the variable below to 1, otherwise leave it as 0. This will change how the embed's content is displayed.}
{=(mobileuser):0}

{=(httptrim):{args(3+):/}}
{=(symbolreplace):{replace(/, ):{replace(?, ):{httptrim}}}}
{=(dpindex):{index(dp):{symbolreplace}}}
{=(productcode):{symbolreplace({m:trunc(2+{dpindex})})}}

{=(amzurl):https://{httptrim(1):/}/dp/}
{=(cccurl):https://camelcamelcamel.com/product/}
{=(rvmurl):https://reviewmeta.com/amazon/}
{=(tpturl):https://thepricetest.com/asin/us/}
{=(honurl):https://www.joinhoney.com/shop/amazon/p/}
{=(kepurl):https://keepa.com/#!product/1-}

{=(sites):Amazon: Camelcamelcamel: JoinHoney: Keepa: ReviewMeta: ThePriceTest:}
{=(links):[Direct Product Link]({amzurl}{productcode}/)$[Price History Data]({cccurl}{productcode}/)$[Price History Data]({honurl}{productcode}/)$[Price History Data]({kepurl}{productcode}/)$[Product Review Analysis]({rvmurl}{productcode}/)$[Raw Product Information]({tpturl}{productcode}/)}

{=(info0):"fields":[{"name":"Sites","value":"{join(\n):{sites}}","inline":true},{"name":"Links","value":"{replace($,\n):{links}}","inline":true}],}
{=(info1):"description":"{sites(1)} {links(1):$}\n{sites(2)} {links(2):$}\n{sites(3)} {links(3):$}\n{sites(4)} {links(4):$}\n{sites(5)} {links(5):$}\n{sites(6)} {links(6):$}",}

{=(json):{info{mobileuser}}"title":"Info for {productcode}","color":16750848}

{c:cembed {channel(id)} {{json}}}
Raw JSON
{
  "id": 95379,
  "created_at": "2019-12-03T04:49:36.000Z",
  "tag_name": "amazoninfo",
  "nsfw": false,
  "owner_id": "129419437911572480",
  "uses": 15,
  "description": "Drop-in an amazon product page link and have different website URLs automatically generated for the product.\nHas a setting at the top that changes whether the information is displayed as the embed's description or in 2 inline fields.",
  "restricted": false,
  "shared": true,
  "deleted": false,
  "safe": "unrated",
  "hidden": false,
  "guild_id": "632187193162465281",
  "sharer": "129419437911572480",
  "content": "{=(comment):If you or your server are primarily mobile users, set the variable below to 1, otherwise leave it as 0. This will change how the embed's content is displayed.}\n{=(mobileuser):0}\n\n{=(httptrim):{args(3+):/}}\n{=(symbolreplace):{replace(/, ):{replace(?, ):{httptrim}}}}\n{=(dpindex):{index(dp):{symbolreplace}}}\n{=(productcode):{symbolreplace({m:trunc(2+{dpindex})})}}\n\n{=(amzurl):https://{httptrim(1):/}/dp/}\n{=(cccurl):https://camelcamelcamel.com/product/}\n{=(rvmurl):https://reviewmeta.com/amazon/}\n{=(tpturl):https://thepricetest.com/asin/us/}\n{=(honurl):https://www.joinhoney.com/shop/amazon/p/}\n{=(kepurl):https://keepa.com/#!product/1-}\n\n{=(sites):Amazon: Camelcamelcamel: JoinHoney: Keepa: ReviewMeta: ThePriceTest:}\n{=(links):[Direct Product Link]({amzurl}{productcode}/)$[Price History Data]({cccurl}{productcode}/)$[Price History Data]({honurl}{productcode}/)$[Price History Data]({kepurl}{productcode}/)$[Product Review Analysis]({rvmurl}{productcode}/)$[Raw Product Information]({tpturl}{productcode}/)}\n\n{=(info0):\"fields\":[{\"name\":\"Sites\",\"value\":\"{join(\\n):{sites}}\",\"inline\":true},{\"name\":\"Links\",\"value\":\"{replace($,\\n):{links}}\",\"inline\":true}],}\n{=(info1):\"description\":\"{sites(1)} {links(1):$}\\n{sites(2)} {links(2):$}\\n{sites(3)} {links(3):$}\\n{sites(4)} {links(4):$}\\n{sites(5)} {links(5):$}\\n{sites(6)} {links(6):$}\",}\n\n{=(json):{info{mobileuser}}\"title\":\"Info for {productcode}\",\"color\":16750848}\n\n{c:cembed {channel(id)} {{json}}}",
  "embed": "{}",
  "last_fetched": "2026-10-20T20:45:41.634Z"
}