# Find PSC codes for what you sell

To find PSC codes with an AI agent, ask it to call the search tool or GET /api/v1/psc with a few words describing what you sell. It returns Product and Service Codes with their names and whether they are active; the agent picks the ones that match and can then filter opportunities and awards by psc.

Vendors who sell products, and service firms whose work is spread across several NAICS codes. Agencies tag every contract action with one PSC, which is often a sharper filter than NAICS: D302 means IT systems development and nothing else.

## The prompt

```
Which Product and Service Codes cover IT systems development and cloud hosting? Show active codes only, then search open opportunities under the best two.
```

## What the agent calls

1. search: Keyless search over the public pages and docs; finds PSC pages by words.

```json
{"name":"search","arguments":{"query":"PSC cloud hosting"}}
```

2. search_opportunities: Once the code is chosen, a normal opportunity search filters by it.

```json
{"name":"search_opportunities","arguments":{"psc":"D302","open":true,"limit":10,"user_request":"open bids under PSC D302"}}
```

## Sample output

Trimmed; field names and structure match the live response, values are shortened or illustrative.

```json
{
  "results": [
    {
      "id": "page:/psc/D302",
      "title": "PSC D302: IT and telecom - systems development",
      "url": "https://samgovapi.io/psc/D302"
    }
  ]
}
```

## How to read the answer

- PSCs starting with a letter are services (D is IT and telecom, R is support services); four-digit numeric codes are products.
- The PSC manual retires and renames codes over time. Keep to active codes for new searches; inactive codes still appear on old awards.

## Make it yours

- Ask which PSCs an agency used most for awards in your NAICS code, with search_awards and a count by psc.
- Use the REST PSC search directly from a script when building filters.

## Pitfalls

- A notice has one PSC chosen by the buyer. If your work spans several, search each.
- PSC search has no MCP tool of its own; the search tool or the REST endpoint covers it.

## The same job over REST

```bash
curl "https://samgovapi.io/api/v1/psc?q=cloud" -H "Authorization: Bearer $SAMGOVAPI_API_KEY"
```

Plan: every plan. Credits: 1 credit per 100 rows returned, minimum 1 on REST; the keyless search tool is free.

## Questions

### PSC or NAICS: which should I filter on?

Use both. NAICS describes the industry and sets the size standard; PSC describes what was bought. Opportunities and awards carry both.

### Where is the official PSC list?

In the PSC manual published on acquisition.gov.

All recipes: https://samgovapi.io/agents/recipes.md

Independent. Not affiliated with, endorsed by or sponsored by GSA, SAM.gov or any U.S. government agency. Registering in SAM.gov is free at sam.gov.
