Bosnia Herzegovina Postal Code API

Look up postal codes in Bosnia Herzegovina with PostalDataPI — sub-5ms responses, one API key for 240+ countries and territories.

Country Code

BA

Format

varies

Example

15318

About Bosnia Herzegovina postal codes

Bosnia and Herzegovina uses 5-digit postal codes. The first two digits indicate the region, with codes allocated across both the Federation (even first digits) and Republika Srpska (odd first digits). Sarajevo codes start with 71.

Local term: postal code | Regex pattern: ^.+$

API Usage Examples

cURL

curl -X POST https://postaldatapi.com/api/lookup \
  -H "Content-Type: application/json" \
  -d '{"zipcode": "15318", "country": "BA", "apiKey": "YOUR_API_KEY"}'

Python

from postaldatapi import PostalDataPI

client = PostalDataPI(api_key="YOUR_API_KEY")
result = client.lookup("15318", country="BA")
print(result.place_name, result.latitude, result.longitude)

Node.js

import { PostalDataPI } from 'postaldatapi';

const client = new PostalDataPI({ apiKey: 'YOUR_API_KEY' });
const result = await client.lookup('15318', { country: 'BA' });
console.log(result.placeName, result.latitude, result.longitude);

$0.000028 per query

Same price for Bosnia Herzegovina and all 240+ countries and territories. No tiers, no per-country pricing.

Bosnia Herzegovina Postal Code API | PostalDataPI