Use this free api to create, read, update and delete data on nepal's caste system, districts, exports, flowers, and religions. I recommend this Postman workspace to import requests for all non-GET methods.
Introduction The nepal-api (Application Programming Interface) allows you to access this small database of resource infomation on the country of Nepal. You can use the API to build your own dynamic websites, practice testing api, or applications backed by the same data used on nepal-api.
With the nepal-api, you can:
-Search for and display datapoints
-Create new datapoits
-Update or Delete exsiting datapoints
-You can, for example, display a list of caste names, see more info on them based on id, and add a new caste to the database.
This is a RESTful API, meaning that it uses predictable URLs to access resources.
To import a curl request, copy the request structure from the live site, on Postman visit import
on the left hand sidebar > raw text
> continue
> import
and send
the request to receive JSON. The API is accessed through GET requests following this overall pattern:
curl -H https://nepal-api.herokuapp.com/districts
[{"id":"1","name":"Gorkha"},{"id":"2","name":"Kathmandu"},{"id":"3","name":"Pokhara"}]
Please visit the live site for a complete list of curl requests and endpoints.
All query parameters such as name
, population
, revenue_2020
are strings including id's.