npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

n8n-nodes-shopee-affiliate

v0.0.6

Published

Shopee Affiliate node for n8n

Readme

n8n-node-shopee-afiliado

Visão geral

n8n-node-shopee-afiliado é um node customizado para o n8n que permite integrar de forma simples e segura a API de afiliados da Shopee aos seus fluxos de automação. Com ele, você pode:

  • Consultar produtos, categorias e lojas da Shopee.
  • Gerar links de afiliado curtos e rastreáveis.
  • Recuperar informações de comissão e estatísticas de campanhas.
  • Automatizar processos de marketing (ex.: postagem automática em redes sociais, atualização de planilhas, disparo de newsletters).

Por que usar?

  • Elimina a necessidade de escrever código manual para lidar com a autenticação OAuth 2.0 da Shopee.
  • Mantém a lógica de chamada à API centralizada e reutilizável em vários workflows.
  • Compatível com a versão LTS do n8n (v1.x) e pode ser facilmente instalado via npm.

Principais funcionalidades

| Funcionalidade | Descrição | |----------------|-----------| | Autenticação OAuth 2.0 | Gerencia refresh token e acessos automáticos. | | Buscar produtos | Filtra por ID, palavra‑chave, categoria, preço, etc. | | Gerar links de afiliado | Cria URLs curtos com tracking ID. | | Obter comissões | Consulta métricas de performance da sua conta de afiliado. | | Gerenciamento de campanhas | Cria, atualiza e lista campanhas existentes. | | Suporte a Rate‑Limit | Implementa retry automático com back‑off exponencial. |

Instalação

npm install
npm run build

Operações disponíveis

| Operação | Descrição | Principais parâmetros | |----------|-----------|-----------------------| | Get Offers | Recupera ofertas de produtos com base em itemId, listType e demais filtros. | itemId (único), listType, matchId, keyword, shopId, productCatId, sortType, page, limit, isAMSOffer, isKeySeller, shortlink, thumbnail | | Search Products | Busca produtos por palavra‑chave. | keyword, shopId, productCatId, sortType, page, limit, isAMSOffer, isKeySeller, shortlink, thumbnail |

Propriedades comuns (reutilizadas)

  • keyword – Busca produtos pelo nome.
  • shopId – Filtra produtos de uma loja específica.
  • productCatId – Filtra por categoria Shopee.
  • sortType – Tipo de ordenação (Relevance, Items Sold, Price Desc/Asc, Commission Desc).
  • page – Número da página da consulta.
  • limit – Quantidade máxima de produtos retornados.
  • isAMSOffer – Filtra ofertas com comissão AMS.
  • isKeySeller – Filtra ofertas de sellers principais da Shopee.
  • shortlink – Gera links curtos de afiliado (opcional, pode aumentar o tempo de execução).
  • thumbnail – Adiciona fórmula IMAGE para Google Sheets.

Parâmetros específicos de Get Offers

  • itemId – Busca um produto específico pelo ID.
  • listType – Tipo de lista de ofertas (All, Top Performing, Landing Category, Detail Category, Detail Shop).
  • matchId – Valor de matchId correspondente ao listType (CategoryId ou ShopId).

Credenciais

Crie uma credencial chamada Shopee Affiliate API com o partner_id e api_key fornecidos pela Shopee.

Testes

Testes unitários foram adicionados em nodes/ShopeeAffiliate/actions/__tests__/ usando Jest. Execute-os com:

npm test

Observação de desempenho

A opção Short Link faz requisições adicionais à API para gerar links curtos e pode aumentar o tempo de execução da operação.


Para mais detalhes, consulte a documentação oficial da Shopee Affiliate API.