cheap-gas-nearby
nomadamas/k-skill
Find the cheapest nearby gas stations in Korea using Opinet fuel prices and Kakao Map location resolution.
What is cheap-gas-nearby?
This skill locates the cheapest gas stations near a user-specified location in South Korea. It always asks for the user's current location first, then resolves it via Kakao Map anchor search and queries official Opinet fuel-price APIs to return the lowest-priced stations sorted by distance.
- Asks for user's current location before searching (never auto-detects)
- Resolves location names, landmarks, or coordinates via Kakao Map anchor search
- Queries official Opinet Open API for real-time fuel prices sorted by cost
- Supports both gasoline (B027) and diesel (D047) product codes
- Returns top 3–5 results with price, distance, address, and self-service/car wash/maintenance details
- Converts WGS84 coordinates to KATEC format for Opinet API compatibility
How to install cheap-gas-nearby
npx skills add https://github.com/nomadamas/k-skill --skill cheap-gas-nearbyHow to use cheap-gas-nearby
- 1.Ask the user for their current location (neighborhood, station name, landmark, or coordinates)
- 2.If location is ambiguous, request clarification (nearest station name or district)
- 3.Confirm fuel type: gasoline (default) or diesel
- 4.Resolve the location string via Kakao Map anchor search to obtain WGS84 coordinates
- 5.Convert coordinates to KATEC format internally
- 6.Query Opinet aroundAll.do API with sort=1 (price ascending) and desired radius (up to 5000 m)
- 7.Call detailById.do for top candidates to enrich with address, phone, self-service flag, and amenities
- 8.Return 3–5 results sorted by price, including station name, fuel price, distance, and key details
Use cases
- User asks '근처 가장 싼 주유소 찾아줘' (find the cheapest nearby gas station)
- User requests cheapest diesel stations in a specific neighborhood or near a landmark
- User provides a station name or area and wants the lowest fuel prices within 5 km radius
- User wants to compare self-service vs. full-service stations by price in their area
- User provides latitude/longitude directly and needs instant price comparison
- Drivers in South Korea looking to save on fuel costs
- Commuters and travelers unfamiliar with local gas station prices
- Fleet managers or delivery drivers optimizing fuel expenses
- Anyone using Korean location-based services who speaks Korean
cheap-gas-nearby FAQ
No. The skill uses a default proxy at https://k-skill-proxy.nomadamas.org/v1/opinet/ which handles authentication server-side.
The skill will ask for clarification using a nearby station name, district (동), or landmark. Kakao Map anchor search may resolve ambiguous queries, but confirmation is recommended.
Yes. If the user specifies diesel (경유), the skill switches the product code from B027 (gasoline) to D047 (diesel).
The skill will explain why (e.g., Opinet API temporarily empty or proxy down) and ask for a refined location or larger search radius.
Prices come directly from the official Opinet Open API, which is maintained by Korea National Oil Corporation. Prices may be refreshing periodically.
Full instructions (SKILL.md)
Source of truth, from nomadamas/k-skill.
name: cheap-gas-nearby description: Use when the user asks for nearby cheapest gas stations or 근처 가장 싼 주유소. Always ask the user's current location first, then use Kakao Map anchor resolution plus official Opinet fuel-price APIs. license: MIT metadata: category: transport locale: ko-KR phase: v1
Cheap Gas Nearby
What this skill does
유저가 알려준 현재 위치를 기준으로 근처에서 가장 싼 주유소를 찾아준다.
- 위치는 자동으로 추정하지 않는다.
- 반드시 먼저 현재 위치를 질문한다.
- 가격 데이터는 한국석유공사 Opinet 공식 API를 우선 사용한다.
- 동네/역명/랜드마크 입력은 Kakao Map anchor 검색으로 좌표를 잡은 뒤 Opinet nearby 검색으로 연결한다.
- 기본 제품은 휘발유(B027) 이고, 유저가 경유라고 명시하면 경유(D047) 로 바꾼다.
When to use
- "근처 가장 싼 주유소 찾아줘"
- "서울역 근처 휘발유 제일 싼 데 어디야?"
- "강남에서 경유 싼 주유소 몇 군데만 보여줘"
- "지금 여기 근처 셀프주유소 중 싼 순으로 알려줘"
Mandatory first question
위치 정보 없이 바로 검색하지 말고 반드시 먼저 물어본다.
- 권장 질문:
현재 위치를 알려주세요. 동네/역명/랜드마크/위도·경도 중 편한 형식으로 보내주시면 근처에서 가장 싼 주유소를 찾아볼게요. - 제품이 불명확하면:
휘발유 기준으로 볼까요, 경유 기준으로 볼까요? 따로 말씀 없으면 휘발유로 찾을게요. - 위치가 애매하면:
가까운 역명이나 동 이름으로 한 번만 더 알려주세요.
Default path
기본적으로 https://k-skill-proxy.nomadamas.org/v1/opinet/around 와 /v1/opinet/detail 을 경유해 조회한다. 사용자 쪽에서 별도 OPINET_API_KEY 를 준비할 필요가 없다.
Official Opinet surfaces
- 오픈 API 안내:
https://www.opinet.co.kr/user/custapi/openApiInfo.do - 반경 내 주유소:
https://www.opinet.co.kr/api/aroundAll.do - 주유소 상세정보(ID):
https://www.opinet.co.kr/api/detailById.do - 지역코드:
https://www.opinet.co.kr/api/areaCode.do
반경 검색 핵심 파라미터:
x,y: 기준 위치 KATEC 좌표radius: 반경(m, 최대 5000)prodcd:B027(휘발유),D047(경유),B034(고급휘발유),C004(등유),K015(LPG)sort=1: 가격순
Location resolution surface
- Kakao Map 모바일 검색:
https://m.map.kakao.com/actions/searchView?q=<query> - Kakao Map 장소 패널 JSON:
https://place-api.map.kakao.com/places/panel3/<confirmId>
위치 문자열은 Kakao Map으로 anchor 좌표(WGS84) 를 구한 뒤, 내부적으로 WGS84 → KATEC 변환을 적용해 Opinet aroundAll.do 에 넘긴다.
Workflow
- 유저에게 반드시 현재 위치를 묻는다.
- 위치 문자열을 받으면 Kakao Map anchor 검색으로 좌표를 찾는다.
- 위도/경도를 직접 받으면 anchor 검색을 생략한다.
- 좌표를 KATEC으로 변환한다.
- Opinet
aroundAll.do를sort=1가격순으로 조회한다. - 상위 후보에 대해
detailById.do를 호출해 도로명주소, 전화번호, 셀프 여부, 세차장, 경정비, 품질인증 여부를 보강한다. - 보통 3~5개만 짧게 정리한다.
Responding
결과는 보통 아래 필드를 포함해 짧게 정리한다.
- 주유소명
- 가격(휘발유/경유 중 요청한 제품)
- 거리
- 주소
- 셀프 여부
- 세차장/경정비/품질인증 여부(있으면)
Node.js example
const { searchCheapGasStationsByLocationQuery } = require("cheap-gas-nearby");
async function main() {
const result = await searchCheapGasStationsByLocationQuery("서울역", {
productCode: "B027",
radius: 1000,
limit: 3
});
console.log(result.anchor);
console.log(result.items);
}
main().catch((error) => {
console.error(error);
process.exitCode = 1;
});
Done when
- 유저의 현재 위치를 먼저 확인했다.
- 기본 proxy 경유로 Opinet 데이터를 조회했다.
- 공식 Opinet nearby 결과를 최소 1개 이상 찾았거나, 못 찾은 이유와 다음 질문을 제시했다.
- 가격순 상위 결과를 3~5개 이내로 정리했다.
Failure modes
- 프록시 서버가 내려가 있거나
OPINET_API_KEY가 서버에 설정되지 않은 경우. - Kakao Map anchor가 애매하면 좌표가 잘못 잡힐 수 있어 추가 위치 확인이 필요하다.
- Opinet Open API 응답이 일시적으로 비거나 갱신 중일 수 있다.
Related skills
More from nomadamas/k-skill and the wider catalog.

corporate-registration-consulting
Korean corporate registration guidance and HWP document automation for first-time stock company incorporations.

coupang-product-search
Search Coupang products with Rocket Shipping filters, price ranges, comparisons, and daily deals via local MCP.

court-auction-notice-search
Search Korean court auction notices (courtauction.go.kr) for real estate sales by date, court, and case number.

daangn-cars-search
당근중고차 공개 웹 데이터 표면으로 지역·가격 조건 기반 차량 검색과 상세 조회를 수행한다. 문의/구매 자동화는 제외한다.

daangn-jobs-search
당근알바 공개 웹 데이터 표면으로 키워드·지역 기반 알바 공고 검색과 상세 조회를 수행한다. 지원/채팅 자동화는 제외한다.

daangn-realty-search
당근부동산(realty.daangn.com) 공개 웹 데이터로 지역 기반 부동산 매물 검색과 상세 확인을 수행한다. 문의/예약/계약 자동화는 제외한다.