{
"from": {
"iso2": "US",
"name": "United States",
"plugs": [
"A",
"B"
],
"voltage": 120,
"frequency": 60,
"confidence": "high"
},
"to": {
"iso2": "FR",
"name": "France",
"plugs": [
"E",
"C"
],
"voltage": 230,
"frequency": 50,
"confidence": "high"
},
"adapter": {
"needed": "yes",
"byPlug": [
{
"plug": "A",
"fits": "no",
"fitsInto": []
},
{
"plug": "B",
"fits": "no",
"fitsInto": []
}
],
"buy": [
"E",
"C"
]
},
"voltage": {
"converter": "not-needed",
"deviceRange": [
100,
240
],
"destinationVoltages": [
230
]
},
"frequency": {
"same": false,
"overlap": false,
"from": 60,
"to": 50
},
"summary": "Plug: you need a plug adapter. France uses type E and C sockets, and your A and B plugs do not fit them; get an adapter for type E (or a universal adapter covering E and C). Voltage: your device (100-240 V) works on France's 230 V: no converter needed. Frequency: 60 Hz at home, 50 Hz in France. Chargers and most electronics don't mind; some motors, older clocks and timers may run at the wrong speed.",
"confidence": "high",
"disclaimer": "Reference information compiled from public sources that sometimes disagree; not electrical safety advice. Check the rating label on your device and the outlet or ask a qualified electrician before plugging in, and never plug a device into a supply outside its rated input."
}
curl --location --request GET 'https://zylalabs.com/api/14690/plug+type+and+voltage+by+country+api/37967/do+i+need+an+adapter+or+a+converter?from=US&to=FR&device=100-240' --header 'Authorization: Bearer YOUR_API_KEY'
{
"found": true,
"country": {
"iso2": "FR",
"name": "France",
"plugs": [
"E",
"C"
],
"voltage": 230,
"frequency": 50,
"confidence": "high",
"plugDetails": [
{
"type": "E",
"name": "Type E",
"also": [
"French plug",
"CEE 7/5"
],
"grounded": true
},
{
"type": "C",
"name": "Type C",
"also": [
"Europlug",
"CEE 7/16"
],
"grounded": false
}
],
"voltageText": "230 V",
"frequencyText": "50 Hz",
"acceptsPlugs": [
"C",
"E"
],
"confidenceReason": "Both independent references agree on plug types, voltage (within 10 V) and frequency."
},
"disclaimer": "Reference information compiled from public sources that sometimes disagree; not electrical safety advice. Check the rating label on your device and the outlet or ask a qualified electrician before plugging in, and never plug a device into a supply outside its rated input."
}
curl --location --request GET 'https://zylalabs.com/api/14690/plug+type+and+voltage+by+country+api/37968/plug+types+voltage+and+frequency+of+a+country&code=Required' --header 'Authorization: Bearer YOUR_API_KEY'
{
"q": "type g",
"plugType": {
"type": "G",
"name": "Type G",
"also": [
"British plug",
"BS 1363"
]
},
"count": 3,
"total": 45,
"countries": [
{
"iso2": "AE",
"name": "United Arab Emirates",
"plugs": [
"G",
"C",
"D"
],
"voltage": 230,
"frequency": 50,
"confidence": "high"
},
{
"iso2": "BD",
"name": "Bangladesh",
"plugs": [
"C",
"D",
"G",
"A"
],
"voltage": 220,
"frequency": 50,
"confidence": "high"
},
{
"iso2": "BH",
"name": "Bahrain",
"plugs": [
"G"
],
"voltage": 230,
"frequency": 50,
"confidence": "high"
}
],
"disclaimer": "Reference information compiled from public sources that sometimes disagree; not electrical safety advice. Check the rating label on your device and the outlet or ask a qualified electrician before plugging in, and never plug a device into a supply outside its rated input."
}
curl --location --request GET 'https://zylalabs.com/api/14690/plug+type+and+voltage+by+country+api/37969/find+countries+by+name+code+or+plug+type+with+filters?q=type g&frequency=50&confidence=high&limit=3' --header 'Authorization: Bearer YOUR_API_KEY'
{
"count": 3,
"countries": [
{
"iso2": "PY",
"name": "Paraguay",
"plugs": [
"N",
"C",
"A",
"B"
],
"voltage": 220,
"frequency": 50,
"confidence": "high"
},
{
"iso2": "SZ",
"name": "Eswatini",
"plugs": [
"M",
"N"
],
"voltage": 230,
"frequency": 50,
"confidence": "high"
},
{
"iso2": "ZA",
"name": "South Africa",
"plugs": [
"M",
"N",
"C"
],
"voltage": 230,
"frequency": 50,
"confidence": "high"
}
],
"disclaimer": "Reference information compiled from public sources that sometimes disagree; not electrical safety advice. Check the rating label on your device and the outlet or ask a qualified electrician before plugging in, and never plug a device into a supply outside its rated input."
}
curl --location --request GET 'https://zylalabs.com/api/14690/plug+type+and+voltage+by+country+api/37970/every+country+compact+with+optional+filters?plug=N&frequency=50' --header 'Authorization: Bearer YOUR_API_KEY'
{
"plug": {
"type": "G",
"name": "Type G",
"also": [
"British plug",
"BS 1363"
],
"pins": "Three rectangular pins in a triangle; the plug holds a fuse.",
"grounded": true,
"amps": 13,
"voltageRange": [
220,
240
],
"standards": [
"BS 1363 (UK)",
"I.S. 401 (Ireland)",
"SS 145 (Singapore)"
],
"region": "United Kingdom, Ireland, Malta, Cyprus, Hong Kong, Singapore, Malaysia, the Gulf states, East Africa"
},
"countryCount": 56,
"mainIn": 42,
"countries": [
{
"iso2": "AE",
"name": "United Arab Emirates",
"main": true
},
{
"iso2": "BD",
"name": "Bangladesh",
"main": false
},
{
"iso2": "BH",
"name": "Bahrain",
"main": true
},
{
"iso2": "BN",
"name": "Brunei",
"main": true
},
{
"iso2": "BT",
"name": "Bhutan",
"main": false
},
{
"iso2": "BW",
"name": "Botswana",
"main": false
},
{
"iso2": "BZ",
"name": "Belize",
"main": false
},
{
"iso2": "CY",
"name": "Cyprus",
"main": true
},
{
"iso2": "DM",
"name": "Dominica",
"main": true
},
{
"iso2": "FK",
"name": "Falkland Islands",
"main": true
},
{
"iso2": "GB",
"name": "United Kingdom",
"main": true
},
{
"iso2": "GD",
"name": "Grenada",
"main": true
},
{
"iso2": "GG",
"name": "Guernsey",
"main": true
},
{
"iso2": "GH",
"name": "Ghana",
"main": true
},
{
"iso2": "GI",
"name": "Gibraltar",
"main": true
},
{
"iso2": "GM",
"name": "Gambia",
"main": true
},
{
"iso2": "GY",
"name": "Guyana",
"main": false
},
{
"iso2": "HK",
"name": "Hong Kong",
"main": true
},
{
"iso2": "IE",
"name": "Ireland",
"main": true
},
{
"iso2": "IM",
"name": "Isle of Man",
"main": true
},
{
"iso2": "IQ",
"name": "Iraq",
"main": true
},
{
"iso2": "JE",
"name": "Jersey",
"main": true
},
{
"iso2": "JO",
"name": "Jordan",
"main": true
},
{
"iso2": "KE",
"name": "Kenya",
"main": true
},
{
"iso2": "KH",
"name": "Cambodia",
"main": false
},
{
"iso2": "KN",
"name": "Saint Kitts and Nevis",
"main": false
},
{
"iso2": "KW",
"name": "Kuwait",
"main": true
},
{
"iso2": "LB",
"name": "Lebanon",
"main": false
},
{
"iso2": "LC",
"name": "Saint Lucia",
"main": true
},
{
"iso2": "LK",
"name": "Sri Lanka",
"main": false
},
{
"iso2": "MM",
"name": "Myanmar",
"main": true
},
{
"iso2": "MO",
"name": "Macau",
"main": true
},
{
"iso2": "MT",
"name": "Malta",
"main": true
},
{
"iso2": "MU",
"name": "Mauritius",
"main": true
},
{
"iso2": "MV",
"name": "Maldives",
"main": true
},
{
"iso2": "MW",
"name": "Malawi",
"main": true
},
{
"iso2": "MY",
"name": "Malaysia",
"main": true
},
{
"iso2": "NG",
"name": "Nigeria",
"main": true
},
{
"iso2": "OM",
"name": "Oman",
"main": true
},
{
"iso2": "PK",
"name": "Pakistan",
"main": false
},
{
"iso2": "QA",
"name": "Qatar",
"main": true
},
{
"iso2": "SA",
"name": "Saudi Arabia",
"main": true
},
{
"iso2": "SB",
"name": "Solomon Islands",
"main": false
},
{
"iso2": "SC",
"name": "Seychelles",
"main": true
},
{
"iso2": "SD",
"name": "Sudan",
"main": false
},
{
"iso2": "SG",
"name": "Singapore",
"main": true
},
{
"iso2": "SH",
"name": "Saint Helena, Ascension and Tristan da Cunha",
"main": true
},
{
"iso2": "SL",
"name": "Sierra Leone",
"main": true
},
{
"iso2": "SO",
"name": "Somalia",
"main": false
},
{
"iso2": "SS",
"name": "South Sudan",
"main": false
},
{
"iso2": "TZ",
"name": "Tanzania",
"main": true
},
{
"iso2": "UG",
"name": "Uganda",
"main": true
},
{
"iso2": "VC",
"name": "Saint Vincent and the Grenadines",
"main": true
},
{
"iso2": "YE",
"name": "Yemen",
"main": true
},
{
"iso2": "ZM",
"name": "Zambia",
"main": true
},
{
"iso2": "ZW",
"name": "Zimbabwe",
"main": true
}
],
"fitsSockets": [
{
"type": "G",
"fit": "yes"
}
],
"socketAccepts": [
{
"type": "G",
"fit": "yes"
}
],
"note": "fitsSockets: the sockets this plug goes into; socketAccepts: the plugs a type G socket takes. \"usually\" means it fits for the common variant (see each note). A fit is only counted when the ground connection is kept.",
"disclaimer": "Reference information compiled from public sources that sometimes disagree; not electrical safety advice. Check the rating label on your device and the outlet or ask a qualified electrician before plugging in, and never plug a device into a supply outside its rated input."
}
curl --location --request GET 'https://zylalabs.com/api/14690/plug+type+and+voltage+by+country+api/37971/a+plug+type+description+countries+and+what+fits&type=Required' --header 'Authorization: Bearer YOUR_API_KEY'
{
"count": 15,
"plugs": [
{
"type": "A",
"name": "Type A",
"also": [
"NEMA 1-15",
"two flat parallel pins"
],
"grounded": false,
"amps": 15,
"countryCount": 61
},
{
"type": "B",
"name": "Type B",
"also": [
"NEMA 5-15",
"three-prong US plug"
],
"grounded": true,
"amps": 15,
"countryCount": 57
},
{
"type": "C",
"name": "Type C",
"also": [
"Europlug",
"CEE 7/16"
],
"grounded": false,
"amps": 2.5,
"countryCount": 143
},
{
"type": "D",
"name": "Type D",
"also": [
"BS 546 5 A",
"old British round pin"
],
"grounded": true,
"amps": 5,
"countryCount": 33
},
{
"type": "E",
"name": "Type E",
"also": [
"French plug",
"CEE 7/5"
],
"grounded": true,
"amps": 16,
"countryCount": 48
},
{
"type": "F",
"name": "Type F",
"also": [
"Schuko",
"CEE 7/4"
],
"grounded": true,
"amps": 16,
"countryCount": 77
},
{
"type": "G",
"name": "Type G",
"also": [
"British plug",
"BS 1363"
],
"grounded": true,
"amps": 13,
"countryCount": 56
},
{
"type": "H",
"name": "Type H",
"also": [
"Israeli plug",
"SI 32"
],
"grounded": true,
"amps": 16,
"countryCount": 2
},
{
"type": "I",
"name": "Type I",
"also": [
"Australian plug",
"AS/NZS 3112"
],
"grounded": true,
"amps": 10,
"countryCount": 23
},
{
"type": "J",
"name": "Type J",
"also": [
"Swiss plug",
"SEV 1011"
],
"grounded": true,
"amps": 10,
"countryCount": 5
},
{
"type": "K",
"name": "Type K",
"also": [
"Danish plug",
"DS 60884-2-D1"
],
"grounded": true,
"amps": 16,
"countryCount": 6
},
{
"type": "L",
"name": "Type L",
"also": [
"Italian plug",
"CEI 23-50"
],
"grounded": true,
"amps": 16,
"countryCount": 11
},
{
"type": "M",
"name": "Type M",
"also": [
"BS 546 15 A",
"South African large round pin"
],
"grounded": true,
"amps": 15,
"countryCount": 13
},
{
"type": "N",
"name": "Type N",
"also": [
"Brazilian plug",
"IEC 60906-1",
"NBR 14136"
],
"grounded": true,
"amps": 10,
"countryCount": 4
},
{
"type": "O",
"name": "Type O",
"also": [
"Thai plug",
"TIS 166-2549"
],
"grounded": true,
"amps": 16,
"countryCount": 1
}
],
"disclaimer": "Reference information compiled from public sources that sometimes disagree; not electrical safety advice. Check the rating label on your device and the outlet or ask a qualified electrician before plugging in, and never plug a device into a supply outside its rated input."
}
curl --location --request GET 'https://zylalabs.com/api/14690/plug+type+and+voltage+by+country+api/37972/all+15+plug+types' --header 'Authorization: Bearer YOUR_API_KEY'
注册后,每个开发者都会被分配一个个人 API 访问密钥,这是一个唯一的字母和数字组合,用于访问我们的 API 端点。要使用 各国的插头类型和电压 API 进行身份验证,只需在 Authorization 标头中包含您的 bearer token。
| 标头 | 描述 |
|---|---|
授权
|
必需
应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。
|
243个国家的插头类型、电压和频率,以及“我需要适配器或变压器吗?”的答案
发送设备与您设备标签上的输入范围(例如设备=100-240)没有它,答案会告诉您电压是否匹配以及在标签上要查找什么事项
您的某些插头适合,而其他则不适合,或者仅适合普通变体(例如,大多数德国和法国的接地插头是适合两种插座的混合型,但较旧的则不适合)。答案列出了每个插头及备注
每个国家都有一个信心:当两个独立的参考在插头类型、电压(在10 V内)和频率上与我们一致时为高;当它们不一致或电源混合时为中或低。始终检查设备标签和插座
是的 ISO 代码(FR) 英文名称(France) 和常见别名(UK Holland Burma Ivory Coast)都可以使用
不 每次调用都是内存中的查找 并且没有日志记录
每个端点返回与插头类型、电压、频率和各种国家的适配器需求相关的数据。例如,“我需要适配器还是转换器”端点提供有关适配器需求和两个国家之间电压兼容性的详细信息
关键字段包括源国和目的国的“从”和“到”“适配器”用于适配器需求“电压”用于电压兼容性“可信度”表示数据可靠性每个字段为旅行者提供有关电气兼容性的基本信息
参数因端点而异。对于“按名称代码或插头类型查找国家”端点,可以使用“q”来匹配名称或插头类型,并使用电压、频率和置信度进行过滤。这允许用户根据特定需求自定义查询
响应数据采用JSON格式结构化,国家、插头和电压详情均为嵌套对象。每个部分清晰地划分信息,如插头类型、电压范围和适配器要求,便于解析和使用
数据来自公共来源,包括国际标准和电气安全指南 该API交叉引用多个独立来源以确保所提供信息的准确性和可靠性
典型的使用案例包括旅行者检查他们的设备是否需要适配器或转换器 企业确保国际运输的兼容性 以及用于了解全球电气标准的教育目的
用户可以在旅行前通过检查适配器需求和电压兼容性来利用返回的数据。例如,如果从美国旅行到法国,用户可以看到他们需要适配器将A和B插头类型插入E和C插座
如果查询返回部分或空结果,用户应验证输入参数的准确性。例如,使用常见别名或确保拼写正确可以获得更好的结果。当没有找到匹配项时,API还提供替代查询的建议