Here's a simple guide for not that simple extractor...
This guide works for Analytics API and for accounts which don't have Content Owner ID (feel free to update the site with other configs).
- In SAPI, create bucket sys.c-ex-youtube and in this bucket create your config table (main in this example).
The config tbale needs to include these columns: endpoint, params, dataType, dataField, recursionParams, romId, api
. You can find sample config for Analytics API in the attached file (you just need to fill in your Channel ID). This config will download Views per Date from 5 days ago to 1 day ago. Note
is the name of the destination table, rowId
can be anything uniquely defining the row in CSV file and api
defines which API should be used. You can find more details in Apiary
Now you just need to let user (with sufficient privileges) to authorize YouTube extractor via this link: https://syrup.keboola.com/ex-youtube/oauth?token=YOUR-KBC-TOKEN&config=NAME-OF-YOUR-CONFIG-TABLE. Just fill in the token (i.e. Master Token) and name of you configuration table (main in our example) and send the link to the user.
After the authorization, you can add Extractor to the Orchestrator and run it.
That should do it!
ps: YouTube extractor, or rather YouTube API, is a bit tricky, so don't hesitate to contact our support if you encounter any issues.