Quickstart
Get started with the Sabdasakha API in under 5 minutes.
Prerequisites
- Basic understanding of REST APIs
- A tool to make HTTP requests (curl, Postman, or any programming language)
Step 1: Make Your First Request
Let's look up the word "घर" (house):
You'll receive a response like:
{
"word": "घर",
"part_of_speech": null,
"split_definitions": "[...]",
"definitions": [
{
"number": "१.",
"text": "गारो लगाई छानु हालेर बनाएको मानिस बस्ने ठाउँ; गृह; आलय; भवन...",
"part_of_speech": null
}
]
}
For grouped variant entries, pass include_variants=true:
For per-dictionary results from both Nepali dictionaries, pass multi_dict=true:
Step 2: Get Autocomplete Suggestions
Build a search-as-you-type experience:
Response (returns up to 10 suggestions by default):
[
"नेपाल",
"नेपाल औद्योगिक विकास कर्पोरेसन",
"नेपाल तारा",
"नेपाल प्रज्ञा प्रतिष्ठान",
"नेपाल प्रताप भास्कर"
]
Step 3: Check Spelling
Validate Nepali text for spelling errors:
Response (note: "देस" should be "देश"):
{
"misspelled": [
{
"word": "देस",
"status": "misspelled",
"corrections": ["देश"]
}
],
"unknown": []
}
Next Steps
- Read the Dictionary API Reference for all available options
- Learn about Rate Limits and best practices
- See Error Handling for handling edge cases
- Check out more Code Examples