An API endpoint is a network-accessible URL that receives requests for specific data. In public-data analysis, endpoints support regularly refreshed datasets without repeated manual downloads. section 10.3.3
A practical endpoint workflow is:
- Use a data portal to identify filters and generate an endpoint URL. section 10.3.3
- Modify query parameters, such as dates or record descriptors, for the required subset. section 10.3.3
- Query the URL with Python’s requests library, parse the JSON response, and continue the extraction pipeline. section 10.3.3
Daily rat-sighting updates
A city government can query the NYC Open Data 311 endpoint for records whose descriptor is “Rat Sighting” within a chosen date range, then refresh its predictive-model data. section 10.3.3
Figure 10.19 The NYC Open Data portal allows you to filter, aggregate, and create simple charts.
Inspect how the NYC Open Data portal filters, aggregates, and prepares data access. section 10.3.3

























