{
"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/9852/us+stupid+laws+fetcher+api/18515/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/9852/us+stupid+laws+fetcher+api/18517/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/9852/us+stupid+laws+fetcher+api/18520/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的输出包括字段如'state' 'law_description'和可能的'law_id',提供关于每项法律及其来源的清晰信息
您可以通过向其端点发送请求来集成API,以获取所有州或特定州的数据,从而允许您根据需要在应用程序中显示或利用这些不同寻常的法律
此端点以结构化的 JSON 格式返回所有美国州的综合列表 每个州都包含在一个数组中,允许用户轻松访问和利用州名以进行后续请求
该端点需要一个状态标识符作为参数 用户必须指定他们想要检索不寻常法律的州以确保有针对性和相关的结果
响应被结构化为一个JSON数组,每个对象包含州名作为键,奇怪法律的数组作为值。该格式便于访问特定于请求州的法律
此端点提供指定州的单个突出的不寻常法律。响应包含州名作为键,法律描述作为值,便于展示一个显著的例子
用户可以通过选择特定州来自定义请求,使用“获取州的愚蠢法律”和“每州突出愚蠢法律”接口。这允许根据用户兴趣提供量身定制的响应
关键字段包括州名和法律描述的数组。每条法律以字符串形式呈现,提供关于该州奇怪法律的清晰简明信息
该API从各州的文档法律中获取数据,确保准确性 定期的更新和验证过程有助于维护提供信息的质量和相关性
典型的使用案例包括创建问答游戏、教育内容或突出奇怪法律的幽默文章 开发者可以利用该 API 吸引观众提供娱乐和信息丰富的内容