> ## Documentation Index
> Fetch the complete documentation index at: https://hc.starbridge.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Buyer Attribute

> Retrieve a single structured attribute about a buyer (institution) by its key, as defined in the BuyerField enum. Buyers include cities, counties, higher-education institutions, school districts, police and fire departments, federal agencies, and other public-sector entities. See the `buyerAttribute` parameter for the full list of available keys and what each one returns.

If you need more than one attribute for the same buyer, use the bulk endpoint `getBuyerAttributesBulk` instead. It returns multiple attributes in a single request, saving you from making separate calls for each one.



## OpenAPI

````yaml https://core-http2-157602306522.us-central1.run.app/external/public/swagger/documentation.yaml get /api/external/buyer/{buyerId}/attribute/{buyerAttribute}
openapi: 3.1.1
info:
  title: Starbridge External Public API
  version: '1.0'
servers:
  - url: https://dashboard.starbridge.ai
security: []
paths:
  /api/external/buyer/{buyerId}/attribute/{buyerAttribute}:
    get:
      tags:
        - External MCP
        - External API
        - Buyer
      summary: Get Buyer Attribute
      description: >-
        Retrieve a single structured attribute about a buyer (institution) by
        its key, as defined in the BuyerField enum. Buyers include cities,
        counties, higher-education institutions, school districts, police and
        fire departments, federal agencies, and other public-sector entities.
        See the `buyerAttribute` parameter for the full list of available keys
        and what each one returns.


        If you need more than one attribute for the same buyer, use the bulk
        endpoint `getBuyerAttributesBulk` instead. It returns multiple
        attributes in a single request, saving you from making separate calls
        for each one.
      operationId: getBuyerAttribute
      parameters:
        - name: buyerId
          in: path
          required: true
          schema:
            type: string
        - name: buyerAttribute
          in: path
          description: The BuyerField key to retrieve.
          required: true
          schema:
            type: string
            enum:
              - Id
              - Name
              - CommonName
              - ParentName
              - ParentBuyerId
              - Type
              - Classifications
              - Url
              - LinkedinSlug
              - Zip
              - CountryCode
              - StateCode
              - StateName
              - City
              - County
              - Address
              - Street1
              - Street2
              - MainPhoneNumber
              - EmailDomains
              - Population
              - PopulationTrend
              - PopulationOneYearChangePercentage
              - PopulationFiveYearChangePercentage
              - PopulationDensityPerSquareMile
              - CountyHudAssistedHousingUnitCount
              - HudAreaMedianFamilyIncome
              - CountyMedicareAdvantageEnrollmentCount
              - CountyMedicareAdvantagePenetrationPercentage
              - CountyMedicareMedicaidEnrolleeCount
              - CountyOriginalMedicareEnrollmentCount
              - FemaDisasterDeclarationCount
              - FemaFireDisasterDeclarationCount
              - FemaFloodDisasterDeclarationCount
              - FemaSevereStormDisasterDeclarationCount
              - FemaWinterStormDisasterDeclarationCount
              - BudgetAmount
              - BudgetSbita
              - BudgetUrl
              - BudgetLatestYear
              - BudgetConfidence
              - SchoolDistrictType
              - HigherEdFullTimeEnrollment
              - HigherEdInstitutionType
              - DepartmentName
              - DepartmentCode
              - AgencyName
              - OfficeCodeArray
              - AgencyCode
              - AiAdoptionScore
              - AiAdoptionSummary
              - StartupFriendlinessScore
              - StartupFriendlinessSummary
              - ProcurementHellScore
              - AngelProcurementSummary
              - IpedsIdNumeric
              - TotalEnrollment
              - NcesId
              - NcesStateDistrictId
              - CensusIdPid6
              - CensusIdGidId
              - SgcId
              - HigherEdGraduationRate
              - HigherEdRetentionRate
              - HigherEdAcceptanceRate
              - HigherEdYieldRate
              - HigherEdGraduationEnrollment
              - HigherEdUndergradEnrollment
              - HigherEdOnlineOnlyEnrollment
              - HigherEdControlOfInstitution
              - HigherEdForProfitStatus
              - HigherEdLevelOfInstitution
              - HigherEdRecruitmentAdmissionsCrmArray
              - HigherEdEndowment
              - HigherEdTotalExpenses
              - HigherEdMascot
              - HigherEdNumberOfOnCampusResidents
              - HigherEdNumberOfFullTimeEmployees
              - HigherEdSisModernizationStatus
              - HigherEdPrimaryRegionalAccreditor
              - HigherEdAccreditationSummary
              - HigherEdAccreditationStatus
              - DapipId
              - HigherEdNextAccreditationReviewDate
              - HigherEdSystem
              - CommunityCollegeSystem
              - HigherEdContinuingProfessionalEducationOffered
              - Sis
              - LmsArray
              - SchoolDistrictLocale
              - SchoolDistrictFullTimeEquivalentTeachers
              - LowestGradeOffered
              - HighestGradeOffered
              - SchoolYearStartDate
              - SchoolYearEndDate
              - SchoolDistrictNumberOfSchools
              - SchoolDistrictNewlyOpenedSchoolCount
              - SchoolDistrictClosedSchoolCount
              - SchoolDistrictElementarySchools
              - SchoolDistrictMiddleSchools
              - SchoolDistrictHighSchools
              - SchoolDistrictTotalStaff
              - SchoolDistrictMedianHouseholdIncome
              - SchoolDistrictSector
              - RegionalEducationServiceAgencyName
              - RegionalEducationServiceAgencyBuyerId
              - SchoolManagementOrganizationName
              - SchoolManagementOrganizationBuyerId
              - EnglishLearners
              - BlackPercentage
              - LatinoPercentage
              - WhitePercentage
              - StudentTeacherRatio
              - SchoolSector
              - SchoolLevel
              - AlternativeSchool
              - SchoolCurriculumProgramArray
              - ReligiousAffiliation
              - StudentGenderComposition
              - SchoolVirtualStatus
              - Subentity
              - FiscalYearStartDate
              - FreeOrReducedLunchEligiblePercentage
              - FdId
              - FireDepartmentType
              - FireDepartmentOrganizationType
              - FireDepartmentPrimaryAgency
              - FireDepartmentNumberOfStations
              - FireDepartmentActiveFirefightersCareer
              - FireDepartmentActiveFirefightersVolunteer
              - FireDepartmentActiveFirefightersPaidPerCall
              - FireDepartmentNonFirefightingCivilian
              - FireDepartmentNonFirefightingVolunteer
              - PoliceOri
              - PoliceOfficerCt
              - PoliceDepartmentType
              - HasCampusPolice
              - Psap
              - StateAgencySector
              - EmployeeFte
              - WaterSystemPopulationServed
              - SpecialDistrictResidentPopulationEstimate
              - MotorCarrierPowerUnits
              - PropensityToSpendScore
              - PropensityToSpendSummary
              - BudgetChangeAnalysisSourceUrls
              - PropensityToSpend
              - YoyChangeInEnrollment
              - EnrollmentTrend
              - EnrollmentTrendBasedOnFte
              - AtsiDesignation
              - SpecialEducationEnrollment
              - SpecialEducationEnrollmentPercentage
              - TsiDesignation
              - CsiDesignation
              - SchoolDistrictTotalRevenue
              - SchoolDistrictFederalRevenue
              - SchoolDistrictStateRevenue
              - SchoolDistrictLocalRevenue
              - PerPupilExpenditure
              - MathProficiencyPercentage
              - ElaProficiencyPercentage
              - MathProficiencyStatePercentile
              - ElaProficiencyStatePercentile
              - TitleIFunding
              - TitleIiFunding
              - TitleIiiFunding
              - TitleIvFunding
              - TitleVFunding
              - FederalGrantComplianceRisk
              - FederalGrantComplianceCapSummary
              - ErateFunding
              - IhbgFinalAllocationAmount
              - TribalTransportationProgramShare
              - BuyerLocationLatitude
              - BuyerLocationLongitude
              - StarbridgeUrl
      responses:
        '200':
          description: The requested attribute value wrapped in BuyerAttributeResponse.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BuyerAttributeResponse'
        '400':
          description: Invalid request body or format
        '401':
          description: Missing or invalid authentication
        '403':
          description: Unauthorized to access resource or perform action
        '404':
          description: Resource not found
        '415':
          description: Unsupported media type or request body format
        '429':
          description: Rate limit exceeded
        '500':
          description: Internal server error
      security:
        - apiKey: []
components:
  schemas:
    BuyerAttributeResponse:
      type: object
      title: BuyerAttributeResponse
      required:
        - buyerData
      properties:
        buyerData:
          description: >-
            Any JSON value - can be a string, number, boolean, object, array, or
            null
  securitySchemes:
    apiKey:
      scheme: bearer
      description: HTTP Bearer Authentication
      type: http

````