Skip to content

Estimated Spend By Show By Day Report

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

This endpoint utilizes a task system.

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

Result file format:

Field Type Example Description
Day string 2023-12-23 Date of the day in the format YYYY-mm-DD.
Advertiser string demoAdvertiser Name of the advertiser for the media content.
Show string The Show Name of the show.
Estimated Spend number 123 Estimated spend
Transcript string https://example.com URL to the show’s episode transcript
Ads number 5 Count of ads for the show per day.
Episodes number 10 Count of episodes for the show per day.
Genres string Investing,Business Genres of the show.
Read By string Host Read by, can be Host or Producer.
Media typeapplication/json
object
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
<= 255 characters
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
endDate

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

string

OK

Media typeapplication/json
object
id
string
status
string
url
string
Examplegenerated
{
"id": "example",
"status": "example",
"url": "example"
}

Invalid data

Unexpected error.

Media typeapplication/json
object
message

Nodejs Error

object
Examplegenerated
{
"message": {}
}