{
"states": [
"Alabama",
"Alaska",
"Arizona",
"Arkansas",
"California",
"Colorado",
"Connecticut",
"Delaware",
"District of Columbia",
"Florida",
"Georgia",
"Hawaii",
"Idaho",
"Illinois",
"Indiana",
"Iowa",
"Kansas",
"Kentucky",
"Louisiana",
"Maine",
"Maryland",
"Massachusetts",
"Michigan",
"Minnesota",
"Mississippi",
"Missouri",
"Montana",
"Nebraska",
"Nevada",
"New Hampshire",
"New Jersey",
"New Mexico",
"New York",
"North Carolina",
"North Dakota",
"Ohio",
"Oklahoma",
"Oregon",
"Pennsylvania",
"Rhode Island",
"South Carolina",
"South Dakota",
"Tennessee",
"Texas",
"Utah",
"Vermont",
"Virginia",
"Washington",
"West Virginia",
"Wisconsin",
"Wyoming"
]
}
curl --location --request POST 'https://zylalabs.com/api/9853/stupid+laws+api/18514/obtain+all+us+states+in+dataset' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{}'
{
"Florida": [
"In Sarasota, it is illegal to sing in a public place while clad in a swimsuit.",
"A special law prohibits unmarried women from parachuting on Sunday or she shall risk arrest, fine, and/or jailing.",
"Florida law forbids rats to leave the ships docked in Tampa Bay.",
"In Hialeah, ambling and strolling is a misdemeanor.",
"If an elephant is left tied to a parking meter, the parking fee has to be paid just as it would for a vehicle.",
"In Florida failure to tell your neighbor his house is on fire is illegal.",
"In Florida it is illegal to fish while driving across a bridge.",
"It is illegal to skateboard without a license.",
"Women may be fined for falling asleep under a hair dryer, as can the salon owner.",
"It is illegal to break more than three dishes per day or chip the edges of more than four cups and/or saucers.",
"Owners of bars, restaurants, and other places where liquor is sold may be fined up to $1,000 if they participate in or permit any contest of 'dwarf-tossing.'"
]
}
curl --location --request POST 'https://zylalabs.com/api/9853/stupid+laws+api/18516/get+stupid+laws+for+state' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{"state":"Required"}'
[
{
"Florida": "People who own bars, restaurants, and other places where liquor is sold may be fined up to $1,000 if they participate in or permit any contest of “dwarf-tossing.”"
}
]
curl --location --request POST 'https://zylalabs.com/api/9853/stupid+laws+api/18519/highlighted+stupid+laws+per+state' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{"State":"Required"}'
注册后,每个开发者都会被分配一个个人 API 访问密钥,这是一个唯一的字母和数字组合,用于访问我们的 API 端点。要使用 愚蠢的法律 API 进行身份验证,只需在 Authorization 标头中包含您的 bearer token。
| 标头 | 描述 |
|---|---|
授权
|
必需
应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。
|
无长期承诺。随时升级、降级或取消。 免费试用包括最多 50 个请求。
(年度计费可节省 2 个月 🎉)
愚蠢法律API提供了一组按美国州分类的不同寻常和过时的法律集合,使用户可以访问与每个州相关的特定法律
API以结构化格式返回数据,通常是JSON,包含有关每个州及其相关的“愚蠢法律”的详细信息
开发者可以使用API创建教育工具、竞猜游戏或法律研究应用程序,突出奇特的法律,使其成为学习和娱乐的有趣资源
API的输出包括“州”、“法律描述”和可能的“法律ID”等字段,提供有关每项法律及其来源的清晰信息
您可以通过向其端点发出请求来集成API,以获取所有州或特定州的数据,从而允许您根据需要在应用程序中显示或利用这些不寻常的法律
该端点以结构化的JSON格式返回所有美国州的综合列表,使用户能够轻松访问和利用州名以进行进一步关于相关法律的查询
此端点需要一个状态标识符作为参数 用户可以指定他们感兴趣的州以检索该州记录的相应异常法律
响应被结构化为一个JSON对象,其中每个州都是一个键,相应的值是与该州特定的奇怪法律的数组,这使得解析和展示变得容易
此端点为指定的州提供一项突出显示的异常法律,以JSON格式返回,包括州名作为键和法律描述作为值
用户可以将API响应集成到用于教育目的、问答游戏或法律研究的应用程序中,以引人入胜的方式展示奇特的法律,以增强用户互动
关键字段包括州名和法律描述数组。每个法律描述提供了对该州特有的不寻常法律条款的深入了解
该API的数据来源于美国各州的法律文档,虽然它专注于奇特和过时的法律,但它旨在通过引用可靠的法律数据库和资源来保持准确性
典型的用例包括创建有趣的教育内容 开发竞猜游戏 或构建突出不寻常法律事实的应用程序 使得该API成为一个多功能的参与和学习工具