LEAPERone Docs

Address Purification

Overview of address purification APIs

LEAPERone provides a suite of 22 address purification endpoints through a unified RESTful JSON API, covering address extraction, standardization, geocoding, and more.

Endpoint

POST https://api.leaper.one/v1/address/:action

Replace :action with the specific API action name.

Authentication

Authorization: Bearer sk-your-api-key

Common Parameters

All endpoints share the following JSON body parameters:

ParameterTypeRequiredDescription
textstringYesThe text content to process
defaultProvincestringNoDefault province (e.g., "浙江省")
defaultCitystringNoDefault city (e.g., "杭州市")
defaultDistrictstringNoDefault district (e.g., "余杭区")

Common Response

{
  "RequestId": "xxx-xxx-xxx",
  "Data": "{ ... }"
}

The Data field is a JSON string. You need to call JSON.parse(response.Data) to parse it.

Action Reference

ActionEndpointDescriptionPrice (credits/call)
extract/v1/address/extractAddress extraction$0.004
extract-name/v1/address/extract-nameName extraction$0.004
extract-phone/v1/address/extract-phonePhone number extraction$0.004
division-code/v1/address/division-codeAdministrative division code$0.004
zipcode/v1/address/zipcodeZip code lookup$0.004
structure/v1/address/structureAddress structuring$0.008
correct/v1/address/correctAddress correction$0.008
complete/v1/address/completeAddress completion$0.008
standardize/v1/address/standardizeAddress standardization$0.008
assessment/v1/address/assessmentAddress anomaly detection$0.008
extract-express/v1/address/extract-expressShipping label extraction$0.008
search/v1/address/searchAddress search$0.008
input-search/v1/address/input-searchAddress autocomplete$0.008
similarity/v1/address/similarityMulti-address similarity$0.008
one-id/v1/address/one-idMulti-source address unification$0.008
geocode/v1/address/geocodePOI-level geocoding$0.008
hp-geocode/v1/address/hp-geocodeBuilding-level geocoding$0.008
transfer-coord/v1/address/transfer-coordCoordinate system conversion$0.008
classify-poi/v1/address/classify-poiAddress type classification$0.008
predict-poi/v1/address/predict-poiPOI prediction$0.008
asr/v1/address/asrVoice address recognition$0.008
inference/v1/address/inferenceConversational address inference$0.008

Error Codes

HTTP StatusCodeDescription
400InvalidParameterInvalid parameter
401missing_api_keyAPI key not provided
402insufficient_creditsInsufficient balance
403Forbidden.NoPermissionNo permission to access this endpoint
429Throttling.UserRate limit exceeded
500InternalErrorUpstream internal error
504TimeoutUpstream request timeout