Oushodh logooushodh
INTEGRATION

Integration overview

Connect the pharmacy, hospital, clinic or store system you run to the Oushodh API: map your medicines to Oushodh IDs once, then read the data live. What every plan allows, and what needs a Custom licence.

Why not keep your own medicine list?

Bangladesh's official record of medicines is the DGDA register, and it is not built for apps. Each register is a set of web pages with no paging, served over plain HTTP, and a page can take up to a minute to answer. What the register holds has the detail. A list built from it by hand still has these gaps:

  • Strength in the genericA register row puts the generic name and its strength in one column. An app needs them apart, as generic_name and strength.
  • Prices per unit, strip and packA strip's MRP is set on its own, and sources rarely state every price. MRP in Bangladesh explains each kind.
  • One medicine, many spellingsOther sources spell the same medicine differently, and one medicine can hold two DAR numbers. How a medicine gets matched shows how they are joined.
  • Keeping upThe register grows every week. The Allopathic register added 191 rows between 9 and 28 Nov, 2026.
  • SearchA person types napa, not a DAR number.

Oushodh gives instead one ID per medicine that never points to another medicine, the same fields for every medicine, and each price with the source that states it. A value no source gives is null, never a guess. The medicine object lists every field.

Before you start: an app and a key

Each step below is in the member portal. The screenshots come from a local test account, so the names, the email and the key in them are test values.

Sign in, or create an account

Use your email and password, a passkey or Google. A new account starts on the free tier: one test key and 100 requests a month. Choose a plan when you go to production.

The member portal sign-in page: buttons to sign in with a passkey or Google, then email and password fields filled with a test account, and a link to create an account.
Sign in to the member portal.
Get started

Add an app

Each key belongs to one app: the site, service or product that calls the API. Your plan covers a number of production apps. A test app's keys share 5,000 requests a month, at 10 a minute each, and do not count towards them. On the free tier, add a test app: production apps need a plan.

The Add an app dialog on the API keys page: an app name field filled with Shop counter, an optional link, and Kind set to Production, with the note on how test apps are limited.
API keys, then Add app.

Create a key

Name the key, choose its app and its ID profile. The profile sets which IDs the key's calls answer with, and it cannot change later.

The Create a key dialog: the key name POS server, the app Main app (production), the ID profile Pharmacy (PH-000001), and the count of keys in use on the plan.
Create key: a name, an app and an ID profile.

Copy the key when it is shown. It is shown only once: Oushodh keeps a hash, not the key. Put it in your server's settings, such as OUSHODH_API_KEY, never in an app, a web page or a till.

The Key created dialog for POS server, with the key blurred, a Copy button, the note that it is shown only once, and the advice to keep it on your server.
The key is shown once. It is blurred here.

Try a search in Explore

Explore searches with one of your keys and shows the record your code will get. Each search and each medicine you open counts against that key's plan, as an API call does.

Explore with the search napa as the key POS server: 20 of 30 matches, each row a brand and strength with its generic, dosage form, maker, MRP and ID in the Pharmacy profile.
Search results in Explore, one row per medicine.
One medicine opened in Explore: Napa 500 mg Tablet, DGDA listed and allopathic, with its maker, dosage form, strength, MRP per piece from the DGDA price list, its ID and UUID, and the start of its monograph.
One medicine, with the ID and UUID to store.

Watch Usage

Usage shows this month's requests against your plan, requests a day, and each key's share, with how many were rate limited.

The Usage page: requests this month against the plan's 250,000, a chart of requests a day, and a table of requests, share and rate-limited calls for each key.
Usage for the month, by key.

Part 1: what every plan allows

Developer, Team, Agency and Custom all read every medicine. On each, the terms of use set the same rules:

  • Your apps call the API each time they need data.
  • They may not cache, store or copy API responses, in a browser, an app, a server or a proxy.
  • You may store medicine IDs with no time limit, and keep the data that has become part of your own records, such as an order, an invoice or a prescription.
  • You may not build a database or data set from the data. Paging through the whole list, or fetching far more medicines than your apps use, counts as collecting it.

So an integration has four parts.

Flowchart for every plan: 1, map your medicine list once, saving a match only when exactly one medicine fits. 2, store only the IDs, on your own items, orders, invoices and prescriptions. 3, call the API when you need the data. 4, notice changes with /v1/meta and updated_since, checked against your IDs. A full copy kept current needs a written licence on a Custom plan.
Map once, store IDs, call live, notice changes.

Map your medicines once

Most systems already hold a medicine list: a POS item table, a formulary, a product catalogue. Mapping gives each of your items the Oushodh medicine it is.

  • Search each item by its brand with GET /v1/medicines/search. Strength is not searched, so compare each answer's strength, dosage_form and maker with your item: manufacturer.name, or one of its names.
  • Exactly one medicine fits: save its uuid on your item.
  • Several fit, or none: put the item in a review queue for a person to decide.
  • Still no match after review: leave the item unmapped. It keeps working in your system, with no Oushodh data.

Never save the first result because it comes first. Search orders by a weighted score, so the top row says which name matched best, not which medicine is on your shelf. Connecting your inventory has the matching rules in detail.

There is no bulk-match endpoint. A long list is matched with one Search call per item, within your plan's per-minute limit: 60 a minute per key on Developer, 120 on Team and 300 on Agency. A 429 rate_limited answer carries Retry-After: wait that many seconds, then go on.

Store only the IDs

Store the uuid: it never changes. Store the id too if people see it. It is in your account's ID profile and is never given to another medicine. IDs has the detail.

Keep what has become part of your own records. The name and price on a sale, an invoice or a prescription stay as they were on the day. Do not keep API answers to read later.

Call the API when you need the data

  • Someone types a nameGET /v1/medicines/search?q=…, up to 50 matches.
  • A screen shows one medicineGET /v1/medicines/{uuid}, with its monograph.
  • A screen lists your medicinesGet a medicine for each, or List medicines with q for the ones that share a name.

Calls go from your server, never from a browser, an app or a till: anyone who has the key can use your plan. Authentication and adding the API to your software cover the client, errors and retries.

Notice changes

Medicines change: a new MRP, a corrected name, a new picture. To find the changes that matter to you:

  • Call GET /v1/meta. If last_import is not newer than your last check, stop there.
  • Call GET /v1/medicines?updated_since= with the time of your last check, and follow next to the last page. The oldest change comes first.
  • Keep only the uuids in your mapping. Flag those items for a person to check, and drop the rest of the answer.
  • Save the time of this check for the next one.

Past sales, orders and prescriptions are never changed. Keeping your stock list current walks through it.

Part 2: a full copy, on a Custom plan

Some systems need every medicine in their own database: a POS that searches the whole catalogue with no internet, or a product that ships the data inside it. The terms allow that only under a separate licence.

FROM THE TERMS OF USEA full copy or an offline sync needs a separate written licence on a Custom plan.

What the API already gives a full copy:

  • List medicinesUp to 500 medicines a page, with a next cursor and the total.
  • updated_sinceOnly the medicines changed at or after a time, oldest first, so a copy can catch up.
  • Stable IDsMedicines are never deleted and an ID never points to another medicine. Get a medicine also answers an old ID.

There is no export or bulk download endpoint. A Custom licence sets what you may keep and how it stays current, and your team arranges its delivery with Oushodh. A Custom plan's limits and number of apps are the ones agreed in writing. See the Custom band on pricing.

Talk to us

Guides by business

Map an itemcurl
curl -G https://api.oushodh.dev/v1/medicines/search \
  -H "Authorization: Bearer $OUSHODH_KEY" \
  -d q=napa -d limit=50
Changes since your last checkcurl
curl https://api.oushodh.dev/v1/meta -H "Authorization: Bearer $OUSHODH_KEY"

curl -G https://api.oushodh.dev/v1/medicines \
  -H "Authorization: Bearer $OUSHODH_KEY" \
  -d updated_since=2026-11-29T00:00:00Z -d limit=500