Schema markup generator for independent pharmacies
Pharmacies should use the Pharmacy type, not plain Store or LocalBusiness. Fill in the form and I’ll build valid JSON-LD you can paste into your site’s head.
Pharmacy JSON-LD
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Pharmacy",
"@id": "https://altadorepharmacy.example/#business",
"name": "Altadore Community Pharmacy",
"description": "An independent pharmacy in Altadore offering prescriptions, vaccinations, medication reviews and free local delivery.",
"url": "https://altadorepharmacy.example/",
"telephone": "+1-403-555-0142",
"email": "hello@altadorepharmacy.example",
"image": "https://altadorepharmacy.example/images/photo.jpg",
"address": {
"@type": "PostalAddress",
"streetAddress": "100 Example Street SW",
"addressLocality": "Calgary",
"addressRegion": "AB",
"postalCode": "T2P 1J9",
"addressCountry": "CA"
},
"openingHours": [
"Mo-Fr 09:00-17:00"
],
"priceRange": "$",
"areaServed": [
"Calgary",
"Airdrie",
"Cochrane",
"Okotoks"
],
"knowsAbout": [
"Prescription refills",
"Flu and COVID vaccinations",
"Medication reviews",
"Compounding",
"Blister packaging"
],
"paymentAccepted": "Cash, Debit, Visa, Mastercard, Direct billing to most drug plans",
"knowsLanguage": [
"English",
"Arabic",
"Hindi"
],
"hasMap": "https://maps.example/altadore-pharmacy",
"sameAs": [
"https://www.instagram.com/altadorecommunitypharmacy",
"https://www.linkedin.com/company/altadorecommunitypharmacy"
]
}
</script>Paste this into your page’s head, then test it with Google’s Rich Results Test and validator.schema.org. The example values are made up: replace every one.
Want this added to your pharmacy’s website?
Send me your site and I’ll check your current structured data and send back corrected JSON-LD for it. Free.
The properties that matter for independent pharmacies
Type: Pharmacy. Every property below is a real schema.org property.
| Property | Why it matters |
|---|---|
openingHours | Pharmacy searches are often “open now” searches. Accurate hours, including holidays on the page, matter more here than almost anywhere. |
knowsAbout | Vaccinations, compounding and medication reviews are why people choose an independent pharmacy. Name them. |
areaServed | If you deliver, list the communities you deliver to. It tells search tools your reach goes past the counter. |
knowsLanguage | Talking about medications in a first language matters. It’s an easy, useful signal. |
telephone | Refill calls are constant. Use the main pharmacy line, not a head office number. |
Common mistakes
Using Store or Drugstore-style generic types. Pharmacy is the specific schema.org type.
Copying the parent banner’s hours or phone onto an independent location. Each location needs its own real details.
Adding Product markup for prescription drugs. Keep product markup to genuine retail items with prices, if at all.
How to add it to your site
- Replace every example value in the form with your own details. They should match your Google Business Profile exactly.
- Copy the code and paste it into your page’s
<head>. Most site builders have a custom code field. On a hand-built site, it goes in the template. - Test the live page with Google’s Rich Results Test and validator.schema.org, and fix anything they flag.
- Add the same facts to the visible page. Structured data should describe what visitors can see. My website checklist for independent pharmacies covers the rest.
Schema for independent pharmacies: questions
Pharmacy. It’s a schema.org type that sits under MedicalOrganization and MedicalBusiness, so it carries both health and local business meaning.
schema.org has specialOpeningHoursSpecification for that, which the generator doesn’t include. The simplest path is to update your Google Business Profile and post holiday hours on the page.
Yes, if it has its own name, phone and hours. Give it its own Pharmacy block with its own @id so it isn’t confused with the clinic.
Keep reading
- nick@tavro.ca
- 587-439-9994
- Calgary, Alberta