Rakuten Advertising Publisher Reports (BYOC) avatar

Rakuten Advertising Publisher Reports (BYOC)

Pricing

from $2.00 / 1,000 record scrapeds

Go to Apify Store
Rakuten Advertising Publisher Reports (BYOC)

Rakuten Advertising Publisher Reports (BYOC)

Retrieve Rakuten Advertising publisher advanced reports via the official API (BYOC): commissions, advertiser payments, performance metrics and payout data.

Pricing

from $2.00 / 1,000 record scrapeds

Rating

0.0

(0)

Developer

viralanalyzer

viralanalyzer

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

6 days ago

Last modified

Share

📊 Rakuten Advertising Publisher Stats — Advanced Financial Reports via Official API

🔗 View on Apify Store | 🇺🇸 English | 🇧🇷 Português

Pull your Rakuten Advertising (formerly LinkShare) publisher financial reports straight from the official Advanced Reports API — payment history, advertiser payments, and payment details. This is a BYOC actor (Bring Your Own Credentials): you authenticate with your own Rakuten tokens, and the data returned is your account's, fetched directly from api.linksynergy.com. No scraping, no browser — a clean authenticated API call.

✨ Features

  • 🏦 Official Advanced Reports API — Direct GET api.linksynergy.com/advancedreports/1.0, no scraping
  • 💵 5 report types — Payment History Summary, Advertiser Payments (v1/v2), Payment Details (v1/v2)
  • 🔐 Two auth modes — Pre-generated Bearer token, OR OAuth client_credentials (clientId + clientSecret + siteId)
  • 📅 Flexible date windowstartDate / endDate in YYYYMMDD; defaults to the last 90 days
  • 🧾 CSV → structured JSON — Comma-delimited report parsed into clean records (numeric coercion; blanks → null)
  • 🔄 Dynamic columns — Fields mirror the chosen report's columns, plus reportId, bdate, edate, scrapedAt
  • 🛡️ BYOC & owner-skip — Tokens stay in secret inputs; PPE is never charged on internal owner runs
  • 🧭 Self-diagnosing — Missing/expired credentials or empty ranges return a Setup Guide, not a silent failure

📥 Input

ParameterTypeRequiredDefaultDescription
reportIdstring"22"Which report to fetch (see report types below)
securityTokenstring (secret)Web Service Security Token from your Publisher Dashboard (Support → Manage Tokens → Security Token)
accessTokenstring (secret)Pre-generated Developer Access Token (Bearer/JWT). If blank, OAuth fields are required
clientIdstringOAuth Client ID (required if accessToken is blank)
clientSecretstring (secret)OAuth Client Secret (required if accessToken is blank)
siteIdstringYour numeric Publisher Site ID, e.g. a 7-digit number (required if accessToken is blank)
startDatestring90 days agoReport start date in YYYYMMDD (e.g. 20260401)
endDatestringtodayReport end date in YYYYMMDD (e.g. 20260525)
proxyConfigurationobjectApify Proxy onApify Proxy configuration

Authentication: securityToken is always required. For the Bearer token you choose one path: provide accessToken directly, or provide all three OAuth fields (clientId + clientSecret + siteId) so the actor performs the client_credentials flow for you.

Report Types (reportId)

reportIdReport
1Payment History Summary
2Advertiser Payments History (v1)
22Advertiser Payments History (v2) — default
3Payment Details (v1)
23Payment Details (v2)

v2 reports (22, 23) generally contain additional columns compared to their v1 counterparts.

Input Example

{
"reportId": "22",
"securityToken": "YOUR_WEB_SERVICE_SECURITY_TOKEN",
"clientId": "YOUR_OAUTH_CLIENT_ID",
"clientSecret": "YOUR_OAUTH_CLIENT_SECRET",
"siteId": "1234567",
"startDate": "20260401",
"endDate": "20260525",
"proxyConfiguration": { "useApifyProxy": true }
}

To use a pre-generated Bearer token instead of OAuth, drop clientId / clientSecret / siteId and add "accessToken": "YOUR_PRE_GENERATED_BEARER_TOKEN".

📤 Output

Rakuten returns each report as a comma-delimited CSV. The actor parses it into one dataset record per row, using the report's own header line as field names — so the exact columns are dynamic and depend on the reportId you choose (and whether it is a v1 or v2 report). Values that look numeric are automatically coerced to numbers; blanks become null.

On every record, the actor appends these run-context fields:

FieldTypeDescription
(report columns)string | number | nullDynamic — taken verbatim from the report's CSV header (e.g. advertiser, amount, currency, payment date, etc., varying by report)
reportIdstringThe report type that was fetched
bdatestringEffective report start date used (YYYYMMDD)
edatestringEffective report end date used (YYYYMMDD)
scrapedAtstringISO 8601 timestamp of the run

Output Example (illustrative — actual columns vary by report)

{
"Advertiser ID": 38901,
"Advertiser Name": "Example Merchant",
"Payment Amount": 152.47,
"Currency": "USD",
"Payment Date": "2026-05-15",
"reportId": "22",
"bdate": "20260401",
"edate": "20260525",
"scrapedAt": "2026-06-06T12:00:00.000Z"
}

ℹ️ Column names above are placeholders to show the shape of a record. The real field names come directly from Rakuten's report header for your chosen reportId.

Diagnostic output

If credentials are missing/expired or the date range has no data, the actor succeeds with a single diagnostic record (setup_status: "DIAGNOSTIC_GUIDE", _dataQuality: "diagnostic") describing the likely cause and how to fix it. Diagnostic runs do not charge PPE, and the raw API response is saved to the Key-Value Store under debug-raw-response for inspection.

📋 Use Cases

  • Affiliate revenue accounting — Reconcile Rakuten advertiser payments against your books
  • Payment tracking — Monitor what has been paid, by which advertiser, and when
  • Commission analytics — Feed advertiser payment data into dashboards or a data warehouse
  • Automated finance pipelines — Schedule recurring pulls (e.g. monthly) and route to Sheets, BigQuery, or a database
  • Multi-period comparison — Pull different date windows to track payment trends over time
  • Cross-network consolidation — Combine Rakuten payouts with other affiliate networks in one data layer

❓ FAQ

Q: Do I need my own Rakuten credentials? A: Yes — this is a BYOC (Bring Your Own Credentials) actor. You must supply your own securityToken plus either a pre-generated accessToken or OAuth clientId + clientSecret + siteId. The actor only accesses your Rakuten account.

Q: Where do I get the Security Token? A: From your Rakuten Publisher Dashboard under Support → Manage Tokens → Security Token, or at https://publisher.rakutenadvertising.com/api-links/tokens.

Q: Where do I get OAuth credentials or a Developer Access Token? A: From the Rakuten Developer Portal at https://developers.rakutenadvertising.com/ under Applications.

Q: Bearer token vs OAuth — which should I use? A: If you already have a pre-generated Developer Access Token, paste it into accessToken. Otherwise provide clientId + clientSecret + siteId and the actor will run the OAuth client_credentials flow and obtain a Bearer token automatically. Pre-generated tokens typically expire (~24h), so OAuth is more convenient for scheduled runs.

Q: What date range is used if I leave the dates blank? A: The last 90 daysendDate defaults to today and startDate to 90 days ago. Provide startDate / endDate in YYYYMMDD to override.

Q: Why did my run return zero records? A: Common causes: no transactions in the date range, an expired securityToken or accessToken, or an account not yet approved for the Advanced Reports API. The actor returns a Setup Guide with remediation steps and saves the raw response to the debug-raw-response Key-Value Store key.

Q: Which columns will I get? A: It depends on the report. The output columns are dynamic and come straight from the CSV header Rakuten returns for the reportId you selected. v2 reports usually include more columns than v1.

💰 Pricing

This actor uses Pay Per Event (PPE) pricing with a single event:

EventWhen it fires
record-scrapedOnce per report record (CSV row) pushed to the dataset

Diagnostic runs (missing credentials, expired tokens, empty date ranges) do not charge any event. Internal owner runs are skipped from charging.

For current per-event pricing, see the actor page: https://apify.com/viralanalyzer/rakuten-marketing-publisher-stats

📝 Changelog

v1.0 (Current)

  • ✅ Official Rakuten Advertising Advanced Reports API integration
  • ✅ 5 report types (Payment History Summary, Advertiser Payments v1/v2, Payment Details v1/v2)
  • ✅ Two auth modes: pre-generated Bearer token or OAuth client_credentials
  • ✅ Configurable YYYYMMDD date window (defaults to last 90 days)
  • ✅ CSV → structured JSON with dynamic columns + numeric coercion
  • ✅ Run-context fields (reportId, bdate, edate, scrapedAt) on every record
  • ✅ Self-diagnosing Setup Guide for recoverable errors (never silent-fail)
  • ✅ BYOC secret inputs + owner-skip PPE billing (record-scraped)

📊 Rakuten Advertising Publisher Stats — Relatórios Financeiros Avançados via API Oficial

🇺🇸 English | 🇧🇷 Português

Obtenha seus relatórios financeiros de publisher do Rakuten Advertising (antigo LinkShare) diretamente da API oficial de Advanced Reports — histórico de pagamentos, pagamentos de anunciantes e detalhes de pagamento. Este é um actor BYOC (Traga Suas Próprias Credenciais): você autentica com seus próprios tokens Rakuten e os dados retornados são da sua conta, buscados diretamente em api.linksynergy.com. Sem scraping, sem navegador — uma chamada de API autenticada e limpa.

✨ Funcionalidades

  • 🏦 API oficial de Advanced Reports — Chamada direta GET https://api.linksynergy.com/advancedreports/1.0, sem scraping
  • 💵 5 tipos de relatório financeiro — Resumo de Histórico de Pagamentos, Pagamentos de Anunciantes (v1/v2), Detalhes de Pagamento (v1/v2)
  • 🔐 Dois modos de autenticação — Token Bearer pré-gerado, OU OAuth client_credentials (clientId + clientSecret + siteId)
  • 📅 Janela de datas flexívelstartDate / endDate em YYYYMMDD; padrão são os últimos 90 dias quando omitidos
  • 🧾 CSV convertido em JSON estruturado — O relatório CSV (delimitado por vírgula) do Rakuten vira registros limpos com conversão numérica automática (vazios → null)
  • 🔄 Colunas dinâmicas — Os campos de saída espelham as colunas que o relatório escolhido retorna, mais reportId, bdate, edate, scrapedAt em cada registro
  • 🛡️ BYOC & owner-skip — Seus tokens ficam em campos de input secretos; o PPE nunca é cobrado em execuções internas do dono
  • 🧭 Autodiagnóstico — Credenciais ausentes, tokens expirados ou intervalo de datas vazio retornam um Guia de Configuração claro em vez de falha silenciosa

📥 Entrada

ParâmetroTipoObrigatórioPadrãoDescrição
reportIdstring"22"Qual relatório buscar (veja os tipos abaixo)
securityTokenstring (secreto)Web Service Security Token do Painel do Publisher (Support → Manage Tokens → Security Token)
accessTokenstring (secreto)Developer Access Token (Bearer/JWT) pré-gerado. Se vazio, os campos OAuth são obrigatórios
clientIdstringOAuth Client ID (obrigatório se accessToken estiver vazio)
clientSecretstring (secreto)OAuth Client Secret (obrigatório se accessToken estiver vazio)
siteIdstringSeu Publisher Site ID numérico, ex. um número de 7 dígitos (obrigatório se accessToken estiver vazio)
startDatestring90 dias atrásData inicial do relatório em YYYYMMDD (ex. 20260401)
endDatestringhojeData final do relatório em YYYYMMDD (ex. 20260525)
proxyConfigurationobjetoApify Proxy ligadoConfiguração do Apify Proxy

Autenticação: securityToken é sempre obrigatório. Para o token Bearer você escolhe um caminho: fornecer accessToken diretamente, ou fornecer os três campos OAuth (clientId + clientSecret + siteId) para que o actor execute o fluxo client_credentials por você.

Tipos de Relatório (reportId)

reportIdRelatório
1Resumo de Histórico de Pagamentos
2Histórico de Pagamentos de Anunciantes (v1)
22Histórico de Pagamentos de Anunciantes (v2) — padrão
3Detalhes de Pagamento (v1)
23Detalhes de Pagamento (v2)

Relatórios v2 (22, 23) geralmente contêm colunas adicionais em comparação com suas versões v1.

Exemplo de Entrada

{
"reportId": "22",
"securityToken": "SEU_WEB_SERVICE_SECURITY_TOKEN",
"clientId": "SEU_OAUTH_CLIENT_ID",
"clientSecret": "SEU_OAUTH_CLIENT_SECRET",
"siteId": "1234567",
"startDate": "20260401",
"endDate": "20260525",
"proxyConfiguration": { "useApifyProxy": true }
}

Para usar um token Bearer pré-gerado em vez do OAuth, remova clientId / clientSecret / siteId e adicione "accessToken": "SEU_TOKEN_BEARER_PRE_GERADO".

📤 Saída

O Rakuten retorna cada relatório como um CSV delimitado por vírgula. O actor o converte em um registro por linha, usando a linha de cabeçalho do próprio relatório como nomes de campo — portanto as colunas exatas são dinâmicas e dependem do reportId escolhido (e se é um relatório v1 ou v2). Valores que parecem numéricos são automaticamente convertidos para números; vazios viram null.

Em todo registro, o actor acrescenta estes campos de contexto da execução:

CampoTipoDescrição
(colunas do relatório)string | número | nullDinâmicas — extraídas literalmente do cabeçalho CSV do relatório (ex. anunciante, valor, moeda, data de pagamento, etc., variando por relatório)
reportIdstringO tipo de relatório que foi buscado
bdatestringData inicial efetiva usada (YYYYMMDD)
edatestringData final efetiva usada (YYYYMMDD)
scrapedAtstringTimestamp ISO 8601 da execução

Exemplo de Saída (ilustrativo — as colunas reais variam por relatório)

{
"Advertiser ID": 38901,
"Advertiser Name": "Example Merchant",
"Payment Amount": 152.47,
"Currency": "USD",
"Payment Date": "2026-05-15",
"reportId": "22",
"bdate": "20260401",
"edate": "20260525",
"scrapedAt": "2026-06-06T12:00:00.000Z"
}

ℹ️ Os nomes de coluna acima são exemplos para mostrar o formato de um registro. Os nomes reais vêm diretamente do cabeçalho do relatório Rakuten para o reportId escolhido.

Saída de diagnóstico

Se as credenciais estiverem ausentes/expiradas ou o intervalo de datas não tiver dados, o actor conclui com sucesso emitindo um único registro de diagnóstico (setup_status: "DIAGNOSTIC_GUIDE", _dataQuality: "diagnostic") descrevendo a causa provável e como corrigir. Execuções de diagnóstico não cobram PPE, e a resposta bruta da API é salva no Key-Value Store na chave debug-raw-response para inspeção.

📋 Casos de Uso

  • Contabilidade de receita de afiliados — Concilie os pagamentos de anunciantes Rakuten com sua contabilidade
  • Acompanhamento de pagamentos — Monitore o que foi pago, por qual anunciante e quando
  • Analytics de comissões — Alimente dados de pagamento de anunciantes em dashboards ou um data warehouse
  • Pipelines financeiros automatizados — Agende coletas recorrentes (ex. mensais) e direcione para Sheets, BigQuery ou banco de dados
  • Comparação de períodos — Busque diferentes janelas de datas para acompanhar tendências de pagamento ao longo do tempo
  • Consolidação entre redes — Combine os repasses do Rakuten com outras redes de afiliados numa única camada de dados

❓ Perguntas Frequentes

P: Preciso das minhas próprias credenciais Rakuten? R: Sim — este é um actor BYOC (Traga Suas Próprias Credenciais). Você deve fornecer seu próprio securityToken mais um accessToken pré-gerado ou OAuth clientId + clientSecret + siteId. O actor acessa apenas a sua conta Rakuten.

P: Onde obtenho o Security Token? R: No Painel do Publisher Rakuten em Support → Manage Tokens → Security Token, ou em https://publisher.rakutenadvertising.com/api-links/tokens.

P: Onde obtenho credenciais OAuth ou um Developer Access Token? R: No Rakuten Developer Portal em https://developers.rakutenadvertising.com/, na seção Applications.

P: Token Bearer vs OAuth — qual usar? R: Se você já tem um Developer Access Token pré-gerado, cole-o em accessToken. Caso contrário, forneça clientId + clientSecret + siteId e o actor executará o fluxo OAuth client_credentials e obterá um token Bearer automaticamente. Tokens pré-gerados costumam expirar (~24h), então o OAuth é mais conveniente para execuções agendadas.

P: Qual intervalo de datas é usado se eu deixar as datas em branco? R: Os últimos 90 diasendDate assume hoje e startDate assume 90 dias atrás. Forneça startDate / endDate em YYYYMMDD para sobrescrever.

P: Por que minha execução retornou zero registros? R: Causas comuns: nenhuma transação no intervalo de datas, securityToken ou accessToken expirado, ou conta ainda não aprovada para a Advanced Reports API. O actor retorna um Guia de Configuração com passos de correção e salva a resposta bruta na chave debug-raw-response do Key-Value Store.

P: Quais colunas vou receber? R: Depende do relatório. As colunas de saída são dinâmicas e vêm diretamente do cabeçalho CSV que o Rakuten retorna para o reportId selecionado. Relatórios v2 normalmente incluem mais colunas que os v1.

💰 Preços

Este actor usa precificação Pay Per Event (PPE) com um único evento:

EventoQuando dispara
record-scrapedUma vez por registro do relatório (linha do CSV) enviado ao dataset

Execuções de diagnóstico (credenciais ausentes, tokens expirados, intervalo de datas vazio) não cobram nenhum evento. Execuções internas do dono são puladas da cobrança.

Para o preço por evento atual, consulte a página do actor: https://apify.com/viralanalyzer/rakuten-marketing-publisher-stats

🔗 Actors Relacionados

📝 Changelog

v1.0 (Atual)

  • ✅ Integração com a API oficial Rakuten Advertising Advanced Reports
  • ✅ 5 tipos de relatório (Resumo de Pagamentos, Pagamentos de Anunciantes v1/v2, Detalhes de Pagamento v1/v2)
  • ✅ Dois modos de autenticação: token Bearer pré-gerado ou OAuth client_credentials
  • ✅ Janela de datas YYYYMMDD configurável (padrão: últimos 90 dias)
  • ✅ CSV → JSON estruturado com colunas dinâmicas + conversão numérica
  • ✅ Campos de contexto da execução (reportId, bdate, edate, scrapedAt) em cada registro
  • ✅ Guia de Configuração autodiagnóstico para erros recuperáveis (nunca falha silenciosa)
  • ✅ Inputs secretos BYOC + cobrança PPE com owner-skip (record-scraped)