XooCode(){

GovernmentOrganization

GovernmentOrganization is an Organization subtype for government agencies, departments, and municipalities. It defines no properties of its own but provides important classification: Google uses the type to categorize entities as government in the knowledge panel and to apply trust signals appropriate for official sources.

The type hierarchy is Thing → Organization → GovernmentOrganization. All Organization properties apply: name, url, address, contactPoint, logo, areaServed, department, parentOrganization.

Full example of schema.org/GovernmentOrganization json-ld markup

The markup is verified as valid with Rich Results Test from Google.

Highlight legend:Required by GoogleRecommendedOptional
schema.org/GovernmentOrganization
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@id": "https://dunmore-pa.gov#government",
  "@type": "GovernmentOrganization",
  "name": "Borough of Dunmore",
  "description": "Municipal government for the Borough of Dunmore, Lackawanna County, Pennsylvania. Provides public services, zoning, code enforcement, and parks and recreation.",
  "url": "https://dunmore-pa.gov",
  "logo": "https://dunmore-pa.gov/images/seal.png",
  "telephone": "+1-570-555-0001",
  "email": "info@dunmore-pa.gov",
  "address": {
    "@type": "PostalAddress",
    "streetAddress": "400 Green Ridge Street",
    "addressLocality": "Dunmore",
    "addressRegion": "PA",
    "postalCode": "18512",
    "addressCountry": "US"
  },
  "areaServed": {
    "@type": "City",
    "name": "Dunmore",
    "containedInPlace": {
      "@type": "AdministrativeArea",
      "name": "Lackawanna County, Pennsylvania"
    }
  },
  "department": [
    {
      "@type": "GovernmentOrganization",
      "name": "Dunmore Parks and Recreation",
      "url": "https://dunmore-pa.gov/parks"
    },
    {
      "@type": "GovernmentOrganization",
      "name": "Dunmore Code Enforcement",
      "url": "https://dunmore-pa.gov/code-enforcement"
    }
  ],
  "parentOrganization": {
    "@type": "GovernmentOrganization",
    "name": "Lackawanna County",
    "url": "https://lackawannacounty.org"
  }
}
</script>

areaServed for jurisdictional scope

areaServed (inherited from Organization) is especially important for government entities. It defines the geographic area the agency has authority over. For a borough government, that is the borough itself. For a state agency, the state. Google reads this to scope the entity correctly in local and government-related searches.

department for sub-agencies

department (inherited from Organization) links to sub-agencies and departments. A borough government might have departments for public works, parks and recreation, police, and fire. Each can be its own GovernmentOrganization linked via department. This lets Google build the organizational hierarchy for the knowledge panel.

GovernmentOrganization + GovernmentService

If the government entity provides specific services (permit applications, tax filing, voter registration), describe those as GovernmentService objects linked via hasOfferCatalog or listed on the entity's page. GovernmentService has properties like serviceType, provider, and jurisdiction that pair naturally with GovernmentOrganization.

Minimal valid version

The smallest markup that still produces a valid GovernmentOrganization entity. Use it as the floor. Reach for the advanced example above when you want search engines and AI agents to understand more about your content.

schema.org/GovernmentOrganization (minimal)
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "GovernmentOrganization",
  "name": "Borough of Dunmore",
  "url": "https://dunmore-pa.gov"
}
</script>

Google rich results this unlocks

Markup matching this example makes your page eligible for the following Google Search rich results. The primary target drives the required / recommended property classification in the advanced code block above.

Common GovernmentOrganization mistakes

Mistakes that pass validation but silently fail to earn rich results or mislead consumers walking the graph. Avoid these and your markup will be ahead of most sites in the wild.

  1. 01

    Using Organization for a government entity

    Wrong
    "@type": "Organization" for a city government
    Right
    "@type": "GovernmentOrganization"

    GovernmentOrganization signals to Google that the entity is an official government body. This affects trust signals, knowledge panel formatting, and how Google handles FAQPage and other structured data from government sources (which get preferential treatment for FAQ rich results).

  2. 02

    Missing areaServed

    Wrong
    GovernmentOrganization with no areaServed
    Right
    "areaServed": { "@type": "City", "name": "Dunmore" }

    Every government entity has a jurisdiction. areaServed defines the geographic scope. Without it, Google cannot determine what area the government serves, which weakens the entity's relevance in local searches.

  3. 03

    Departments as plain strings

    Wrong
    "department": ["Parks and Recreation", "Code Enforcement"]
    Right
    "department": [{ "@type": "GovernmentOrganization", "name": "Parks and Recreation", "url": "..." }]

    department expects Organization objects, not plain strings. Structured department entries let Google build the organizational hierarchy and link each department to its own web presence.

About the example data

The Borough of Dunmore is the fictional municipal government for the town where the Xoo universe businesses operate. The department property references a Parks and Recreation department that maintains Dunmore Community Park.

Comments

Loading comments...

Leave a comment