# Get news by league Returns a paginated list of news by league id Endpoint: GET /news-by-league Version: 2.0.7 Security: bearerAuth ## Query parameters: - `id` (integer, required) Filter by league ID Example: 618 - `page` (integer) Page number Example: 1 ## Response 200 fields (application/json): - `status` (string) Example: "success" - `pagination` (object,null) Pagination info if applicable - `pagination.total_count` (integer) Total number of items across all pages Example: 10 - `pagination.page_size` (integer) Number of items per page Example: 10 - `pagination.page_count` (integer) Total number of pages available Example: 1 - `pagination.current_page` (integer) Current page number (1-based index) Example: 1 - `errors` (object,null) - `response` (array,null) - `response.id` (integer) Example: 177544 - `response.title` (string) Example: "Barcelona sensation Lamine Yamal to take next step forward in injury recovery" - `response.image` (string) Example: "https://people-api.pro/uploads/01-01-2025/6526bcca719e3296421afca86a478292.jpg" - `response.alias` (string) Example: "2025-01-01-barcelona-sensation-lamine-yamal-to-take-next-step-forward-in-injury-recovery" - `response.original_url` (string) Example: "https://www.football-espana.net/2025/01/01/barcelona-sensation-lamine-yamal-to-take-next-step-forward-in-injury-recovery" - `response.lang` (string) Example: "en" - `response.published_at` (string) Example: "01-01-2025 23:17:12" - `response.categories` (array) List of category IDs Example: [3] - `response.leagues` (array) List of league IDs Example: [52] - `response.teams` (array) List of team IDs Example: [820] ## Response 400 fields (application/json): - `status` (string) Example: "error" - `pagination` (object,null) - `errors` (array,null) - `errors.type` (string) Example: "validation_error" - `errors.data` (object) - `response` (object,null) ## Response 500 fields (application/json): - `status` (string) Example: "error" - `pagination` (object,null) - `errors` (array,null) - `errors.type` (string) Example: "validation_error" - `errors.data` (object) - `response` (object,null)