Search District
The Search District Endpoint represents the third vital step in the hierarchical location selection process for the RajaOngkir API. This endpoint retrieves all districts (kecamatan) within a specific city, enabling applications to offer a fully detailed and dynamic location selection experience down to the district level.
By supplying the city ID obtained from the Search City endpoint, users can access structured district data necessary for accurate shipping rate calculations, service availability checks, or address validation. This fine-grained geographic data is particularly beneficial for last-mile delivery logistics, dynamic form population, and e-commerce checkout flows.
This endpoint plays a critical role in systems that require complete administrative breakdowns, ensuring that end users can precisely define their shipping destinations with minimal error.
Endpoint Details
This endpoint serves as the third step in the Step-by-Step Method integration model, following the city selection process and enabling deeper geographic targeting for shipping and service delivery.
Request Body
Response
More Information
Need Help?
For questions about integration or the API, hit the live chat. Our team's on standby.

