# OpenSSF Best Practices Projects (`tehsnarf/openssf-best-practices-projects`) Actor

Scrape public OpenSSF Best Practices Badge project records (badge tier, license, repo/homepage links, security-practice criterion statuses) for open-source supply-chain risk enrichment.

- **URL**: https://apify.com/tehsnarf/openssf-best-practices-projects.md
- **Developed by:** [Chris Hoover](https://apify.com/tehsnarf) (community)
- **Categories:** Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## OpenSSF Best Practices Projects

Scrapes public OpenSSF (formerly CII) Best Practices Badge project records — badge tier, license,
repo/homepage links, and selected security-practice criterion statuses — from
[bestpractices.dev](https://www.bestpractices.dev/en/projects). Useful for open-source
supply-chain risk screening, dependency/vendor-risk enrichment, and OSS security posture
monitoring.

### Use cases

- **Dependency risk screening** — check whether an open-source dependency has earned an OpenSSF
  Best Practices badge and at what tier (passing/silver/gold) before adopting it.
- **Vendor/procurement risk enrichment** — normalize badge data into a vendor-risk or SBOM
  pipeline alongside other supply-chain signals.
- **OSS security posture monitoring** — track badge tier changes and specific criterion statuses
  (HTTPS, license, vulnerability reporting, crypto practices) for a watchlist of projects over
  time.

### Input

| Field | Type | Description |
|---|---|---|
| startUrls | array | Listing pages (`https://www.bestpractices.dev/en/projects.json?page=N`) to discover project IDs from |
| maxItems | integer | Maximum number of project detail records to output (default 100) |
| delaySeconds | number | Polite delay before each request (default 1.0) |
| concurrency | integer | Bounded concurrent detail-page fetches (default 5) |

### Output fields

| Field | Type | Description |
|---|---|---|
| project\_id | integer | Numeric project ID |
| project\_name | string | Project name |
| description | string | Project description |
| project\_detail\_url | string | Project detail page URL |
| homepage\_url | string | Project homepage URL |
| repo\_url | string | Source repository URL |
| license | string | Project's declared license |
| badge\_level | string | passing / silver / gold / in\_progress |
| tiered\_percentage | integer | Badge tier percentage |
| last\_updated\_at | string | Last-updated timestamp from the project record |
| sites\_https\_status | string | Criterion: site/repo HTTPS status |
| floss\_license\_status | string | Criterion: FLOSS license status |
| floss\_license\_justification | string | Criterion: FLOSS license justification |
| vulnerability\_report\_process\_status | string | Criterion: vulnerability reporting process status |
| crypto\_published\_status | string | Criterion: published crypto practices status |
| scrape\_timestamp | string | ISO timestamp when this record was scraped |

### Example output

```json
{
  "project_id": 1,
  "project_detail_url": "https://www.bestpractices.dev/en/projects/1",
  "scrape_timestamp": "2026-08-04T00:14:51.520447+00:00",
  "project_name": "BadgeApp",
  "description": "BadgeApp is the web application that allows developers to provide information about their project and (hopefully) get an Open Source Security Foundation (OpenSSF) Best Practices badge...",
  "homepage_url": "https://github.com/ossf/best-practices-badge",
  "repo_url": "https://github.com/ossf/best-practices-badge",
  "license": "MIT",
  "badge_level": "gold",
  "tiered_percentage": 300,
  "last_updated_at": "2026-07-18T04:02:54.845Z",
  "sites_https_status": "Met",
  "floss_license_status": "Met",
  "floss_license_justification": "The MIT license is widely acknowledged as being OSS...",
  "vulnerability_report_process_status": "Met",
  "crypto_published_status": "Met"
}
```

### Pricing

$5 per 1,000 results.

| Results | Estimated cost |
|---|---|
| 100 | $0.50 |
| 500 | $2.50 |
| 1,000 | $5.00 |
| 5,000 | $25.00 |

### Notes

Respects `robots.txt` — only crawls `/en/projects.json`, `/en/projects/<id>.json`, and the
English/no-locale project listing/detail pages; never crawls `/users` pages or sort/query-filtered
listing variants, per the target's own privacy-oriented robots directives. No login required — all
data is public.

# Actor input Schema

## `startUrls` (type: `array`):

Listing pages (https://www.bestpractices.dev/en/projects.json?page=N) to discover project IDs from

## `maxItems` (type: `integer`):

Maximum number of project detail records to output

## `delaySeconds` (type: `number`):

Polite delay each fetch waits before requesting

## `concurrency` (type: `integer`):

How many project detail pages to fetch at once (each still waits delaySeconds before requesting)

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.bestpractices.dev/en/projects.json?page=1"
    }
  ],
  "maxItems": 100,
  "delaySeconds": 1,
  "concurrency": 5
}
```

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("tehsnarf/openssf-best-practices-projects").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("tehsnarf/openssf-best-practices-projects").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 '{}' |
apify call tehsnarf/openssf-best-practices-projects --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,tehsnarf/openssf-best-practices-projects"
        }
    }
}

```

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/8nW1hucCYUrhAfkug/builds/h38b1QVDDVLxlSSvS/openapi.json
