美国愚蠢法律信息API允许开发者、研究人员和爱好者探索各州记录的奇怪、过时或不寻常的法律。这个API不是通过单个庞大的请求获取所有数据,而是设计了将州与其关联法律分开的端点,使其在不同用例中高效且灵活
[
{
"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/9856/us+stupid+laws+info+api/18523/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/9856/us+stupid+laws+info+api/18525/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/9856/us+stupid+laws+info+api/18527/highlighted+stupid+laws+per+state' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{"State":"Required"}'
| 标头 | 描述 |
|---|---|
授权
|
[必需] 应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。 |
无长期承诺。随时升级、降级或取消。 免费试用包括最多 50 个请求。
美国愚蠢法律信息API提供了一系列不寻常且过时的法律,以美国州为分类,使用户能够访问与每个州相关的特定法律
API 以结构化格式返回数据,通常是 JSON,包括关于每个州及其相关的“愚蠢法律”的详细信息
开发人员可以使用API创建教育工具、趣味游戏或法律研究应用程序,突出奇怪的法律,使其成为学习和娱乐的有趣资源
该API的输出包括'州' '法律描述'和可能的'法律ID'等字段,提供有关每项法律及其来源的明确信息
您可以通过向其端点发出请求来集成API以获取所有州或特定州的数据,这样您就可以根据需要在您的应用程序中显示或利用不寻常的法律
此端点以结构化的JSON格式返回所有美国州的综合列表,使用户能够方便地访问和利用州名以进行进一步的法律查询
此端点需要一个作为参数的州标识符 用户必须指定他们想要检索不寻常法律的州以确保结果的针对性和相关性
响应结构为一个对象数组,其中每个对象包含州名作为键和突出的法律描述作为值,便于识别特定州的关键法律
该端点提供特定于所选美国州的奇怪和过时法律的列表,包括每项法律的详细描述,允许用户探索独特的法律奇趣
用户可以通过在使用“获取特定州的愚蠢法律”或“按州突出显示的愚蠢法律”端点时选择具体州来定制请求,从而根据他们的兴趣获取量身定制的数据
响应包括州名和一系列法律描述等字段,提供有关该州不寻常法律的清晰和有组织的信息
典型的使用案例包括创建问答游戏 教育内容或法律研究工具 这些工具突出奇怪的法律 使得这个API成为用户一个有趣且信息丰富的资源
该API从文档化的法律参考资料中获取数据,并通过定期更新和质量检查确保准确性,为用户提供有关不寻常法律的可靠信息
服务级别:
100%
响应时间:
56ms
服务级别:
100%
响应时间:
55ms
服务级别:
100%
响应时间:
57ms
服务级别:
100%
响应时间:
52ms
服务级别:
100%
响应时间:
56ms
服务级别:
100%
响应时间:
1,384ms
服务级别:
100%
响应时间:
55ms
服务级别:
100%
响应时间:
5,655ms
服务级别:
100%
响应时间:
56ms
服务级别:
100%
响应时间:
7,909ms