{
  "x402Version": 2,
  "id": 53618,
  "slug": "53618",
  "resource": "https://x402-api-24223879872.us-east1.run.app/v1/package-trust",
  "description": "Install-safety signals for an npm or PyPI package: registry metadata, install-script usage, OSV advisories, typosquat risk, and a 0-100 trust score.",
  "type": "http",
  "resourceType": "Security",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x8b9B012432A6B17dD08934Fa357D61aAb3fcE93D",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "50000",
      "amountUsd": 0.05,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "properties": {
          "advisories": {
            "properties": {
              "count": {
                "type": "number"
              },
              "ids": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "maxSeverity": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "type": "object"
          },
          "ecosystem": {
            "type": "string"
          },
          "flags": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "installScripts": {
            "nullable": true,
            "properties": {
              "install": {
                "type": "boolean"
              },
              "postinstall": {
                "type": "boolean"
              },
              "preinstall": {
                "type": "boolean"
              }
            },
            "type": "object"
          },
          "name": {
            "type": "string"
          },
          "registry": {
            "properties": {
              "ageDays": {
                "type": "number"
              },
              "deprecated": {
                "type": "boolean"
              },
              "exists": {
                "type": "boolean"
              },
              "firstPublishedAt": {
                "type": "string"
              },
              "latestPublishedAt": {
                "type": "string"
              },
              "latestVersion": {
                "type": "string"
              },
              "license": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "maintainerCount": {
                "type": "number"
              }
            },
            "type": "object"
          },
          "score": {
            "type": "number"
          },
          "typosquat": {
            "properties": {
              "matches": {
                "items": {
                  "properties": {
                    "distance": {
                      "type": "number"
                    },
                    "name": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "type": "array"
              }
            },
            "type": "object"
          }
        },
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "method": "GET",
          "queryParams": {
            "ecosystem": "npm",
            "name": "left-pad"
          },
          "type": "http"
        },
        "output": {
          "example": {
            "advisories": {
              "count": 0,
              "ids": [],
              "maxSeverity": null
            },
            "ecosystem": "npm",
            "flags": [],
            "installScripts": {
              "install": false,
              "postinstall": false,
              "preinstall": false
            },
            "name": "left-pad",
            "registry": {
              "ageDays": 4200,
              "deprecated": false,
              "exists": true,
              "firstPublishedAt": "2014-08-15T00:00:00.000Z",
              "latestPublishedAt": "2016-05-14T00:00:00.000Z",
              "latestVersion": "1.3.0",
              "license": "WTFPL",
              "maintainerCount": 2
            },
            "score": 90,
            "typosquat": {
              "matches": []
            }
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "method": {
                "enum": [
                  "GET"
                ],
                "type": "string"
              },
              "queryParams": {
                "properties": {
                  "ecosystem": {
                    "enum": [
                      "npm",
                      "pypi"
                    ],
                    "type": "string"
                  },
                  "name": {
                    "description": "Package name",
                    "type": "string"
                  }
                },
                "required": [
                  "ecosystem",
                  "name"
                ],
                "type": "object"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "properties": {
                  "advisories": {
                    "properties": {
                      "count": {
                        "type": "number"
                      },
                      "ids": {
                        "items": {
                          "type": "string"
                        },
                        "type": "array"
                      },
                      "maxSeverity": {
                        "type": [
                          "string",
                          "null"
                        ]
                      }
                    },
                    "type": "object"
                  },
                  "ecosystem": {
                    "type": "string"
                  },
                  "flags": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "installScripts": {
                    "nullable": true,
                    "properties": {
                      "install": {
                        "type": "boolean"
                      },
                      "postinstall": {
                        "type": "boolean"
                      },
                      "preinstall": {
                        "type": "boolean"
                      }
                    },
                    "type": "object"
                  },
                  "name": {
                    "type": "string"
                  },
                  "registry": {
                    "properties": {
                      "ageDays": {
                        "type": "number"
                      },
                      "deprecated": {
                        "type": "boolean"
                      },
                      "exists": {
                        "type": "boolean"
                      },
                      "firstPublishedAt": {
                        "type": "string"
                      },
                      "latestPublishedAt": {
                        "type": "string"
                      },
                      "latestVersion": {
                        "type": "string"
                      },
                      "license": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "maintainerCount": {
                        "type": "number"
                      }
                    },
                    "type": "object"
                  },
                  "score": {
                    "type": "number"
                  },
                  "typosquat": {
                    "properties": {
                      "matches": {
                        "items": {
                          "properties": {
                            "distance": {
                              "type": "number"
                            },
                            "name": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "type": "array"
                      }
                    },
                    "type": "object"
                  }
                },
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "bazaar"
  ],
  "sourceHost": "x402-api-24223879872.us-east1.run.app",
  "lastUpdated": "2026-09-23T03:03:07.871Z",
  "quality": {
    "calls30d": 1,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-09-23T03:03:07.691Z"
  },
  "metadata": {
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "method": "GET",
            "queryParams": {
              "ecosystem": "npm",
              "name": "left-pad"
            },
            "type": "http"
          },
          "output": {
            "example": {
              "advisories": {
                "count": 0,
                "ids": [],
                "maxSeverity": null
              },
              "ecosystem": "npm",
              "flags": [],
              "installScripts": {
                "install": false,
                "postinstall": false,
                "preinstall": false
              },
              "name": "left-pad",
              "registry": {
                "ageDays": 4200,
                "deprecated": false,
                "exists": true,
                "firstPublishedAt": "2014-08-15T00:00:00.000Z",
                "latestPublishedAt": "2016-05-14T00:00:00.000Z",
                "latestVersion": "1.3.0",
                "license": "WTFPL",
                "maintainerCount": 2
              },
              "score": 90,
              "typosquat": {
                "matches": []
              }
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "method": {
                  "enum": [
                    "GET"
                  ],
                  "type": "string"
                },
                "queryParams": {
                  "properties": {
                    "ecosystem": {
                      "enum": [
                        "npm",
                        "pypi"
                      ],
                      "type": "string"
                    },
                    "name": {
                      "description": "Package name",
                      "type": "string"
                    }
                  },
                  "required": [
                    "ecosystem",
                    "name"
                  ],
                  "type": "object"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "properties": {
                    "advisories": {
                      "properties": {
                        "count": {
                          "type": "number"
                        },
                        "ids": {
                          "items": {
                            "type": "string"
                          },
                          "type": "array"
                        },
                        "maxSeverity": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "type": "object"
                    },
                    "ecosystem": {
                      "type": "string"
                    },
                    "flags": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "installScripts": {
                      "nullable": true,
                      "properties": {
                        "install": {
                          "type": "boolean"
                        },
                        "postinstall": {
                          "type": "boolean"
                        },
                        "preinstall": {
                          "type": "boolean"
                        }
                      },
                      "type": "object"
                    },
                    "name": {
                      "type": "string"
                    },
                    "registry": {
                      "properties": {
                        "ageDays": {
                          "type": "number"
                        },
                        "deprecated": {
                          "type": "boolean"
                        },
                        "exists": {
                          "type": "boolean"
                        },
                        "firstPublishedAt": {
                          "type": "string"
                        },
                        "latestPublishedAt": {
                          "type": "string"
                        },
                        "latestVersion": {
                          "type": "string"
                        },
                        "license": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "maintainerCount": {
                          "type": "number"
                        }
                      },
                      "type": "object"
                    },
                    "score": {
                      "type": "number"
                    },
                    "typosquat": {
                      "properties": {
                        "matches": {
                          "items": {
                            "properties": {
                              "distance": {
                                "type": "number"
                              },
                              "name": {
                                "type": "string"
                              }
                            },
                            "type": "object"
                          },
                          "type": "array"
                        }
                      },
                      "type": "object"
                    }
                  },
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "x402-api-24223879872.us-east1.run.app",
    "manifest_name": "x402-api-24223879872.us-east1.run.app",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {
      "advisories": {
        "count": 0,
        "ids": [
          "string"
        ],
        "maxSeverity": "string"
      },
      "ecosystem": "string",
      "flags": [
        "string"
      ],
      "installScripts": {
        "install": true,
        "postinstall": true,
        "preinstall": true
      },
      "name": "string",
      "registry": {
        "ageDays": 0,
        "deprecated": true,
        "exists": true,
        "firstPublishedAt": "string",
        "latestPublishedAt": "string",
        "latestVersion": "string",
        "license": "string",
        "maintainerCount": 0
      },
      "score": 0,
      "typosquat": {
        "matches": [
          {
            "distance": 0,
            "name": "string"
          }
        ]
      }
    },
    "type": "string"
  }
}