Returns the latest news and activity feed from all projects the user has access to.
Query parameters
-
Filter news by specific project
-
Filter news before this date
-
Filter news after this date
-
Page number for pagination
Default value is
1. -
Number of news items per page
Default value is
50. -
Filter news by specific team member
-
Filter news by task type
-
Filter news by task status
-
Filter news by specific episode
-
Show only news related to preview uploads
Default value is
false.
GET
/data/projects/news
curl
curl -X GET "http://api.example.com/data/projects/news?project_id=a24a6ea4-ce75-4665-a070-57453082c25&before=2022-07-12&after=2022-07-12&page=1&limit=50&person_id=a24a6ea4-ce75-4665-a070-57453082c25&task_type_id=a24a6ea4-ce75-4665-a070-57453082c25&task_status_id=a24a6ea4-ce75-4665-a070-57453082c25&episode_id=a24a6ea4-ce75-4665-a070-57453082c25&only_preview=false" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/json"
import requests
url = "http://api.example.com/data/projects/news"
headers = {
"Authorization": "Bearer YOUR_API_TOKEN",
"Accept": "application/json"
}
params = {
"project_id": "a24a6ea4-ce75-4665-a070-57453082c25",
"before": "2022-07-12",
"after": "2022-07-12",
"page": 1,
"limit": 50,
"person_id": "a24a6ea4-ce75-4665-a070-57453082c25",
"task_type_id": "a24a6ea4-ce75-4665-a070-57453082c25",
"task_status_id": "a24a6ea4-ce75-4665-a070-57453082c25",
"episode_id": "a24a6ea4-ce75-4665-a070-57453082c25",
"only_preview": false
}
payload = None
response = requests.get(
url,
headers=headers,
params=params,
json=payload
)
response.raise_for_status()
if response.content:
print(response.json())
curl \
--request GET 'http://api.example.com/data/projects/news' \
--header "Authorization: $API_KEY"
Response examples (200)
{
"data": [
{}
],
"stats": {},
"total": 42
}