MTVN Content API Forums

API Sample Applications and Links

RSS Feed

PHP - Artist Browse / Artist Videos Example

  1. Hello,

    I have created a script that loops through the entire alphabet, making a total of 27 calls to Artist Browse. It then checks each artist against my database to determine if there is a match. If a match exists, it then calls the Artist Videos method to obtain the information on all available videos for that artist. The details are then stored in a database so that they can easily be displayed on individual artist pages at one of my websites, www.popstar.com. This script reduces the load between my server and MTV's since it only needs to be done once on any particular schedule (per day, per week, per month) if you set it up as a cron job. Below is an example of that script, stripping out any information that is proprietary to my website; it is a simple script and should prove useful to anyone using PHP. (I'm sure there are many ways this script could be modified or expanded to serve different needs.)

    Enjoy!

    https://server.enetwizard.biz/Script-Examples/MTV_Videos.php

  2. Russ12 months ago

    Very cool!
    I also created a module for php-Nuke or post Nuke-php (SLAED) CMS - beta version, but seems to be working:
    examples:

    http://www.mvs1.com
    http://www.elols.com
    Component for Joomla is coming soon

  3. rswfire9 months ago

    Please note the link above is being removed since it is no longer applicable with the news today that MTV will be disabling all of their embeddable videos in early March. It goes without saying that I am very disappointed with this news and I think that it is a remarkably short-sighted view on MTV's part. I guess they believe now that MTVMusic.com is doing fairly well that it will continue to do so and they no longer need us. Given some time, I've no doubt they'll realize just how foolish of a decision this was, and when they do decide to make their API more accessible in the future, I for one do not intend to participate a second time. "Fool me once, shame on you. Fool me twice, shame on me."

New comments are not being accepted at this time.