{"data":{"billing":{"currency":"USD","mode":"rules","parameters":[],"policy_version":2,"sale":{"addons":[],"base_price_micro_usd":"0","max_cost_micro_usd":"2000","quantities":[{"id":"upstream_credits","label":"Actual API.SH credits consumed","max_quantity":"1","measure":"value","pointer":"/credits_used","price_micro_usd":"2000","quantity_scale":0,"source":"response","unit":"credit","unit_quantity":"1"}],"rounding":"ceil","variants":[]}},"capabilityId":"31125fc0-972f-4e51-99c0-f85f788fcc68","catalogType":"api","categories":["travel","data"],"dataPlatform":"ads-b-exchange","dataPlatformLogoUrl":"https://api.sh/logos/ads-b-exchange.png","dataPlatformTranslations":{},"dataProduct":"aviation","description":"Search ADS-B Exchange aircraft by a four-digit squawk code via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as code, limit, output, and retrieve structured data including source aircraft address, source transponder squawk string, separate source emergency-state field, and selected squawk-code context for code lookup, and observation review.","descriptionTranslations":{"ar":"استرجع رصد ADS-B Exchange المطابق لرمز المجيب، مع صفحات المعرّفات والمواقع وحالة المصدر لفحص سجلات البث الخاصة بالرمز وسياقها. استخدم الرصد المنظم لإعداد خريطة طيران أو فحص مراجع الطائرات، مع توضيح الوحدات وعمر الرصد وأمثلة الطلبات المدعومة وتسعير التنفيذ الحالي في صفحة API.","ja":"トランスポンダーコードで ADS-B Exchange 観測を取得し、識別・位置・出典状態をページごとに確認できます。 構造化観測を航空地図や出典の機体照合に使い、単位・観測経過時間を明示できます。API 詳細ページには対応リクエスト例と選択した実装の料金があります。","zh":"按应答码查询 ADS-B Exchange 航空器观测，分页获取标识、位置和来源状态，在上下文中查看匹配广播记录。 可利用结构化观测制作航空地图或核对来源航空器引用，保留测量单位和观测时效；API 详情页提供受支持的请求示例及当前实现价格。"},"effectContentHtml":"","executionMode":"sync","id":"222024ac-cbb8-4e4e-bfc9-1a498d55076a","includedContentHtml":"","inputs":[{"description":"Squawk code (4 octal digits), default 7700.","location":"query","name":"code","nullable":false,"required":false,"type":"string"},{"description":"Aircraft per page (1-500, default 100).","location":"query","name":"limit","nullable":false,"required":false,"type":"integer"},{"description":"Skip this many aircraft.","location":"query","name":"offset","nullable":false,"required":false,"type":"integer"},{"description":"0 leaves out the bulky `raw` source blocks (often 10-30x smaller).","enum_values":["0","1"],"location":"query","name":"raw","nullable":false,"required":false,"type":"string"},{"description":"Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.","location":"query","name":"fields","nullable":false,"required":false,"type":"string"},{"description":"1 skips the 24-hour cache and fetches live.","enum_values":["1"],"location":"query","name":"fresh","nullable":false,"required":false,"type":"string"},{"description":"JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported.","enum_values":["json"],"location":"query","name":"output","nullable":false,"required":false,"type":"string"},{"description":"With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row.","location":"query","name":"records","nullable":false,"required":false,"type":"string"}],"logoUrl":"https://api.sh/logos/ads-b-exchange.png","method":"GET","name":"ADS-B Exchange aircraft squawking a code API","nameTranslations":{},"overviewHtml":"\u003ch2\u003eADS-B Exchange Squawk Search API\u003c/h2\u003e\n\u003cp\u003eUse code as four octal digits, or the documented default 7700. Preserve the matched squawk separately from emergency, source position age and ground state.\u003c/p\u003e\n\u003ch2\u003eQuick Facts\u003c/h2\u003e\n\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth\u003eFact\u003c/th\u003e\n\u003cth\u003eValue\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003eAccess\u003c/td\u003e\n\u003ctd\u003eOpenAny REST\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eAuthentication\u003c/td\u003e\n\u003ctd\u003eOpenAny API key in the Authorization header\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eCore inputs\u003c/td\u003e\n\u003ctd\u003eChoose the lookup or search inputs described below. Optional: code, limit, offset. JSON output; fresh=1 bypasses cache and raw=0 omits raw source blocks.\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eSelected implementation\u003c/td\u003e\n\u003ctd\u003eapish · ADS-B Exchange aircraft squawking a code API\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eBilling\u003c/td\u003e\n\u003ctd\u003eSee the pricing area for the selected implementation and request options\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003ch2\u003eWhat You Can Build\u003c/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\u003cstrong\u003eCode lookup\u003c/strong\u003e: Preserve the octal code as a string.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eObservation review\u003c/strong\u003e: Keep source status and position age with each match.\u003c/li\u003e\n\u003c/ul\u003e\n\u003ch2\u003eReturned Data\u003c/h2\u003e\n\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth\u003eField\u003c/th\u003e\n\u003cth\u003eMeaning\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eaircraft[].hex\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eSource aircraft address\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eaircraft[].squawk\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eSource transponder squawk string\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eaircraft[].emergency\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eSeparate source emergency-state field\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eaircraft[].seconds_since_position\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eSeconds since source position update\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003esquawk\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eSelected squawk-code context\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003enext_offset\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eNext source result offset when present\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003ch2\u003eQuick Start\u003c/h2\u003e\n\u003col\u003e\n\u003cli\u003eSet OPENANY_API_KEY to your OpenAny API key.\u003c/li\u003e\n\u003cli\u003eReview the selected implementation and pricing, then adapt the request below to your target.\u003c/li\u003e\n\u003cli\u003eCheck the HTTP response and business result before reading optional fields.\u003c/li\u003e\n\u003c/ol\u003e\n\u003cpre\u003e\u003ccode class=\"language-bash\"\u003ecurl --request GET --get \\\n  https://api.openany.si/v1/agent-apis/apish/adsbexchange/v1/squawk \\\n  -H \u0026#34;Authorization: Bearer ${OPENANY_API_KEY}\u0026#34; \\\n  --data-urlencode code=7000 \\\n  --data-urlencode limit=1 \\\n  --data-urlencode output=json \\\n  --data-urlencode raw=0\n\u003c/code\u003e\u003c/pre\u003e\n\u003ch2\u003eRequest and Response Examples\u003c/h2\u003e\n\u003cp\u003eThe response example is a documentation reference and may be abbreviated. The documented request is a calling template; use the published contract and returned response for the selected implementation.\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"https://openany.si/api/v1/agent-apis/222024ac-cbb8-4e4e-bfc9-1a498d55076a\"\u003ePublished ADS-B Exchange Squawk Search API implementation contract\u003c/a\u003e.\u003c/p\u003e\n\u003ch2\u003ePricing and Billing\u003c/h2\u003e\n\u003cp\u003eThe pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service\u0026#39;s public availability does not determine OpenAny billing.\u003c/p\u003e\n\u003ch2\u003eFrequently Asked Questions\u003c/h2\u003e\n\u003ch3\u003eWhat format does code use?\u003c/h3\u003e\n\u003cp\u003eUse four octal digits, retaining leading zeroes; the documented default is 7700.\u003c/p\u003e\n\u003ch3\u003eDoes the selected code replace emergency status?\u003c/h3\u003e\n\u003cp\u003eNo. Keep the returned squawk and emergency fields separate rather than deriving every status label from the query.\u003c/p\u003e\n\u003ch3\u003eHow do I paginate?\u003c/h3\u003e\n\u003cp\u003elimit accepts 1–500 and defaults to 100; pass next_offset as offset.\u003c/p\u003e\n\u003ch3\u003eIs the response a historical code log?\u003c/h3\u003e\n\u003cp\u003eIt returns available source aircraft observations for the selected code, not a complete historical event archive.\u003c/p\u003e\n\u003ch3\u003eHow do I bypass cached results?\u003c/h3\u003e\n\u003cp\u003ePass fresh=1. A cache bypass retrieves available source data; it does not make unpublished or restricted records available.\u003c/p\u003e\n\u003ch3\u003eCan I request CSV or NDJSON?\u003c/h3\u003e\n\u003cp\u003eThis OpenAny implementation serves JSON only. Omit output or set output=json.\u003c/p\u003e\n\u003ch2\u003eRelated APIs\u003c/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/ads-b-exchange/ads-b-exchange-live-aircraft-by-hex-registration-or-callsign-api\"\u003eADS-B Exchange live aircraft by hex, registration or callsign API\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/ads-b-exchange/ads-b-exchange-live-aircraft-in-an-area-api\"\u003eADS-B Exchange live aircraft in an area API\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/ads-b-exchange/ads-b-exchange-closest-aircraft-to-a-point-api\"\u003eADS-B Exchange closest aircraft to a point API\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n","pagePath":"/markets/apis/ads-b-exchange/ads-b-exchange-aircraft-squawking-a-code-api?offering=222024ac-cbb8-4e4e-bfc9-1a498d55076a","providerId":"apish","publicPath":"/v1/agent-apis/apish/adsbexchange/v1/squawk","requestContentType":"none","revision":3,"samples":[{"http_status":200,"name":"Official example · Live API.SH response · Minimal request","request":{"body":null,"headers":{},"path":{},"query":{"code":"7000","limit":"1","output":"json","raw":"0"}},"response_body":{"aircraft":[{"adsb_version":2,"aircraft_type":"PA34","altitude_baro_ft":1425,"altitude_geom_ft":1825,"callsign":"PHAPF","category":"A1","emergency":"none","ground_speed_kt":109.2,"hex":"486518","indicated_airspeed_kt":null,"interesting":false,"latitude":38.697006,"longitude":-8.9861,"mach":null,"magnetic_heading_deg":null,"messages":82,"military":false,"nac_p":10,"nac_v":2,"nic":9,"on_ground":false,"outside_air_temp_c":null,"qnh_hpa":null,"receivers":4,"registration":"PH-APF","roll_deg":null,"rssi":-6.3,"sda":2,"seconds_since_position":0,"seconds_since_seen":0,"selected_altitude_fms_ft":null,"selected_altitude_ft":null,"selected_heading_deg":null,"sil":3,"source":"adsb_icao","squawk":"7000","total_air_temp_c":null,"track_deg":74.1,"track_rate":null,"true_airspeed_kt":null,"true_heading_deg":null,"vertical_rate_baro_fpm":640,"vertical_rate_geom_fpm":null,"wind_direction_deg":null,"wind_speed_kt":null}],"cached":false,"count":1,"credits_used":1,"fetched_at":"2026-11-19T12:23:53.502Z","next_offset":1,"offset":0,"squawk":"7000","time":"2026-11-19T12:23:53.001Z","total":199}}],"seoDescription":"Search ADS-B Exchange aircraft by a four-digit squawk via REST or MCP powered by Apish. Pay per call, no subscription. Built for code lookup workflows.","updatedAt":"2026-12-03T02:47:11.779Z","usageInstructionsHtml":""}}