Libya Postal Code API

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

Country Code

LY

Format

varies

Example

0000

About Libya postal codes

Libya uses 5-digit postal codes. Tripoli codes start with 1, Benghazi with 2, Misrata with 3. The system covers the country's 22 districts (shabiyat) across North Africa's largest country by area.

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": "0000", "country": "LY", "apiKey": "YOUR_API_KEY"}'

Python

from postaldatapi import PostalDataPI

client = PostalDataPI(api_key="YOUR_API_KEY")
result = client.lookup("0000", country="LY")
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('0000', { country: 'LY' });
console.log(result.placeName, result.latitude, result.longitude);

$0.000028 per query

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

Libya Postal Code API | PostalDataPI