A comprehensive API and documentation website for accessing Tunisian municipality data with powerful filtering capabilities. Built for developers who need reliable access to Tunisian administrative data.
🌐 Live Website: https://tn-municipality-api.vercel.app
- 📊 Rich Data: Complete municipality data with 24 governorates and 264+ delegations
- 🔍 Powerful Filtering: Filter by governorate name, delegation, and postal code
- 🚀 Fast & Reliable: Lightning-fast responses with modern API design
- 📱 Fully Responsive: Beautiful documentation that works on all devices
- 🎨 Modern UI: Clean, developer-friendly interface with smooth animations
- 📖 Comprehensive Docs: Detailed API documentation with practical examples
- Next.js 14 - React framework with App Router
- TypeScript - Type-safe development
- Framer Motion - Smooth animations and interactions
- Lucide React - Beautiful, consistent icons
- shadcn/ui - Modern, accessible components
-
Clone the repository
git clone https://github.com/youssef-of-web/tn-municipality-api.git cd tn-municipality-api -
Install dependencies
npm install
-
Run the development server
npm run dev
-
Open your browser Navigate to http://localhost:3000
GET /api/municipalities
| Parameter | Type | Description | Example |
|---|---|---|---|
name |
string | Filter by governorate name | ?name=ariana |
delegation |
string | Filter by delegation name | ?delegation=ville |
postalCode |
string | Filter by postal code | ?postalCode=2058 |
// Get all municipalities
fetch("/api/municipalities");
// Filter by governorate
fetch("/api/municipalities?name=ariana");
// Filter by delegation
fetch("/api/municipalities?delegation=ville");
// Filter by postal code
fetch("/api/municipalities?postalCode=2058");
// Combine multiple filters
fetch("/api/municipalities?name=ariana&delegation=ville");[
{
"Name": "ARIANA",
"NameAr": "أريانة",
"Value": "ARIANA",
"Delegations": [
{
"Name": "ARIANA VILLE (Residence Kortoba)",
"NameAr": "أريانة المدينة (إقامة قرطبة)",
"Value": "ARIANA VILLE",
"PostalCode": "2058",
"Latitude": 36.866011,
"Longitude": 10.193923
}
]
}
]- 24 Governorates - Complete coverage of all Tunisian administrative regions
- 264+ Delegations - Detailed district-level data
- GPS Coordinates - Latitude and longitude for mapping applications
- Bilingual Support - Names in both English and Arabic
- Postal Codes - Complete postal code database
We welcome contributions from the community! Whether you're a developer, designer, or just someone who wants to help improve this project, we'd love to have you on board.
This project is open to everyone who wants to contribute. No matter your experience level, there's always something you can help with:
- 🐛 Bug Reports - Found an issue? Let us know!
- 💡 Feature Requests - Have an idea? Share it!
- 📝 Documentation - Help improve our docs
- 🎨 UI/UX Improvements - Make it look better
- 🚀 Performance - Help make it faster
- 🌍 Localization - Add more languages
- 📊 Data - Help improve our data quality
-
Fork the repository
git clone https://github.com/youssef-of-web/tn-municipality-api.git
-
Create a feature branch
git checkout -b feature/your-amazing-feature
-
Make your changes
- Write clean, well-documented code
- Follow the existing code style
- Add tests if applicable
-
Commit your changes
git commit -m "feat: add your amazing feature" -
Push to your branch
git push origin feature/your-amazing-feature
-
Open a Pull Request
- Provide a clear description of your changes
- Include screenshots if it's a UI change
- Link any related issues
- 🌐 Additional Languages - Arabic documentation
- 📱 Mobile Optimization - Better mobile experience
- 🔍 Advanced Filtering - More search options
- 📊 Data Visualization - Charts and graphs
- 🗺️ Mapping Features - Interactive maps
- 📈 Analytics - Usage statistics
- 🔒 Security - Security improvements
- ⚡ Performance - Speed optimizations
We're committed to providing a welcoming and inspiring community for all. Please be respectful and inclusive in all interactions.
good first issue- Perfect for newcomersbug- Something isn't workingenhancement- New feature or requestdocumentation- Improvements to docshelp wanted- Extra attention needed
Contributors will be recognized in our README and project documentation. We appreciate every contribution, no matter how small!
Built with ❤️ for the Tunisian developer community