The US Federal Prison Data API is designed to deliver structured access to statistical data regarding federal prisons in the United States. This API enables developers and analysts to retrieve specific metrics such as the number of federal prisons, total prison population, and more. The API is structured with dedicated endpoints for each data type, with support for querying by state or applying filters, ensuring precise and performant data retrieval for research, reporting, or application development.
This endpoint does not require any input parameters.
{"states":["Texas","California","Pennsylvania","Florida","West Virginia","Georgia","Illinois","Kentucky","North Carolina","Arizona","Colorado","Louisiana","Mississippi","New York","South Carolina","Minnesota","Oklahoma","Virginia","Alabama","Arkansas","Connecticut","Indiana","Michigan","New Jersey","Ohio","Hawaii","Kansas","Maryland","Massachusetts","Missouri","New Hampshire","Oregon","Tennessee","Washington","Wisconsin"]}
curl --location --request POST 'https://zylalabs.com/api/6679/us+federal+prison+data+api/9864/get+us+states+with+federal+prisons' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{}'
This endpoint does not require any input parameters.
{"state":"California","federal_prisons":13}
curl --location --request POST 'https://zylalabs.com/api/6679/us+federal+prison+data+api/9865/get+federal+prisons+by+state' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{"state":"Required"}'
This endpoint does not require any input parameters.
{"state":"California","camps":8}
curl --location --request POST 'https://zylalabs.com/api/6679/us+federal+prison+data+api/9866/get+camps+by+state' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{"state":"Required"}'
This endpoint does not require any input parameters.
{"state":"California","inmates":11235}
curl --location --request POST 'https://zylalabs.com/api/6679/us+federal+prison+data+api/9867/get+inmates+by+state' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{"state":"Required"}'
| Header | Description |
|---|---|
Authorization
|
[Required] Should be Bearer access_key. See "Your API Access Key" above when you are subscribed. |
No long-term commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.
The US Federal Prison Data API provides access to statistics about federal prisons, including the number of federal prisons, total prison population, and specific metrics related to prisons and camps across U.S. states.
The API supports flexible querying options, allowing users to filter data by state or apply other specific filters to retrieve precise information based on their needs.
The API documentation does not specify a request limit, but it is advisable to check for any usage policies or rate limits that may be implemented to ensure fair access for all users.
The API is structured with dedicated endpoints for different data types, including endpoints for retrieving information on federal prisons, camps, and population statistics.
Yes, the API is designed for developers and analysts, making it suitable for research, reporting, and application development, providing structured access to federal prison statistics.
Each endpoint returns specific statistics related to federal prisons. For example, the "get federal prisons by state" endpoint returns the number of federal prisons in a specified state, while the "get inmates by state" endpoint provides the total inmate count for that state.
The key fields in the response data include "state," which indicates the U.S. state queried, and specific metrics such as "federal_prisons," "camps," or "inmates," which provide the respective counts for that state.
The response data is structured in JSON format, with each response containing a state identifier and the corresponding numerical data. For example, a response might look like: {"state":"California","federal_prisons":13}.
The primary parameter used across the endpoints is the "state," which must be specified to retrieve data for that particular U.S. state. Users can obtain a list of valid states from the "get us states with federal prisons" endpoint.
Each endpoint provides distinct information: the "get us states with federal prisons" endpoint lists states, while the "get federal prisons by state," "get camps by state," and "get inmates by state" endpoints return counts of prisons, camps, and inmates, respectively, for the specified state.
Users can utilize the returned data for various applications, such as research, policy analysis, or reporting. For instance, the inmate count can inform studies on incarceration rates, while the number of federal prisons can aid in resource allocation discussions.
Typical use cases include academic research on criminal justice, government reporting on prison populations, and application development for tools that track or analyze federal prison statistics across states.
The API sources its data from official federal prison statistics, ensuring a high level of accuracy. Regular updates and quality checks are likely implemented to maintain data integrity, although specific processes are not detailed in the documentation.
To obtain your API key, you first need to sign in to your account and subscribe to the API you want to use. Once subscribed, go to your Profile, open the Subscription section, and select the specific API. Your API key will be available there and can be used to authenticate your requests.
You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.
If you don’t cancel before the 7th day, your free trial will end automatically and your subscription will switch to a paid plan under the same plan you originally subscribed to, meaning you will be charged and gain access to the API calls included in that plan.
The free trial ends when you reach 50 API requests or after 7 days, whichever comes first.
No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.
Yes, we offer a 7-day free trial that allows you to make up to 50 API calls at no cost, so you can test our APIs without any commitment.
Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund
Service Level:
100%
Response Time:
2,724ms
Service Level:
99%
Response Time:
1,044ms
Service Level:
100%
Response Time:
52ms
Service Level:
100%
Response Time:
53ms
Service Level:
100%
Response Time:
53ms
Service Level:
100%
Response Time:
4,115ms
Service Level:
100%
Response Time:
52ms
Service Level:
100%
Response Time:
6,613ms
Service Level:
100%
Response Time:
1,042ms
Service Level:
100%
Response Time:
3,264ms
Service Level:
100%
Response Time:
50ms
Service Level:
100%
Response Time:
45ms
Service Level:
100%
Response Time:
15ms
Service Level:
100%
Response Time:
32ms
Service Level:
100%
Response Time:
20ms
Service Level:
100%
Response Time:
113ms
Service Level:
100%
Response Time:
89ms
Service Level:
100%
Response Time:
359ms
Service Level:
100%
Response Time:
608ms
Service Level:
100%
Response Time:
69ms