Dzaleka online services api
Skill Dzaleka-Connect/dzaleka-api-skills/dzaleka-online-services-api
Interact with the Dzaleka Online Services API to fetch community data (services, events, news, photos, jobs) or search across collections. Use when the user asks for community information or resources in Dzaleka.From its SKILL.md
npx -y skills add Dzaleka-Connect/dzaleka-api-skills --skill dzaleka-online-services-apiAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its file declares
Copied from the file, not written here
The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.
SKILL.md
4.5 KB, ~1.0k tokens by cl100k_base, as published. Nobody here has run it
Dzaleka Online Services API Skill
Overview
This skill allows agents to interact with the Dzaleka Online Services REST API to retrieve data about the Dzaleka community. It supports fetching lists of services, events, resources, news, photos, jobs, and documentation, as well as searching across these collections.
When to Use
Use this skill when:
- The user asks for information about services, events, or jobs in Dzaleka.
- You need to search for specific community resources or news.
- You are retrieving list data to display or process.
API Endpoints
See references/endpoints.md for the complete list of endpoints and parameters.
Base URL: https://services.dzaleka.com/api
Quick Reference
- Search:
GET /api/search?q=... - Services:
GET /api/services - Events:
GET /api/events
API Endpoints
Base URL:
https://services.dzaleka.com/api
1) Search
GET /api/search?q=<term>&collections=<list>&limit=<n>
q: required search term (min 2 characters).collections: optional comma-separated collections (services, events, resources, news, photos, jobs, docs).limit: optional max results per collection. Example:
GET /api/search?q=education&collections=resources,events&limit=5
2) Collections
Fetch all items from each collection:
| Resource | Path |
|---|---|
| Services | /api/services |
| Events | /api/events |
| Resources | /api/resources |
| News | /api/news |
| Photos | /api/photos |
| Jobs | /api/jobs |
| Docs | /api/docs |
Example:
curl https://services.dzaleka.com/api/services
Expected Responses
Most endpoints return a JSON object wrapping the results or data.
Standard Collections (Services, Events, etc.) & Search
Returns a status and results (or collection-keyed results for search).
{
"status": "success",
"results": [
{
"id": "community-health-service",
"title": "Community Health Service",
...
}
]
}
Docs Endpoint
The /api/docs endpoint returns a slightly different structure:
{
"status": "success",
"data": {
"docs": [
{
"id": "about",
"title": "About Dzaleka Online Services",
...
}
]
}
}
Errors follow standard HTTP status codes but also return a JSON body:
{
"status": "error",
"message": "Search query must be at least 2 characters long"
}
- 400 — Bad Request: e.g., validation errors
- 429 — Too Many Requests: rate limit exceeded
- 500 — Server Error
Agents should check for status === 'success' and handle gracefully.
Examples
JavaScript Fetch
async function fetchServices() {
const res = await fetch("https://services.dzaleka.com/api/services");
const data = await res.json();
if (data.status === 'success') {
console.log(data.results);
} else {
console.error('API Error:', data.message);
}
}
Python Requests
import requests
url = "https://services.dzaleka.com/api/events"
resp = requests.get(url)
data = resp.json()
if data.get('status') == 'success':
events = data.get('results', [])
print(events)
else:
print("Error:", data.get('message'))
Best Practices
- Rate limits: Respect typical limits (e.g., 60 requests/minute).
- Search filters: Use
collectionsandlimitto reduce response size. - Error handling: Check the
statusfield in the response. - CORS support: Frontends can fetch directly from browsers.
Do’s & Don’ts
Do
- Check
statusproperty before accessingresults. - Handle the nested structure of
/api/docscorrectly (data.data.docs). - Use explicit paths.
Don’t
- Assume a flat array response.
- Assume write capabilities (GET only).
References
- API Endpoints
- Data Schemas
- Error Handling
- Usage Patterns
- Official API Docs
- Base URL:
https://services.dzaleka.com/api
What ships with it: 4 files
5.5 KB alongside SKILL.md
references/
- endpoints.md1.5 KB
- errors.md941 B
- schemas.md1.9 KB
- usage-patterns.md1.1 KB