Rakuten Affiliate API - Merchants, Coupons, Products
Pricing
from $2.00 / 1,000 item scrapeds
Rakuten Affiliate API - Merchants, Coupons, Products
Query Rakuten Advertising APIs for affiliate merchants, products, and active coupons. You provide your own OAuth credentials or access token. Multi-network: US/UK/AU/BR/DE. Get merchant IDs, deep-links, commission data.
Pricing
from $2.00 / 1,000 item scrapeds
Rating
0.0
(0)
Developer
Actor stats
0
Bookmarked
2
Total users
1
Monthly active users
8 days ago
Last modified
Categories
Share
🛒 Rakuten Advertising API — Merchants, Coupons & Products (BYOC)
🔗 View on Apify Store | 🇺🇸 English | 🇧🇷 Português
Query the Rakuten Advertising Publisher API for affiliate merchants, active coupons, and product search results. BYOC (Bring Your Own Credentials) — bring your free Rakuten publisher credentials and we proxy queries with 98% margin. ToS-compliant, anti-bot immune (official API).
✨ Features
- 3 query types —
productSearch(find products across merchants),coupons(active deals),advertisers(joinable merchants) - Dual auth modes — OAuth
client_credentialsgrant OR pre-generated access token from Rakuten Developer Portal - XML response parsing — regex-based extractor (no
lxmldependency) - Multi-network support — same actor queries US, UK, AU, BR, DE Rakuten networks (pass appropriate
siteId) - Auto-pagination for
productSearch(up to 1000 records per run) - NEVER 0 ITEMS guard — fails loud if Rakuten returns empty, never silent SUCCEEDED with no data
- Owner-skip pattern — internal runs (owner) bypass PPE charge
🔑 BYOC setup (one-time, free, ~10 min)
- Sign up at https://developers.rakutenadvertising.com (or use your existing Publisher account)
- Applications → Create New App → copy
Client ID+Client Secret - Find your Site ID in Rakuten Advertising account (7-digit number)
- Two paths to authenticate:
- Path A (OAuth): paste
clientId+clientSecret+siteIdin actor input. Actor does the OAuthclient_credentialsexchange automatically. - Path B (pre-generated token): in Developer Portal click "Generate Token" → paste resulting JWT in
accessTokeninput. Use this if Path A fails withinvalid_client(some app states require manual activation).
- Path A (OAuth): paste
Limits: free tier provides standard publisher API quotas — typically 1 request/second, 10K/day. Plenty for affiliate research.
📥 Input
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
clientId | string (secret) | Path A | — | OAuth client ID from Applications |
clientSecret | string (secret) | Path A | — | OAuth client secret |
siteId | string | Yes | — | Your Publisher Site ID (~7 digits) |
accessToken | string (secret) | Path B | — | Pre-generated token (skips OAuth) |
queryType | enum | Yes | productSearch | productSearch / coupons / advertisers |
keyword | string | conditional | — | Search keyword (required for productSearch/coupons) |
category | string | No | — | Category filter (where supported) |
maxResults | integer | No | 100 | 1-1000 |
Example input (Path B — pre-generated token, simpler)
{"siteId":"4703080","accessToken":"your-token-from-rakuten-portal","queryType":"productSearch","keyword":"running shoes","maxResults":50}
Example input (Path A — OAuth flow)
{"clientId":"your-rakuten-client-id","clientSecret":"your-rakuten-client-secret","siteId":"4703080","queryType":"coupons","keyword":"fashion","maxResults":100}
📤 Output
productSearch records
{"queryType":"productSearch","productName":"Nike Air Max 90 - Running Shoe","merchantId":"39247","merchantName":"Nike US","advertiserCategory":"Athletic Apparel","price":"129.99","currency":"USD","salePrice":null,"linkUrl":"https://click.linksynergy.com/...","imageUrl":"https://cdn.example.com/...","description":"...","sku":"AIRMAX-90-US-10","scrapedAt":"2026-05-15T13:45:00.000Z"}
coupons records
{"queryType":"coupons","offerId":"12345","merchantId":"39247","merchantName":"Nike US","offerText":"20% off Running Shoes","couponCode":"RUN20","startDate":"2026-05-01","endDate":"2026-05-31","linkUrl":"https://click.linksynergy.com/...","categories":["Apparel"]}
advertisers records
{"queryType":"advertisers","merchantId":"39247","merchantName":"Nike US","applicationStatus":"OPEN","commissionTerms":"8% on sale","categories":["Apparel","Sports"],"currency":"USD","country":"US"}
💰 Pricing
Pay-per-event (PPE): only charged when a real record is returned. Zero results → zero charge. Owner-skip pattern ensures internal runs are not charged.
🚀 Use cases
- Affiliate program discovery — find Rakuten merchants you can join (e.g., Nike US, Macy's, Walmart, Booking.com)
- Coupon aggregation — power your coupon site with live Rakuten deals
- Product catalog import — seed your comparison or affiliate site
- Price intelligence — track merchant pricing across Rakuten network
- Compliance research — survey affiliate commission terms across verticals
⚠️ Common errors
| Error | Cause | Fix |
|---|---|---|
[RAKUTEN_AUTH] invalid_client | OAuth client not activated | Use Path B (pre-generated token) — paste JWT from Developer Portal |
[RAKUTEN_AUTH] HTTP 401 | Token expired / wrong scope | Refresh token in Developer Portal |
[RAKUTEN_API] HTTP 429 | Rate limit (1 req/sec free tier) | Wait 60s and retry |
[FAIL] Zero records returned | Filter too narrow / empty results | Try broader keyword or queryType=advertisers |
🔒 Privacy & security
Your clientSecret and accessToken are passed directly to api.linksynergy.com over HTTPS. Apify Console marks the fields as isSecret: true so the values are masked in logs and dataset. We never store, log, or proxy them through our servers.
📚 Related actors
- CJ Affiliate Products — Commission Junction API (BYOC)
- Impact.com Affiliate Network — Impact REST API (BYOC)
- Awin Multi-Merchant Affiliate — Awin Publisher API (BYOC)
- ShareASale Publisher (BYOC) — ShareASale Affiliate API (BYOC)
🆕 Changelog
- v1.0 (2026-05-14): Initial release. 3 query types, dual auth (OAuth + pre-generated JWT), XML regex parser, auto-pagination, owner-skip PPE, NEVER 0 ITEMS guard.
Português
🛒 Rakuten Advertising API — Merchants, Coupons & Products (BYOC)
Consulta a API oficial Rakuten Advertising Publisher para descobrir merchants, cupons ativos e produtos. BYOC (Bring Your Own Credentials) — você traz suas credenciais grátis Rakuten e nós fazemos as queries com margem 98%. ToS-compliant, sem anti-bot (API oficial).
Diferencial vs scraping anti-bot
- Sem 403/429 — API oficial endorsada pelo Rakuten
- Sem proxy residencial caro — API REST direta
- 98% de margem PPE
- Dados estruturados (XML parseado para JSON limpo)
✨ Funcionalidades
- 3 tipos de consulta —
productSearch(encontra produtos entre merchants),coupons(ofertas ativas),advertisers(merchants que aceitam novos publishers) - Dois modos de autenticação — OAuth
client_credentialsgrant OU token de acesso pré-gerado no Rakuten Developer Portal - Parsing de resposta XML — extrator baseado em regex (sem dependência de
lxml) - Suporte multi-rede — o mesmo actor consulta as redes Rakuten dos EUA, Reino Unido, Austrália, Brasil e Alemanha (passe o
siteIdapropriado) - Auto-paginação para
productSearch(até 1000 registros por execução) - Guard NEVER 0 ITEMS — falha de forma explícita se o Rakuten retorna vazio, nunca um SUCCEEDED silencioso sem dados
- Padrão owner-skip — execuções internas (do owner) não passam pela cobrança PPE
🔑 Setup BYOC (uma vez, grátis, ~10 min)
- Cadastre-se em https://developers.rakutenadvertising.com (ou use sua conta Publisher existente)
- Applications → Create New App → copie
Client ID+Client Secret - Encontre seu Site ID na conta Rakuten Advertising (número de 7 dígitos)
- Dois caminhos de autenticação:
- Caminho A (OAuth): cole
clientId+clientSecret+siteIdno input do actor. O actor faz a troca OAuthclient_credentialsautomaticamente. - Caminho B (token pré-gerado): no Developer Portal clique "Generate Token" → cole o JWT resultante no input
accessToken. Use isso se o Caminho A falhar cominvalid_client(alguns estados de app exigem ativação manual).
- Caminho A (OAuth): cole
Limites: o free tier fornece as quotas padrão da API de publisher — tipicamente 1 requisição/segundo, 10K/dia. Mais que suficiente para pesquisa de afiliados.
📥 Entrada
| Parâmetro | Tipo | Obrigatório | Padrão | Descrição |
|---|---|---|---|---|
clientId | string (secret) | Caminho A | — | OAuth client ID das Applications |
clientSecret | string (secret) | Caminho A | — | OAuth client secret |
siteId | string | Sim | — | Seu Publisher Site ID (~7 dígitos) |
accessToken | string (secret) | Caminho B | — | Token pré-gerado (pula o OAuth) |
queryType | enum | Sim | productSearch | productSearch / coupons / advertisers |
keyword | string | condicional | — | Palavra-chave de busca (obrigatória para productSearch/coupons) |
category | string | Não | — | Filtro de categoria (onde suportado) |
maxResults | integer | Não | 100 | 1-1000 |
Exemplo de input (Caminho B — token pré-gerado, mais simples)
{"siteId":"4703080","accessToken":"your-token-from-rakuten-portal","queryType":"productSearch","keyword":"running shoes","maxResults":50}
Exemplo de input (Caminho A — fluxo OAuth)
{"clientId":"your-rakuten-client-id","clientSecret":"your-rakuten-client-secret","siteId":"4703080","queryType":"coupons","keyword":"fashion","maxResults":100}
📤 Saída
Registros productSearch
{"queryType":"productSearch","productName":"Nike Air Max 90 - Running Shoe","merchantId":"39247","merchantName":"Nike US","advertiserCategory":"Athletic Apparel","price":"129.99","currency":"USD","salePrice":null,"linkUrl":"https://click.linksynergy.com/...","imageUrl":"https://cdn.example.com/...","description":"...","sku":"AIRMAX-90-US-10","scrapedAt":"2026-05-15T13:45:00.000Z"}
Registros coupons
{"queryType":"coupons","offerId":"12345","merchantId":"39247","merchantName":"Nike US","offerText":"20% off Running Shoes","couponCode":"RUN20","startDate":"2026-05-01","endDate":"2026-05-31","linkUrl":"https://click.linksynergy.com/...","categories":["Apparel"]}
Registros advertisers
{"queryType":"advertisers","merchantId":"39247","merchantName":"Nike US","applicationStatus":"OPEN","commissionTerms":"8% on sale","categories":["Apparel","Sports"],"currency":"USD","country":"US"}
💰 Preços
Pay-per-event (PPE): só cobra quando um registro real é retornado. Zero resultados → zero cobrança. O padrão owner-skip garante que execuções internas não sejam cobradas.
🚀 Casos de Uso
- Descoberta de programas de afiliados — encontre merchants Rakuten aos quais você pode se filiar (ex.: Nike US, Macy's, Walmart, Booking.com)
- Agregação de cupons — abasteça seu site de cupons com ofertas Rakuten ao vivo
- Importação de catálogo de produtos — popule seu site de comparação ou de afiliados
- Inteligência de preços — acompanhe os preços dos merchants na rede Rakuten
- Pesquisa de compliance — levante os termos de comissão de afiliados entre verticais
⚠️ Erros comuns
| Erro | Causa | Solução |
|---|---|---|
[RAKUTEN_AUTH] invalid_client | OAuth client não ativado | Use o Caminho B (token pré-gerado) — cole o JWT do Developer Portal |
[RAKUTEN_AUTH] HTTP 401 | Token expirado / escopo errado | Renove o token no Developer Portal |
[RAKUTEN_API] HTTP 429 | Rate limit (1 req/seg no free tier) | Aguarde 60s e tente de novo |
[FAIL] Zero records returned | Filtro muito restrito / resultados vazios | Tente um keyword mais amplo ou queryType=advertisers |
🔒 Privacidade e segurança
Seu clientSecret e accessToken são passados diretamente para api.linksynergy.com sobre HTTPS. O Apify Console marca os campos como isSecret: true, de modo que os valores ficam mascarados nos logs e no dataset. Nós nunca armazenamos, logamos ou intermediamos esses valores pelos nossos servidores.
📚 Actors Relacionados
- CJ Affiliate Products — API da Commission Junction (BYOC)
- Impact.com Affiliate Network — API REST da Impact (BYOC)
- Awin Multi-Merchant Affiliate — API Publisher da Awin (BYOC)
- ShareASale Publisher (BYOC) — API de Afiliados da ShareASale (BYOC)
🆕 Histórico de Versões
- v1.0 (2026-05-14): Lançamento inicial. 3 tipos de consulta, autenticação dupla (OAuth + JWT pré-gerado), parser XML por regex, auto-paginação, PPE com owner-skip, guard NEVER 0 ITEMS.
