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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@pin-duo-duo/pdd-origin-api

v1.0.1-alpha.2

Published

> TODO: description

Downloads

168

Readme

@pin-duo-duo/pdd-origin-api

这个包中的内容,是根据拼多多开放平台只提供的文档自动生成得来的。如果文档存在变量,重新执行npm run generate-code重新生成包内容。欢迎大家提merge request.

使用方法

安装

npm install @pin-duo-duo/pdd-origin-api --save # or:yarn add @pin-duo-duo/pdd-origin-api

API名称常量

通常拼多多接口的名称为:pdd.delete.goods.commit,代码中直接可以能过导入常量使用:PDD_DELETE_GOODS_COMMIT.

import { PDD_DELETE_GOODS_COMMIT } from '@pin-duo-duo/pdd-origin-api';

常用的类型

  • PddCommonRequestInterface: 拼多多通用请求的参数
  • PddCollectRootResponseInterface:响应的数据结构
  • PddCollectShortResponseInterface: 响应数据数据结构,包含了请求的key与响应数据的类型映射,方便在typescript中使用类型推断
  • PddResponseTypeAndRequestTypeMapping: 拼多多响应数据,通过包含无用的多级结构,这个是请求name与响应数据key之间的映射。

较有用常量

  • PddNeedAccessTokenTypeCollections: 是一个数组,包含了哪些接口需要授权。

获取某个接口的限频率信息

  • PddApiLimiterMapping: 一个数据,包含了对应api的限流信息,如下:
export const PddApiLimiterMapping = {
    [PDD_GOODS_ADD_LIMITERS]: [
    // 商家限流信息
     {
       limiterLevel: 1,
       timeRange: 1,
       times: 20,
     },
    // 接口总限流频次
     {
       limiterLevel: 3,
       timeRange: 5,
       times: 4000,
     },
    // 应用限流频次
     {
       limiterLevel: 4,
       timeRange: 10,
       times: 2000,
     },
   ]
}