| name | israel-postal-code | ||||
|---|---|---|---|---|---|
| description | Look up Israeli postal/zip codes (מיקוד) from an address using an Israel Post style postal code lookup API. Use when the user provides an Israeli address (city, street, house number) and wants the postal code / zip code / מיקוד. Supports Hebrew and English address input. Triggers: מיקוד, postal code, zip code, Israel address, israeli post, דואר ישראל. | ||||
| metadata |
|
Use this skill when the user provides an Israeli address and wants to find the postal code (מיקוד).
The user may provide the address in Hebrew or English, as a full string or as separate fields (city, street, house number).
This skill calls a postal-code lookup API that behaves like the Israel Post zip code service.
Expected headers:
Content-Type: application/jsonOcp-Apim-Subscription-Key: <SUBSCRIPTION_KEY>
Use a subscription key that is configured outside this file.
Example base URL:
https://<postal-api-host>
Extract from the user's input:
- City/Settlement (יישוב)
- Street (רחוב), if provided
- House number (מספר בית), if provided
If the user gives a free-text address like "דיזנגוף 50 תל אביב", parse it into components.
POST https://<postal-api-host>/mypost-zip/GetCities
Content-Type: application/json
Ocp-Apim-Subscription-Key: <SUBSCRIPTION_KEY>
{
"CityStartsWith": "CITY_NAME",
"Lang": "HE"
}Typical response fields:
id– city IDn– city namedivided– true/falsezip– postal code whendividedis false
If divided is false, use zip and stop.
If multiple cities match, pick the best match or ask the user to clarify.
POST https://<postal-api-host>/mypost-zip/GetStreets
Content-Type: application/json
Ocp-Apim-Subscription-Key: <SUBSCRIPTION_KEY>
{
"CityID": "CITY_ID",
"CityName": "",
"SearchMode": "ID-StartsWith",
"StartsWith": "STREET_NAME",
"Lang": "HE"
}Response fields:
id– street IDn– street name
If multiple streets match, pick the exact match when possible or ask for clarification.
If the user did not provide a street for a divided city, ask for the street name.
POST https://<postal-api-host>/mypost-zip/SearchZip
Content-Type: application/json
Ocp-Apim-Subscription-Key: <SUBSCRIPTION_KEY>
{
"CityID": "CITY_ID",
"StreetID": "STREET_ID",
"House": "HOUSE_NUMBER",
"Entry": "",
"ByMaanimID": true
}If there is no house number, send "House": "".
Typical response fields:
zip– postal codecityname– confirmed city namemsgtype–"address","noentrances","unitedtown","notfound"messageResult– description text
If a result is found:
המיקוד עבור [address] הוא: ZIPCODE
If no result is found:
לא נמצא מיקוד עבור הכתובת שהוזנה.