Skip to content

Estimated Spend by Day

POST
/api/public/advertisers/estimated-spend-by-day

Estimated ad spend per advertiser and day, split by host-read and producer-read ads.

This endpoint utilizes a task system.

Please read the description of Get status of file processing to understand how it works.

Estimated Spend by Day
curl --request POST \
--url https://backend.podscribe.ai/api/public/advertisers/estimated-spend-by-day \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "name": "example", "advertisers": [ "example" ], "startDate": "2026-04-15", "endDate": "2026-04-15" }'
Media typeapplication/json
name

Optional display name for the generated report. Shown in the Reports UI. Ignored when an identical cached report is reused; pass a new request (or wait for cache expiry) to apply a new name.

string
Allowed length: (≤ 255 chars)
advertisers
required

An array containing the advertiser names.

Array<string>
startDate

Start date timestamp, e.g., 2023-10-10, default is 12 months ago.

string<date>
endDate

End date timestamp, e.g., 2023-10-10, default is one week from today.

string<date>
Examplegenerated
{
"name": "example",
"advertisers": [
"example"
],
"startDate": "2026-04-15",
"endDate": "2026-04-15"
}

OK

Media typeapplication/json
id

ID of the file processing task.

string<uuid>
status

Task status: pending, done or failed.

Allowed values: pending done failed
url

Link to download the result file. Returned once the file is ready.

string<uri>
Response example
{
"status": "pending"
}
Field Type Example Description
Day string 2023-12-23T00:00:00.000Z Date of the day as an ISO 8601 timestamp.
Advertiser string demoAdvertiser Name of the advertiser for the media content.
Estimated Spend number 123 Estimated spend
Read By string Host Read by, can be Host or Producer.