USAspending API ReferenceIndependent
Try the API

PSC Autocomplete

POST/api/v2/autocomplete/psc/

This endpoint is used by the Advanced Search page.

This route sends a request to the backend to retrieve product or service (PSC) codes and their descriptions based on a search string. This may be the 4-character PSC code or a description string.

Request

curl -X POST 'https://api.usaspending.gov/api/v2/autocomplete/psc/' \
  -H 'Content-Type: application/json' \
  -d '{
  "search_text": "Defense"
}'

Request body

  • limitnumber

    Number of results to return (min: 1, max: 500)

    Default 10

  • search_textstringRequired

Try it

Runs against the live API. Responses are real data.

POST/api/v2/autocomplete/psc/

Response · 200

  • resultsarray of PSCMatchRequired2 fields
    • product_or_service_codestringRequired
    • psc_descriptionstringRequired
Example response
{
  "results": [
    {
      "product_or_service_code": "",
      "psc_description": ""
    }
  ]
}

Recent changes

Generated from contracts/v2/autocomplete/psc.md in the USAspending API repo.

Loading…