RepositoryGo
EA

easycb/easycb-go

Lazada Tiktok Shopee SHEIN Ozon Shop Open Platform Api (Easy Cross Border)

176stars
36forks
0issues
1views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: shopee-open

#1 Repository of the week

1
TINIX TRENDING·Topic: lazada-open

#1 Repository of the week

1
TINIX TRENDING·Topic: lazada

#1 Repository of the week

English | 简体中文

Easy Cross Border (EasyCb-Go)

Lazada/Tiktok/Shopee/Shein Seller Open Platform SDK For Golang

go report card MIT license Go.Dev reference

Overview

EasyCb features are support platform:

  • Shopify
  • Amazon
  • AliExpress
  • ...

Getting Started

Prerequisites

EasyCb requires Go version 1.17 or above.

import "github.com/easycb/easycb-go"

Alternatively, use go get:

go get -u github.com/easycb/easycb-go

Running EasyCb

A basic example Lazada open api:

package main

import (
	"fmt"
	"time"
	"github.com/easycb/easycb-go"
	"github.com/easycb/easycb-go/lazada"
)

func main() {
	appKey := ""
	appSecret := ""
	baseUrl := "https://api.lazada.com.my/rest"
	accessToken := ""
	client, err := lazada.NewClient(appKey, appSecret, baseUrl)
	if err != nil {
		fmt.Println(err.Error())
		return
	}
	client.SetAccessToken(accessToken)

	query := easycb.AnyMap{
		"sort_direction": "DESC",
		"offset":         0,
		"limit":          100,
		"sort_by":        "created_at",
		"created_before": time.Now().Format(time.RFC3339),
		"created_after":  time.Now().Add(-15 * 24 * time.Hour).Format(time.RFC3339),
	}

	res, err := client.GetOrders(query)
	if err != nil {
		fmt.Println(err.Error())
		return
	}

	fmt.Println(res.Code)
}

A basic example Shopee open api:

package main

import (
	"fmt"
	"time"
	"github.com/easycb/easycb-go"
	"github.com/easycb/easycb-go/shopee"
)

func main() {
	partnerId := int64(123456)
	partnerKey := ""
	baseUrl := "https://partner.shopeemobile.com"
	shopId := int64(56789)
	accessToken := ""
	client, err := shopee.NewClient(partnerId, partnerKey, baseUrl)
	if err != nil {
		return
	}
	client.SetShopId(shopId).SetAccessToken(accessToken)
	
	
	query := easycb.AnyMap{
		"offset":      0,
		"page_size":   50,
		"item_status": []string{"NORMAL", "UNLIST"},
	}

	res, err := client.GetProductList(query)
	if err != nil {
		fmt.Println(err.Error())
		return
	}

	fmt.Println(res.Message)
}

A basic example Tiktok shop partner api:

package main

import (
	"fmt"
	"time"
	"github.com/easycb/easycb-go"
	"github.com/easycb/easycb-go/tiktok"
)

func main() {
	appKey := ""
	appSecret := ""
	baseUrl := "https://open-api.tiktokglobalshop.com"
	accessToken := ""
	shopCipher := ""
	client, err := tiktok.NewClient(appKey, appSecret, baseUrl)
	if err != nil {
		fmt.Println(err.Error())
		return
	}
	client.SetAccessToken(accessToken).SetShopCipher(shopCipher)

	query := easycb.AnyMap{
		"page_size": 20,
	}

	body := easycb.AnyMap{
		"create_time_ge": time.Now().Add(-15 * 24 * time.Hour).Unix(),
		"create_time_lt": time.Now().Unix(),
	}
	
	res, err := client.GetOrderList(query, body)
	if err != nil {
		fmt.Println(err.Error())
		return
	}
	
	fmt.Println(res.Code)
}

A basic example Shein open api:

package main

import (
	"fmt"
	"time"
	"github.com/easycb/easycb-go"
	"github.com/easycb/easycb-go/shein"
)

func main() {
	baseUrl := "https://openapi.sheincorp.com"
	appId := ""
	openKeyId := ""
	secretKey := ""
	client, err := shein.NewClient(appId, openKeyId, secretKey, baseUrl)
	if err != nil {
		fmt.Println(err.Error())
		return
	}

	body := easycb.AnyMap{
		"queryType": 1,
		"startTime": "2025-05-06 00:00:00",
		"endTime":   "2025-05-08 00:00:00",
		"page":      1,
		"pageSize":  30,
	}
	res, err := client.GetOrderList(body)
	if err != nil {
		panic(err)
	}

	fmt.Println(res)
}

Contributors

Thank you for contributing to the EasyCb SDK!

Contact US

  • Lark: Scan the QR code below with Register Feishu to join our EasyCB user group.

    LarkGroup

License

Released under the MIT License

Similar Projects

Discover other similar projects and AI models.

RepositoryPHP
bcat95/shopee-aff

Tài liệu API Shopee Affiliate: Open API chính thống (GraphQL) và Data API của data.addlivetag.com — product data, offers, market search, lịch sử giá/hoa hồng, shop live, TikTok Shop, Lazada, ShopeeFood. Kèm code mẫu PHP/Node.js và Postman collection.

115
Sep 24, 2026
RepositoryJavaScript
akakooluo-ai/customer-service-scripts

跨境电商客服话术模板库 | Amazon/Shopee/TikTok Shop 客服话术大全 | Cross-border e-commerce customer service scripts

65
Aug 25, 2026
RepositoryPython
harry0703/MoneyPrinterTurbo

利用 AI 大模型和自动化工作流,根据主题或关键词一键生成高清短视频。Generate HD short videos from a topic or keyword with an automated AI workflow.

147.3k
Dec 1, 2026
RepositoryPython
mvanhorn/last30days-skill

AI agent skill that researches any topic across Reddit, X, YouTube, HN, Polymarket, and the web - then synthesizes a grounded summary

79.4k
Dec 2, 2026
RepositoryPython
Significant-Gravitas/AutoGPT

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

188.2k
Nov 29, 2026
RepositoryGo
arnoldhao/xiadown

🐣一款支持视频下载的资源库管理应用 A media library manager with video download support

760
Jul 27, 2026
RepositoryGo
alimsk/bfs

bot flash sale shopee tanpa webdriver atau selenium. support Android (Termux), Windows, dan Linux

109
Apr 19, 2022
RepositoryGo
avelino/awesome-go

A curated list of awesome Go frameworks, libraries and software

197.2k
Dec 2, 2026
RepositoryGo
ollama/ollama

Get up and running with Inkling, Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.

188.9k
Dec 2, 2026