# Buf Schema Registry Protobuf & gRPC Module Scraper (`bifrost-data/buf-schema-registry-scraper`) Actor

Export verified Protobuf, gRPC & ConnectRPC modules from the Buf Schema Registry (buf.build) with commit digests, dependency counts, service/RPC/message inventories, and multi-language SDK install commands.

- **URL**: https://apify.com/bifrost-data/buf-schema-registry-scraper.md
- **Developed by:** [SEOK HOON HONG](https://apify.com/bifrost-data) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 verified buf protobuf module records

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Buf Schema Registry Protobuf & gRPC Module Scraper

Export **schema-verified Protocol Buffers (`.proto`), gRPC, and ConnectRPC modules** directly from the official [Buf Schema Registry (BSR)](https://buf.build/docs/bsr/apis/api-access/) (`buf.build`) via its Connect JSON v1 RPCs and compiled `FileDescriptorSet` endpoints — complete with **latest commit digests**, **DAG dependency counts**, **publisher verification badges** (`official`, `verified`, `unverified`), **6-language Generated SDK install commands** (Go, TypeScript/npm, Python, Maven, Cargo, Swift), direct **JSON/binary descriptor & archive download URLs**, and optional **compiled `.proto` service, RPC method, message, and enum counts**.

Purpose-built for **AI coding agents & MCP tool generators**, **Platform Engineering & API governance**, and **`buf.yaml` / microservice dependency audits**.

### Why Use This Actor?

- **First Dedicated Buf Schema Registry Extractor on Apify**: Queries official `buf.registry.module.v1` (`ModuleService`, `GraphService`) and `buf.registry.owner.v1` (`OwnerService`) Connect JSON endpoints with zero headless browser overhead (`256 MB` RAM).
- **Instant Commit & Dependency DAG Resolution**: Automatically resolves each module's latest immutable commit ID, commit timestamp, direct dependency count, and total transitive module graph size via `GraphService/GetGraph`.
- **Optional Compiled `FileDescriptorSet` Introspection**: Enable `include_descriptor_inventory` to inspect `/descriptor/{label}?imports=false` (`Accept: application/json`, automatically rate-paced at `1 req/sec` per [Buf Rate Limits](https://buf.build/docs/bsr/rate-limits/)) and extract exact counts of `.proto` files, gRPC/Connect services, RPC methods, messages, enums, and fully qualified service names without installing `protoc` or the Buf CLI.
- **Ready-to-Use SDK & Schema Artifact Links**: Every record includes `buf_yaml_dep`, `buf_lock_pin`, 6-language Buf Generated SDK install commands, and direct unauthenticated download URLs for `.binpb`, `.json` descriptors, `.tar.gz`, and `.zip` source archives.
- **Fair Pay-Per-Event Billing (`verified-module`)**:
  - Empty uncommitted module shells, deprecated modules (when `exclude_deprecated=true`), duplicate hits, and filtered-out publishers cost **$0.00**.

### Supported Discovery Modes

1. **Organization / User Sweep (`owners`)**: List every public module under specific BSR organizations or users (e.g., `["connectrpc", "bufbuild", "googleapis", "envoyproxy", "opentelemetry", "grpc"]`).
2. **Exact `buf.yaml` Dependency Audit (`modules`)**: Resolve exact modules by `owner/module` or `buf.build/owner/module` (e.g., `["connectrpc/eliza", "buf.build/bufbuild/protovalidate"]`).
3. **Keyword Discovery & Filtering (`search_queries`)**: Search across BSR repositories and filter organization catalogs by keyword (e.g., `["validate", "trace", "auth"]`).

### Example Input

```json
{
  "owners": ["connectrpc", "bufbuild"],
  "exclude_deprecated": true,
  "include_dependency_graph": true,
  "include_descriptor_inventory": true,
  "max_items": 25
}
```

### Example Output Record

```json
{
  "record_id": "2c9e54b18d3a4ef7a1b0894f62d31098",
  "module_id": "buf.build/connectrpc/eliza",
  "bsr_module_uuid": "0da6bf88f86546fb9f2b7c0c2f32f28e",
  "bsr_host": "buf.build",
  "owner": "connectrpc",
  "owner_type": "organization",
  "owner_verification_status": "official",
  "name": "eliza",
  "description": "The Eliza chatbot service for ConnectRPC demos and SDK quickstarts.",
  "default_label_name": "main",
  "state": "active",
  "visibility": "public",
  "latest_commit_id": "d82f6267580d4942a001432b346b2f6c",
  "latest_commit_time": "2026-09-14T16:40:12Z",
  "direct_dependency_count": 0,
  "transitive_module_count": 1,
  "proto_files_count": 1,
  "services_count": 1,
  "rpc_methods_count": 3,
  "messages_count": 6,
  "enums_count": 0,
  "rpc_service_names": ["connectrpc.eliza.v1.ElizaService"],
  "repository_url": "https://github.com/connectrpc/examples-go",
  "buf_yaml_dep": "buf.build/connectrpc/eliza",
  "buf_lock_pin": "buf.build/connectrpc/eliza:d82f6267580d4942a001432b346b2f6c",
  "source_url": "https://buf.build/connectrpc/eliza",
  "generated_sdk_commands": {
    "buf_export": "buf export buf.build/connectrpc/eliza -o ./proto",
    "go_protobuf": "go get buf.build/gen/go/connectrpc/eliza/protocolbuffers/go@latest",
    "typescript_npm": "npm install @buf/connectrpc_eliza.bufbuild_es",
    "python_pip": "pip install connectrpc-eliza-protocolbuffers-python --extra-index-url https://buf.build/gen/python"
  },
  "schema_artifact_urls": {
    "docs_url": "https://buf.build/connectrpc/eliza/docs/main",
    "descriptor_json_url": "https://buf.build/connectrpc/eliza/descriptor/main?imports=false",
    "descriptor_binpb_url": "https://buf.build/connectrpc/eliza/descriptor/main",
    "archive_tar_gz_url": "https://buf.build/connectrpc/eliza/archive/main.tar.gz",
    "archive_zip_url": "https://buf.build/connectrpc/eliza/archive/main.zip"
  },
  "created_at": "2023-08-01T12:00:00Z",
  "updated_at": "2026-09-14T16:40:12Z",
  "extracted_at": "2026-11-22T06:15:00+00:00"
}
```

### Transparent Pricing

- **Actor Start**: `$0.00005`
- **Verified Buf Protobuf Module (`verified-module`)**: `$0.0020` per unique verified module (`$2.00` per 1,000 modules).

# Actor input Schema

## `owners` (type: `array`):

Extract all public Protobuf modules published by specific Buf organizations or users (e.g., 'connectrpc', 'bufbuild', 'googleapis', 'envoyproxy', 'opentelemetry', 'grpc').

## `modules` (type: `array`):

Look up exact modules from buf.yaml by 'owner/module' or 'buf.build/owner/module' (e.g., 'connectrpc/eliza', 'buf.build/bufbuild/protovalidate').

## `search_queries` (type: `array`):

Search or filter BSR modules by keyword across module names, descriptions, and organizations (e.g., 'validate', 'trace', 'envoy', 'payment').

## `owner_verification_filter` (type: `string`):

Filter modules by owner verification status on the Buf Schema Registry. Filtered-out rows cost $0.

## `exclude_deprecated` (type: `boolean`):

Skip modules marked MODULE_STATE_DEPRECATED so you only pay for active schemas.

## `exclude_empty_modules` (type: `boolean`):

When dependency graph resolution is enabled, skip empty repositories that have zero published commits ($0 charge).

## `include_dependency_graph` (type: `boolean`):

Query GraphService/GetGraph (30 req/sec v1 API) to attach latest_commit_id, latest_commit_time, and direct_dependency_count.

## `include_descriptor_inventory` (type: `boolean`):

Download each matched module's compiled JSON FileDescriptorSet (paced at 1 req/sec per Buf rate limits) to count exact .proto files, gRPC/Connect services, RPC methods, messages, and enums.

## `max_items` (type: `integer`):

Maximum verified BSR Protobuf modules to emit in this run.

## Actor input object example

```json
{
  "owners": [
    "connectrpc",
    "bufbuild",
    "googleapis"
  ],
  "modules": [],
  "search_queries": [],
  "owner_verification_filter": "any",
  "exclude_deprecated": true,
  "exclude_empty_modules": true,
  "include_dependency_graph": true,
  "include_descriptor_inventory": false,
  "max_items": 100
}
```

# Actor output Schema

## `modules` (type: `string`):

Schema-verified Protobuf & gRPC modules with commit digests, dependencies, SDK commands, and descriptor URLs.

## `runMetrics` (type: `string`):

Execution telemetry including skipped empty/deprecated modules, filtered free items, and validation rate.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "owners": [
        "connectrpc",
        "bufbuild",
        "googleapis"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("bifrost-data/buf-schema-registry-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "owners": [
        "connectrpc",
        "bufbuild",
        "googleapis",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("bifrost-data/buf-schema-registry-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "owners": [
    "connectrpc",
    "bufbuild",
    "googleapis"
  ]
}' |
apify call bifrost-data/buf-schema-registry-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,bifrost-data/buf-schema-registry-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/3TyC02KMfg3o8bk41/builds/hByaaejcqbx1nZV8f/openapi.json
