French Code Penal - RapidAPI
Overview
Welcome to the French Code Penal API on RapidAPI! This API provides a straightforward way to retrieve human-readable descriptions from law codes, making legal content more accessible and user-friendly.
How to Use
Authentication
To use this API, you’ll need to sign up on RapidAPI and obtain your API key. Include this key in the headers of your requests for authentication.
Base URL
The base URL for this API is: https://french-code-penal3.p.rapidapi.com/get_law/
Endpoints
Retrieve Law Description
Endpoint:
bash
/get_law/{law}
Method:
sql
GET
Parameters:
{law}: Replace with the desired law code.
Example Request:
http
GET https://french-code-penal3.p.rapidapi.com/get_law/111-1
Example Response:
json
Copy code
{
“law”: “111-1”,
“description”: “Les infractions pénales sont classées, suivant leur gravité, en crimes, délits et contraventions.”
}
Invalid law codes or server errors will result in appropriate HTTP status codes and error details.
Deploy this Code Penal API on RapidAPI to leverage its ease of use, scalability, and integration capabilities.
Happy coding!