Search API

Parameters

Name Expected Value Example
artist Space separate words
(or)
+ separate words
/artist/Alicia+Keys/
(or)
/artist/Alicia Keys/
title Space separate words
(or)
+ separate words
/title/dont lie/
(or)
/title/dont+lie/
contenttypes Returns only MP3 results
(or)
Returns only Ringtone results
(or)
Pipe '|' separate words for both
/contenttypes/mp3/
(or)
/contenttypes/real/
(or both)
/contenttypes/mp3|real/
category Valid category name /category/rock/
keywords Space separate words
(or)
+ separate words
/keywords/justin cristina sexyback/
(or)
/keywords/justin+cristina+sexyback/
start Start index non negative index /start/0/
numresults Integer number /numresults/30/

partner

ID partner /partner/XXX/  you must replace the, 'XXX' in the URL with your partner ID number

URL Examples

!Attention! In order to view the URL links below, you need to pass your API key through the header of your web browser. This means that you should already have an API Key. (This was provided to you in the email you got when you signed up as a Partner).

Here are the Step-By-Step Instructions

1. Download and install Mozilla Firefox if it is not already installed on your system. (getfirefox.com)
2. Download the 'Modify Headers' Firefox extension: https://addons.mozilla.org/en-US/firefox/addon/967
3. Add the extension by going to, 'File' -> 'Open' and select the downloaded extension file from your computer.
4. Run the extension by going to, 'Tools' -> 'Modify Headers'
5. In the upper left of the extension select 'Add' from the dropdown.
6. In the 'Name' Field enter "API-Key" (without quotation marks)
7. In the 'Value' field enter "your api key" (without quotation marks)
8. Click 'Add'
9. Keep the "Modify Headers" extension box open throughout your session, otherwise you will receive a "403 Developer Inactive" error. In this case, you must run the extension again from 'Tools' -> 'Modify Headers.' The input data should be saved; if not, please repeat steps 3 through 8.

http://api.dada-ent.com/search/artist/santana/contenttypes/ringtone/
http://api.dada-ent.com/search/artist/justin%20timberlake/contenttype/mp3/start/0/numResults/5
http://api.dada-ent.com/search/keywords/justin+cristina/contenttypes/real/
http://api.dada-ent.com/chart/category/rock/contenttype/real

Response Examples

Success Response


http://api.dada-ent.com/search/artist/justin timberlake/contenttype/real/start/0/numresults/3

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<response>
<searchRequest>
<artist><![CDATA[justin timberlake]]></artist>
<contentType><![CDATA[real]]></contentType>
<start><![CDATA[0]]></start>
<numResults><![CDATA[3]]></numResults>
<urlPath><![CDATA[/search/artist/justin timberlake/contenttype/real/start/0/numresults/3]]></urlPath>
</searchRequest>
<totalResultCount>3</totalResultCount>
<queryDuration>0.0025</queryDuration>
<status>success</status>
<results>
<result>
<contentId><![CDATA[77478]]></contentId>
<mediaId><![CDATA[3705470]]></mediaId>
<artistId><![CDATA[1155]]></artistId>
<title><![CDATA[What Goes Around.../...Comes Around]]></title>
<artist><![CDATA[Justin Timberlake]]></artist>
<isReal><![CDATA[Y]]></isReal>
<isMp3><![CDATA[N]]></isMp3>
<artisturl><![CDATA[http://us.dada.net/music/justintimberlake/]]></artisturl>
<landingpageartisturl><![CDATA[http://offer.opendada.com/search-api/landing.php?artist=Justin+Timberlake&contenttype=real&partner=XXX]]></landingpageartisturl>
<landingpagecontenturl><![CDATA[http://offer.opendada.com/search-api/landing.php?artist=Justin+Timberlake&contenttype=real&partner=XXX&contentID=77478&title=What+Goes+Around...%2F...Comes+Around]]></landingpagecontenturl>
<mobilepagecontenturl><![CDATA[http://us.sso.dada.net/wap/landing.php?artist=Justin+Timberlake&contenttype=real&partner=XXX&contentID=77478&title=What+Goes+Around...%2F...Comes+Around]]></mobilepagecontenturl>
<mobilepageartisturl><![CDATA[http://us.sso.dada.net/wap/landing.php?artist=Justin+Timberlake&contenttype=real&partner=XXX]]></mobilepageartisturl>
<previewURL><![CDATA[http://flv.dada.net/ngx/audio/mp3/2a/33/3705470.mp3]]></previewURL>
<imageMediumURL><![CDATA[http://preview.dada.net/mobi/7/7/4/77478/77478_m.gif]]></imageMediumURL>
</result>
<result>
<contentId><![CDATA[76563]]></contentId>
<mediaId><![CDATA[0]]></mediaId>
<artistId><![CDATA[1155]]></artistId>
<title><![CDATA[Sexy Back (Go Head Be Gone With It)]]></title>
<artist><![CDATA[Justin Timberlake]]></artist>
<isReal><![CDATA[Y]]></isReal>
<isMp3><![CDATA[N]]></isMp3>
<artisturl><![CDATA[http://us.dada.net/music/justintimberlake/]]></artisturl>
<landingpageartisturl><![CDATA[http://offer.opendada.com/search-api/landing.php?artist=Justin+Timberlake&contenttype=real&partner=XXX]]></landingpageartisturl>
<landingpagecontenturl><![CDATA[http://offer.opendada.com/search-api/landing.php?artist=Justin+Timberlake&contenttype=real&partner=XXX&contentID=76563&title=Sexy+Back+%28Go+Head+Be+Gone+With+It%29]]></landingpagecontenturl>
<mobilepagecontenturl><![CDATA[http://us.sso.dada.net/wap/landing.php?artist=Justin+Timberlake&contenttype=real&partner=XXX&contentID=76563&title=Sexy+Back+%28Go+Head+Be+Gone+With+It%29]]></mobilepagecontenturl>
<mobilepageartisturl><![CDATA[http://us.sso.dada.net/wap/landing.php?artist=Justin+Timberlake&contenttype=real&partner=XXX]]></mobilepageartisturl>
<previewURL><![CDATA[http://flv.dada.net/ngx/audio/mp3/cf/cd/0.mp3]]></previewURL>
<imageMediumURL><![CDATA[http://preview.dada.net/mobi/7/6/5/76563/76563_m.gif]]></imageMediumURL>
</result>
<result>
<contentId><![CDATA[72527]]></contentId>
<mediaId><![CDATA[3704214]]></mediaId>
<artistId><![CDATA[1155]]></artistId>
<title><![CDATA[Summer Love/Set The Mood Prelude]]></title>
<artist><![CDATA[Justin Timberlake]]></artist>
<isReal><![CDATA[Y]]></isReal>
<isMp3><![CDATA[Y]]></isMp3>
<artisturl><![CDATA[http://us.dada.net/music/justintimberlake/]]></artisturl>
<landingpageartisturl><![CDATA[http://offer.opendada.com/search-api/landing.php?artist=Justin+Timberlake&contenttype=real&partner=XXX]]></landingpageartisturl>
<landingpagecontenturl><![CDATA[http://offer.opendada.com/search-api/landing.php?artist=Justin+Timberlake&contenttype=real&partner=XXX&contentID=72527&title=Summer+Love%2FSet+The+Mood+Prelude]]></landingpagecontenturl>
<mobilepagecontenturl><![CDATA[http://us.sso.dada.net/wap/landing.php?artist=Justin+Timberlake&contenttype=real&partner=XXX&contentID=72527&title=Summer+Love%2FSet+The+Mood+Prelude]]></mobilepagecontenturl>
<mobilepageartisturl><![CDATA[http://us.sso.dada.net/wap/landing.php?artist=Justin+Timberlake&contenttype=real&partner=XXX]]></mobilepageartisturl>
<previewURL><![CDATA[http://flv.dada.net/ngx/audio/mp3/16/e3/3704214.mp3]]></previewURL>
<imageMediumURL><![CDATA[http://preview.dada.net/mobi/7/2/5/72527/72527_m.gif]]></imageMediumURL>
</result>
</results>
</response>

PHP Code Example

$key = "your-api-key";
$url="http://api.dada-ent.com/search/".$vars;
$ch = curl_init($url);
$header = array();
$header[] = "API-Key:$key";
curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
curl_setopt($ch, CURLOPT_VERBOSE, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$res = curl_exec($ch);
if(curl_errno($ch)) {
curl_close($ch);
print "error";
}
curl_close($ch);
print "result: $res";




Perl Code Example

use LWP::UserAgent;
use HTTP::Request;
use HTTP::Request::Common;
my $key = "your-api-key";
my $ua = new LWP::UserAgent;
$uri = 'http://api.dada-ent.com/search/artist/alicia%20keys/contenttype/ringtone/corecontent/1/';
my $ua = LWP::UserAgent->new;
my $req = HTTP::Request->new(GET => $uri);
$req->header("API-Key" => $key);
my $output=$ua->request($req)->content;
print $output;




Ruby Code Sample

require 'net/http'
require 'uri'

API_KEY = 'api-key'
url = URI.parse('http://api.dada-ent.com/')
response = Net::HTTP.start(url.host) do |http|
http.get('/search/artist/justin+timberlake/contenttype/ringtone/',
'API-Key' => API_KEY)
end
puts response.body




Comments

  1. marcusjones20002 years ago

    any .Net examples

  2. Robpain2 years ago

    what is this 403 Developer Inactive

  3. Martin2 years ago

    why is it 403 Developer Inactive?

  4. Russell2 years ago

    Those of you getting 403 Developer Inactive messages, has your API key been approved?

  5. marcusjones20002 years ago

    Any fix to the 403 Developer Inactive message?

  6. marcusjones20002 years ago

    Is there a list of Valid category names?

  7. Anoop2 years ago

    With regards to the 403 Developer Inactive message: Please be aware that the "Modify Headers" box within the Mozilla Firefox browser must remain open during your session in order to access the content. You should not receive this message if this is so (and you have an active API key). For directions as to how to pass your API key through the Mozilla Headers please see:
    http://www.opendada.com/docs/Passing_your_API_Key_through_the_Header_of_your_Web_Browser_Instructions

  8. haicharlie1431 year ago

    Is this "Modify Headers" settings have to be done only once or each time we have to implement this, to fetch the XML response for a URL?.

  9. fotochatter1 year ago

    Still getting 403, with modify headers running, and a "supposed active" API key. status still says "Waiting tho"

  10. dkovit10 months ago

    Where can I find a list of Categories? Rap, Reggae, Hip+Hop don't work.

  11. dkovit10 months ago

    scratch that it's on the next page. Thought there are way more categories on Dada that are not listed on the charts api page. Will there be more soon?

  12. Hostyle Gospel9 months ago

    Hi,

    Does anyone know why I'm getting the 403 message? I have my Modify Headers running but I'm still getting this message. Can anyone help me? Thank You

  13. bimo hery prabowo1 month ago

    jan ra mutu blas..header...header opo

  14. bimo hery prabowo1 month ago

    <a href="http://bimoweb.com">tutorial php</a>

Please sign in to post a comment.

Docs Navigation