Estimated Spend By Show By Day Report
POST
/api/public/advertisers/estimated-spend-by-show-by-day
const url = 'https://backend.podscribe.ai/api/public/advertisers/estimated-spend-by-show-by-day';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"example","advertisers":["example"],"startDate":null,"endDate":null}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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. |
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”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
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
Responses
Section titled “Responses”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": {}}