Free Pharmacy Schema Generator

Fill in the facts visible on your page, copy the Pharmacy JSON-LD, and validate it before you publish. The guide, examples, and FAQs are below the tool. Generate this schema with AI

Type to filter 121 supported schema types.

Schema workflow

Use only facts a visitor can verify on the page, then validate the JSON-LD before publishing.

Business identity

Describe the same business, page, and public contact details that a customer can see.

Location and contact

Use one address or service-area location per schema block. Coordinates are optional.

Opening hours

Add one Schema.org opening-hours specification per schedule, such as Mo-Fr 09:00-17:00.

Opening-hours specification

Use day ranges and 24-hour times.

Ratings and profiles
Ratings and profiles

Only add an aggregate rating that visitors can see on this page. Profile URLs should represent the same business.

Profile URL

Add official social or business-directory profiles.

Required

  • Visible Pharmacy content
  • Canonical page URL
  • Clear page owner/publisher
  • Fields that match the visible page

Recommended

  • A representative image when the schema supports it
  • SameAs or related links when visible
  • Validation before publishing

Avoid

  • Adding properties that are not visible
  • Copying example URLs into production
  • Skipping Google and Schema.org validation
Next step

Validate, repair, and publish clean structured data.

Check the generated JSON-LD against the visible page, then run both SwiftSchema and external validators before publishing.

Pharmacy Schema Generator — Be Easy to Find

Generate clean JSON‑LD for pharmacies. Clarify address, phone, hours, and in‑store services (e.g., vaccinations) to improve local visibility and trust.

Try the Pharmacy Generator

Why many pharmacy pages underperform

  • Generic snippets: competitors show hours and phone while your result looks bare.
  • In‑store services (vaccinations, drive‑thru) aren’t obvious to searchers.
  • Inconsistent NAP (name, address, phone) across pages confuses maps.
  • Validator warnings for address fields or `openingHours` delay updates.

How SwiftSchema helps

Our generator ensures essentials are present and correctly formatted — full address, telephone, opening hours, and brief service notes — and outputs copy‑ready JSON‑LD.

List services (e.g., vaccinations, drive‑thru) in visible content. For multiple branches, create a dedicated page per location and apply markup accordingly. Include ratings only when policy‑compliant.

How it works

  1. 01

    Choose Pharmacy in the generator below.

  2. 02

    Enter business name and full address (street, city, region, postal code, country).

  3. 03

    Add telephone and opening hours (daily schedule or “24/7”), and mention in‑store services in content.

  4. 04

    Optionally include AggregateRating if you have compliant, genuine reviews.

  5. 05

    Copy JSON or Script, paste on each location page, and validate in the Rich Results Test.

Ready to build the markup?

Use once per location. Validate. Ship.

Generate Pharmacy JSON‑LD

What is Pharmacy structured data?

Pharmacy is a LocalBusiness subtype for retail and clinical pharmacies. It captures core details—name, address, phone, hours, service offerings (vaccinations, drive-thru, delivery), and optional ratings—so search engines can confidently display accurate local info and connect patients with the right services.

Why pharmacy markup matters

  • Health-critical info: Patients need up-to-date hours, contact info, and service availability (e.g., immunizations, rapid tests). Structured data keeps those details consistent across your site and Google properties.
  • Multi-location clarity: Each branch can promote its specific offerings (compounding, delivery, clinics) without confusing customers.
  • Compliance and trust: Publishing clear contact points and service descriptions reduces misinformation, especially during health campaigns.

Essential properties to include

  • NAP: name, address (PostalAddress with locality/region/postal code/country), telephone.
  • openingHoursSpecification: Use ISO HH:MM strings; include 24/7 coverage if applicable.
  • additionalProperty or description: Note drive-thru, delivery, immunizations, or clinic services in visible copy and schema.
  • image: Storefront or interior photos to build trust.
  • sameAs: Link to official profiles (Google Business Profile, social channels, prescription apps).
  • aggregateRating: Include only if you collect policy-compliant first-party reviews.

Preparing pharmacy content before generating schema

  1. Confirm NAP: Pull legal business name, exact address, and phone numbers from your locator/CRM.
  2. List services: Vaccinations, testing, compounding, drive-thru, delivery, clinic hours—ensure they appear in page copy.
  3. Gather hours: Regular, holiday, and clinic hours; decide how you’ll keep them current.
  4. Collect media: Photos of the storefront, pharmacist team, or clinic area.
  5. Document contact points: Main phone, refill line, fax, or telehealth contact if public.
  6. Plan governance: Determine who updates structured data when operations change (pharmacy ops, digital team).

Implementation workflow inside SwiftSchema

  1. Select Pharmacy in the generator.
  2. Enter name, url, and full PostalAddress.
  3. Add telephone, faxNumber (if public), and openingHoursSpecification.
  4. Mention key services in the description and align with on-page copy.
  5. Include image and sameAs links to official profiles (GBP, social, prescription apps).
  6. Add aggregateRating only for first-party reviews displayed on the page.
  7. Export JSON-LD, embed it on each location page, and validate using the Rich Results Test.

Troubleshooting & QA

  • Inconsistent hours: Sync schema with the same data powering your locator/GBP. Automate alerts for mismatches.
  • Missing services: If you advertise vaccinations or drive-thru, make sure they’re in both copy and schema.
  • Outdated contact info: When phone numbers change, update schema, GBP, and signage simultaneously.
  • Reusing schema across locations: Create unique entries per branch; don’t copy/paste without updating NAP data.

Maintenance and governance

  • Review each location quarterly (or per regulatory requirements) to confirm hours, services, and contact info remain accurate.
  • Keep lastReviewed metadata current and assign owners (store operations, marketing).
  • During health campaigns or emergencies, update services (testing, vaccines) in both content and schema promptly.

Common Errors & Fixes

  • Incomplete address: include locality, region, postal code, and country.
  • Misformatted hours: use recognized openingHours or openingHoursSpecification formats.
  • Out-of-date phone/hours: keep contact info current in content and markup.

On-page parity checklist

  • Name/address/phone on-page match name, address, and telephone.
  • Hours shown on the page match openingHoursSpecification (include holiday/clinic variations).
  • Services promoted on-page (vaccines, delivery, drive-thru) align with descriptions and any additionalProperty you expose.
  • Images in schema appear on the page and are publicly accessible.
  • Only one Pharmacy schema block per location page; ensure locators or widgets don’t duplicate markup.

Content depth ideas (avoid thin location pages)

  • Add vaccine/test availability, eligibility, and scheduling CTAs.
  • Clarify insurance/payment options, copay info, and ID requirements where relevant.
  • Provide directions, parking/drive-thru instructions, and accessibility details.
  • List clinical services (medication therapy management, flu shots) with hours and booking paths.
  • Include pharmacist introductions or certifications to build trust.
  • Mention digital tools (refill apps, text alerts, mail delivery tracking) and align any app links with sameAs where appropriate.

Safety, compliance, and privacy

  • Avoid exposing protected health information; keep public contacts separate from patient portals.
  • If you support e-prescriptions or telehealth, link to secure portals and clarify what’s available in-store.
  • Keep DEA/NPI or license details in compliance sections if your legal team permits; avoid marking up sensitive IDs unless policy allows.
  • Note medication disposal programs, sharps containers, or opioid counseling services if offered, and ensure they appear in page copy and schema descriptions.
  • If you support curbside pickup or lockers, describe the pickup flow in content and align pickup hours with openingHoursSpecification when they differ from store hours.

Maintenance and QA

  • Sync schema with your store locator or POS hours feed to avoid drift.
  • Revalidate after changing hours, services, or imagery; spot-check via Rich Results Test.
  • Audit quarterly for NAP consistency across GBP, locator, and the page.
  • Update lastReviewed after major operational changes (new services, relocations).
  • For multi-language sites, set knowsLanguage for languages staff speak and ensure translated pages use matching schema and hreflang.
  • Keep a contact escalation plan documented so after-hours numbers and clinic lines stay accurate in schema and on-page copy.
  • Assign a pharmacy ops owner for schema updates and log changes when services (vaccines/tests) shift seasonally.
  • Validate that CDN or consent banners do not block images or JSON-LD injection on pharmacy pages.
  • Add a brief OTC/behind-the-counter note in copy so shoppers know what requires consultation; keep it aligned with any on-page signage.

Required properties

  • name
  • address.streetAddress
  • address.addressLocality
  • address.addressRegion
  • address.postalCode
  • address.addressCountry

Recommended properties

  • telephone
  • openingHours
  • aggregateRating.ratingValue
  • aggregateRating.ratingCount
Minimal JSON-LD
Validate
{
  "@context": "https://schema.org",
  "@type": "Pharmacy",
  "name": "Riverfront Pharmacy",
  "address": {
    "@type": "PostalAddress",
    "streetAddress": "77 Broad St",
    "addressLocality": "Columbus",
    "addressRegion": "OH",
    "postalCode": "43215",
    "addressCountry": "US"
  }
}

FAQs

In‑store clinics?Show

Link to separate MedicalClinic or Physician pages as appropriate.

Drive‑thru?Show

Mention in content and optionally in description.

Related types

Browse all schema types

References