Skip to content

Instantly share code, notes, and snippets.

@lcherone
Created January 8, 2018 18:09
Show Gist options
  • Save lcherone/7827c79823ac5742a0b5e6a2071d8b11 to your computer and use it in GitHub Desktop.
Save lcherone/7827c79823ac5742a0b5e6a2071d8b11 to your computer and use it in GitHub Desktop.
Curl requests to access reelgood.com API

Curl requests to access reelgood.com API

<?php
$options = [
    'nocache' => 'true',
    'kind' => 0,
    'minimumScore' => 0,
    'sources' => [
        'amazon_prime',
        'fx_tveverywhere',
        'hbo',
        'netflix',
        'showtime',
        'starz',
    ],
    'free' => 'true'
];

$options['sources'] = implode(',', $options['sources']);


$ch = curl_init();                   
curl_setopt($ch, CURLOPT_URL, "https://api.reelgood.com/v1/roulette/netflix?".http_build_query($options));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);                                                                      
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json; charset=utf-8')); 
curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
curl_setopt($ch, CURLOPT_FAILONERROR, true);

$result = curl_exec($ch);

if (curl_error($ch)) {
    exit(curl_error($ch));
}

$result = json_decode($result);

if (!isset($result->id)) {
    die('No random id returned.');
}

//
$options = [
    'sources' => $options['sources'],
    'free' => $options['free'],
];

curl_setopt($ch, CURLOPT_URL, 'https://api.reelgood.com/v1/show/'.$result->id.'?'.http_build_query($options));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);                                                                      
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json; charset=utf-8')); 
curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
curl_setopt($ch, CURLOPT_FAILONERROR, true);

$result = curl_exec($ch);

if (curl_error($ch)) {
    exit(curl_error($ch));
}

$result = json_decode($result);

echo '<pre>'.print_r($result, true).'</pre>';

Result:

stdClass Object
(
    [id] => 74b17d01-020c-49e6-8535-594b6dc14395
    [slug] => dicte-2013
    [title] => Dicte
    [overview] => Newly divorced journalist returns to her hometown to restart her life and work through her past.
    [trailer] => stdClass Object
        (
            [site] => youtube
            [key] => spZFq3lqwpk
            [url] => 
        )

    [imdb_rating] => 7.3
    [has_poster] => 1
    [has_backdrop] => 1
    [season_count] => 3
    [classification] => 16+
    [genres] => Array
        (
            [0] => 12
            [1] => 10
            [2] => 3
        )

    [tracking] => 
    [released_on] => 2013-01-07T00:00:00
    [completed_on] => 2016-10-24T18:00:00+00:00
    [returning_on] => 
    [unwatched] => 30
    [coming_on] => 
    [has_new] => 
    [recommended_episode] => stdClass Object
        (
            [episode_id] => b0b32b6a-34d4-44c7-9d1a-5db346f2a3c0
            [season_id] => a1b4f284-bdf0-4fbd-835f-90a1a067c602
        )

    [seasons] => Array
        (
            [0] => stdClass Object
                (
                    [id] => b33012f8-a43d-4a02-b89d-f45559b34098
                    [number] => 3
                    [aired_at] => 
                    [completed_at] => 
                    [episodes_unwatched] => 10
                    [availability] => stdClass Object
                        (
                            [purchase_available] => 
                            [sources] => Array
                                (
                                    [0] => stdClass Object
                                        (
                                            [source_name] => netflix
                                            [access_type] => 2
                                        )

                                )

                        )

                    [episodes] => Array
                        (
                            [0] => a6144f3f-8022-4ece-a20f-2c0af96eec79
                            [1] => 0769431e-1ddd-4f7a-bf33-2a122987e43e
                            [2] => f8e46bb2-ff1b-4865-bdfe-bc4dcce5c288
                            [3] => ede4029c-9905-4bf9-84f1-8659672e3576
                            [4] => f713f56b-3970-4416-87d3-1959f678f6de
                            [5] => 2b284b61-4fab-4f43-8e95-36c1f4e4f234
                            [6] => 7e13ce1e-4c0d-4d4d-8daa-7d2d134fec3d
                            [7] => 97052385-9ac3-4b20-be5e-9f41c35f5aa2
                            [8] => aedb8588-122f-4643-81ca-542944c0edb9
                            [9] => b9c4c220-ee63-405c-aca5-bf1fba253b84
                        )

                )

            [1] => stdClass Object
                (
                    [id] => 8265d5f9-0054-40ed-8707-42410899f717
                    [number] => 2
                    [aired_at] => 
                    [completed_at] => 
                    [episodes_unwatched] => 10
                    [availability] => stdClass Object
                        (
                            [purchase_available] => 
                            [sources] => Array
                                (
                                )

                        )

                    [episodes] => Array
                        (
                            [0] => a2953df2-e4e0-4b2a-b293-e45aa84cf5ac
                            [1] => 352339ff-bc93-417d-a8da-37f6eae1fe91
                            [2] => f9599ffd-374d-449f-b72a-1d06359e88ea
                            [3] => 30881662-40e9-4329-8220-e4a6d3329490
                            [4] => 59fcdf4b-7d0d-41b6-9835-ad63d54cac7d
                            [5] => caebce6f-fd7b-48af-99af-ccb0804b50f7
                            [6] => 6ee89207-fe68-4b18-8f7e-0fba3c1bf149
                            [7] => 8d4717ba-f838-423e-82b6-b73a2aaab841
                            [8] => 1f00bab3-d601-47a4-89ae-68a700894cc1
                            [9] => 0e6f3962-2999-4a6c-a1c2-10967c103b04
                        )

                )

            [2] => stdClass Object
                (
                    [id] => a1b4f284-bdf0-4fbd-835f-90a1a067c602
                    [number] => 1
                    [aired_at] => 
                    [completed_at] => 
                    [episodes_unwatched] => 10
                    [availability] => stdClass Object
                        (
                            [purchase_available] => 
                            [sources] => Array
                                (
                                    [0] => stdClass Object
                                        (
                                            [source_name] => netflix
                                            [access_type] => 2
                                        )

                                )

                        )

                    [episodes] => Array
                        (
                            [0] => b0b32b6a-34d4-44c7-9d1a-5db346f2a3c0
                            [1] => ec07c876-f928-41a2-a4be-8e4c8d86d575
                            [2] => 87b86688-256b-4708-bfe2-2044b2c1f9a6
                            [3] => d5e332b6-fcab-4f09-a757-fcf575bc8e44
                            [4] => c589b634-860c-446f-aa0b-4ee1c27d1004
                            [5] => 4d40f035-70c7-4eb2-950a-fa6fc7df31f2
                            [6] => 23eca1a3-2962-4e28-9341-3bfb65647d27
                            [7] => 02c00bef-8916-49e6-9199-e83cc1b51a7b
                            [8] => 50f48799-7321-4e3a-a749-e4ef47db0fad
                            [9] => 60cd7540-0e9d-42a1-a4d1-1df20055eb79
                        )

                )

        )

    [episodes] => stdClass Object
        (
            [b9c4c220-ee63-405c-aca5-bf1fba253b84] => stdClass Object
                (
                    [season_id] => b33012f8-a43d-4a02-b89d-f45559b34098
                    [title] => Episode 10
                    [overview] => 
                    [number] => 10
                    [sequence_number] => 3.001
                    [watched] => 
                    [has_screenshot] => 
                    [aired_at] => 2016-10-24T18:00:00+00:00
                    [availability] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [source_id] => netflix-netflix-subscription
                                    [source_name] => netflix
                                    [access_type] => 2
                                    [source_data] => stdClass Object
                                        (
                                            [links] => stdClass Object
                                                (
                                                    [web] => http://www.netflix.com/title/70289506
                                                    [ios] => nflx://www.netflix.com/Browse?q=action%3Dview_details%26target_url%3Dhttp%253A%252F%252Fmovi.es%252FVpHmc
                                                    [android] => nflx://www.netflix.com/Browse?q=action%3Dplay%26source%3Dmerchweb%26target_url%3Dhttp%3A%2F%2Fmovi.es%2FWUdao
                                                )

                                            [references] => stdClass Object
                                                (
                                                    [web] => stdClass Object
                                                        (
                                                            [episode_id] => 70289506
                                                        )

                                                )

                                        )

                                )

                        )

                )

            [aedb8588-122f-4643-81ca-542944c0edb9] => stdClass Object
                (
                    [season_id] => b33012f8-a43d-4a02-b89d-f45559b34098
                    [title] => Episode 9
                    [overview] => 
                    [number] => 9
                    [sequence_number] => 3.0009
                    [watched] => 
                    [has_screenshot] => 
                    [aired_at] => 2016-10-17T18:00:00+00:00
                    [availability] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [source_id] => netflix-netflix-subscription
                                    [source_name] => netflix
                                    [access_type] => 2
                                    [source_data] => stdClass Object
                                        (
                                            [links] => stdClass Object
                                                (
                                                    [web] => http://www.netflix.com/title/70289506
                                                    [ios] => nflx://www.netflix.com/Browse?q=action%3Dview_details%26target_url%3Dhttp%253A%252F%252Fmovi.es%252FVpHmc
                                                    [android] => nflx://www.netflix.com/Browse?q=action%3Dplay%26source%3Dmerchweb%26target_url%3Dhttp%3A%2F%2Fmovi.es%2FWUdan
                                                )

                                            [references] => stdClass Object
                                                (
                                                    [web] => stdClass Object
                                                        (
                                                            [episode_id] => 70289506
                                                        )

                                                )

                                        )

                                )

                        )

                )

            [97052385-9ac3-4b20-be5e-9f41c35f5aa2] => stdClass Object
                (
                    [season_id] => b33012f8-a43d-4a02-b89d-f45559b34098
                    [title] => Episode 8
                    [overview] => The police choose to believe Søren Rams Dahl's story and agree to give the money back to the malicious as to apprehend him, as he fetches money. But something goes wrong and a mastermind is perhaps not so easy to fool? Benedicte have a suspicion that the robbery in Tivoli Freedom must be connected to a person with a massive gambling debts. She therefore occupy a compulsive gambler the environment with a visit to a CCG gambling den, where she is exposed to something she never would have dared to predict. Anne constantly working on his new work in Geneva, and it puts her new life as familiemor on standby, which frustrates Torsten, now stands alone with the twins.
                    [number] => 8
                    [sequence_number] => 3.0008
                    [watched] => 
                    [has_screenshot] => 
                    [aired_at] => 2016-10-10T18:00:00+00:00
                    [availability] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [source_id] => netflix-netflix-subscription
                                    [source_name] => netflix
                                    [access_type] => 2
                                    [source_data] => stdClass Object
                                        (
                                            [links] => stdClass Object
                                                (
                                                    [web] => http://www.netflix.com/title/70289506
                                                    [ios] => nflx://www.netflix.com/Browse?q=action%3Dview_details%26target_url%3Dhttp%253A%252F%252Fmovi.es%252FVpHmc
                                                    [android] => nflx://www.netflix.com/Browse?q=action%3Dplay%26source%3Dmerchweb%26target_url%3Dhttp%3A%2F%2Fmovi.es%2FWUdam
                                                )

                                            [references] => stdClass Object
                                                (
                                                    [web] => stdClass Object
                                                        (
                                                            [episode_id] => 70289506
                                                        )

                                                )

                                        )

                                )

                        )

                )

            [7e13ce1e-4c0d-4d4d-8daa-7d2d134fec3d] => stdClass Object
                (
                    [season_id] => b33012f8-a43d-4a02-b89d-f45559b34098
                    [title] => Episode 7
                    [overview] => Anne, Torsten og Rose har taget Dicte med i Tivoli Friheden for at muntre hende op. Hun er desillusioneret og ulykkelig, og da der pludselig er blå blink og politifolk overalt, trækker hun bare på skuldrene. Men hvorfor ser Dicte en grædende røver på Tivoli Frihedens dametoilet? På redaktionen kæmper Steffen ihærdigt for at genetablere et samarbejde mellem Dicte og Bo. Tanken om at blive mor fylder meget for Rose, men hun må nu også samle sig mod til at konfrontere faderen til barnet - men hvem er han?
                    [number] => 7
                    [sequence_number] => 3.0007
                    [watched] => 
                    [has_screenshot] => 
                    [aired_at] => 2016-10-03T18:00:00+00:00
                    [availability] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [source_id] => netflix-netflix-subscription
                                    [source_name] => netflix
                                    [access_type] => 2
                                    [source_data] => stdClass Object
                                        (
                                            [links] => stdClass Object
                                                (
                                                    [web] => http://www.netflix.com/title/70289506
                                                    [ios] => nflx://www.netflix.com/Browse?q=action%3Dview_details%26target_url%3Dhttp%253A%252F%252Fmovi.es%252FVpHmc
                                                    [android] => nflx://www.netflix.com/Browse?q=action%3Dplay%26source%3Dmerchweb%26target_url%3Dhttp%3A%2F%2Fmovi.es%2FWUdal
                                                )

                                            [references] => stdClass Object
                                                (
                                                    [web] => stdClass Object
                                                        (
                                                            [episode_id] => 70289506
                                                        )

                                                )

                                        )

                                )

                        )

                )

            [2b284b61-4fab-4f43-8e95-36c1f4e4f234] => stdClass Object
                (
                    [season_id] => b33012f8-a43d-4a02-b89d-f45559b34098
                    [title] => Episode 6
                    [overview] => Kort efter episoden med den skizofrene pige, finder et identisk drab på en hjerneskadet pige fra børneafdelingen sted. Nina og Dicte søger sammenfald mellem de to piger og kan kun finde frem til, at pigerne ikke havde udsigt til bedring - men hvorfor skulle de myrdes? Og hvem er morderen? Dicte prøver at få forståelse for Bos handlinger, efter han er vendt hjem fra Libanon, og idet hun endelig står klar med en tilgivelse, kan Bos samvittighed ikke tage imod den. Rose skal træffe et skelsættende valg, men i sidste time er valget allerede truffet for hende.
                    [number] => 6
                    [sequence_number] => 3.0006
                    [watched] => 
                    [has_screenshot] => 
                    [aired_at] => 2016-09-26T18:00:00+00:00
                    [availability] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [source_id] => netflix-netflix-subscription
                                    [source_name] => netflix
                                    [access_type] => 2
                                    [source_data] => stdClass Object
                                        (
                                            [links] => stdClass Object
                                                (
                                                    [web] => http://www.netflix.com/title/70289506
                                                    [ios] => nflx://www.netflix.com/Browse?q=action%3Dview_details%26target_url%3Dhttp%253A%252F%252Fmovi.es%252FVpHmc
                                                    [android] => nflx://www.netflix.com/Browse?q=action%3Dplay%26source%3Dmerchweb%26target_url%3Dhttp%3A%2F%2Fmovi.es%2FWUdak
                                                )

                                            [references] => stdClass Object
                                                (
                                                    [web] => stdClass Object
                                                        (
                                                            [episode_id] => 70289506
                                                        )

                                                )

                                        )

                                )

                        )

                )

            [f713f56b-3970-4416-87d3-1959f678f6de] => stdClass Object
                (
                    [season_id] => b33012f8-a43d-4a02-b89d-f45559b34098
                    [title] => Episode 5
                    [overview] => Rose har fået nyt arbejde som vagt på psykiatrisk afdeling, men på hendes første vagt dør en ung skizofren pige meget pludseligt. Dicte hører om hændelsen, og en besked fra embedslægen giver hende hurtigt en mistanke om en drabssag. Nina er endelig kommet tilbage i drabsafdelingen, hvor hun fra første dag bliver mødt med stor modstand fra den hårdhudede drabsefterforsker Tonni. Endnu engang involverer Dicte sig i efterforskningen, der denne gang giver hende indblik i Roses nye arbejdsplads, og dét gør hende urolig. Men hvordan klarer Dicte mon efterforskningen uden Wagners hjælp?
                    [number] => 5
                    [sequence_number] => 3.0005
                    [watched] => 
                    [has_screenshot] => 
                    [aired_at] => 2016-09-19T18:00:00+00:00
                    [availability] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [source_id] => netflix-netflix-subscription
                                    [source_name] => netflix
                                    [access_type] => 2
                                    [source_data] => stdClass Object
                                        (
                                            [links] => stdClass Object
                                                (
                                                    [web] => http://www.netflix.com/title/70289506
                                                    [ios] => nflx://www.netflix.com/Browse?q=action%3Dview_details%26target_url%3Dhttp%253A%252F%252Fmovi.es%252FVpHmc
                                                    [android] => nflx://www.netflix.com/Browse?q=action%3Dplay%26source%3Dmerchweb%26target_url%3Dhttp%3A%2F%2Fmovi.es%2FWUdaj
                                                )

                                            [references] => stdClass Object
                                                (
                                                    [web] => stdClass Object
                                                        (
                                                            [episode_id] => 70289506
                                                        )

                                                )

                                        )

                                )

                        )

                )

            [ede4029c-9905-4bf9-84f1-8659672e3576] => stdClass Object
                (
                    [season_id] => b33012f8-a43d-4a02-b89d-f45559b34098
                    [title] => Episode 4
                    [overview] => The Police has come to the lake where Benedicte found the body of Tina Mølgaard. Everything points to Tina Mølgaard's husband as the perpetrator, and Benedicte now has a murder story in hands and wants her old job back.
Stay tune of Johan's wife that require answers to what happened that night, they fled, and Johan died, and it does stay very uneasy. Benedicte seeks out the priest in Tina Mølgaard's village, and themes such as jealousy and pedophilia gets suddenly force in the investigation of the case.
                    [number] => 4
                    [sequence_number] => 3.0004
                    [watched] => 
                    [has_screenshot] => 
                    [aired_at] => 2016-09-12T18:00:00+00:00
                    [availability] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [source_id] => netflix-netflix-subscription
                                    [source_name] => netflix
                                    [access_type] => 2
                                    [source_data] => stdClass Object
                                        (
                                            [links] => stdClass Object
                                                (
                                                    [web] => http://www.netflix.com/title/70289506
                                                    [ios] => nflx://www.netflix.com/Browse?q=action%3Dview_details%26target_url%3Dhttp%253A%252F%252Fmovi.es%252FVpHmc
                                                    [android] => nflx://www.netflix.com/Browse?q=action%3Dplay%26source%3Dmerchweb%26target_url%3Dhttp%3A%2F%2Fmovi.es%2FWUdai
                                                )

                                            [references] => stdClass Object
                                                (
                                                    [web] => stdClass Object
                                                        (
                                                            [episode_id] => 70289506
                                                        )

                                                )

                                        )

                                )

                        )

                )

            [f8e46bb2-ff1b-4865-bdfe-bc4dcce5c288] => stdClass Object
                (
                    [season_id] => b33012f8-a43d-4a02-b89d-f45559b34098
                    [title] => Episode 3
                    [overview] => Benedicte is contacted by a little girl who says that Wagner has promised to help her find her missing mother. It turns out that the case of the girl's mother was investigated confidentially and Benedicte seeks out why Nina, who quickly sees chance to resolve the case with Ms, and thereby come back as a murder investigator with the police. 
However, everything indicates that the little girl's mother has bolted, but Wagner's clues are not pointing in the same direction. On the home front is no longer the same between Ms and Bo as Bos experiences in Lebanon have taken control of their relationship.
                    [number] => 3
                    [sequence_number] => 3.0003
                    [watched] => 
                    [has_screenshot] => 
                    [aired_at] => 2016-09-05T18:00:00+00:00
                    [availability] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [source_id] => netflix-netflix-subscription
                                    [source_name] => netflix
                                    [access_type] => 2
                                    [source_data] => stdClass Object
                                        (
                                            [links] => stdClass Object
                                                (
                                                    [web] => http://www.netflix.com/title/70289506
                                                    [ios] => nflx://www.netflix.com/Browse?q=action%3Dview_details%26target_url%3Dhttp%253A%252F%252Fmovi.es%252FVpHmc
                                                    [android] => nflx://www.netflix.com/Browse?q=action%3Dplay%26source%3Dmerchweb%26target_url%3Dhttp%3A%2F%2Fmovi.es%2FWUdah
                                                )

                                            [references] => stdClass Object
                                                (
                                                    [web] => stdClass Object
                                                        (
                                                            [episode_id] => 70289506
                                                        )

                                                )

                                        )

                                )

                        )

                )

            [0769431e-1ddd-4f7a-bf33-2a122987e43e] => stdClass Object
                (
                    [season_id] => b33012f8-a43d-4a02-b89d-f45559b34098
                    [title] => Episode 2
                    [overview] => Dicte goes to identify the body brought back from Lebanon. Turns out she will still need the ransom.
                    [number] => 2
                    [sequence_number] => 3.0002
                    [watched] => 
                    [has_screenshot] => 
                    [aired_at] => 2016-08-29T18:00:00+00:00
                    [availability] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [source_id] => netflix-netflix-subscription
                                    [source_name] => netflix
                                    [access_type] => 2
                                    [source_data] => stdClass Object
                                        (
                                            [links] => stdClass Object
                                                (
                                                    [web] => http://www.netflix.com/title/70289506
                                                    [ios] => nflx://www.netflix.com/Browse?q=action%3Dview_details%26target_url%3Dhttp%253A%252F%252Fmovi.es%252FVpHmc
                                                    [android] => nflx://www.netflix.com/Browse?q=action%3Dplay%26source%3Dmerchweb%26target_url%3Dhttp%3A%2F%2Fmovi.es%2FWUdag
                                                )

                                            [references] => stdClass Object
                                                (
                                                    [web] => stdClass Object
                                                        (
                                                            [episode_id] => 70289506
                                                        )

                                                )

                                        )

                                )

                        )

                )

            [a6144f3f-8022-4ece-a20f-2c0af96eec79] => stdClass Object
                (
                    [season_id] => b33012f8-a43d-4a02-b89d-f45559b34098
                    [title] => Episode 1
                    [overview] => Bo and Dicte are getting married. The day after the wedding Bo is going on a journalist assignment to Lebanon and is taken as hostage.
                    [number] => 1
                    [sequence_number] => 3.0001
                    [watched] => 
                    [has_screenshot] => 
                    [aired_at] => 2016-08-22T18:00:00+00:00
                    [availability] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [source_id] => netflix-netflix-subscription
                                    [source_name] => netflix
                                    [access_type] => 2
                                    [source_data] => stdClass Object
                                        (
                                            [links] => stdClass Object
                                                (
                                                    [web] => http://www.netflix.com/title/70289506
                                                    [ios] => nflx://www.netflix.com/Browse?q=action%3Dview_details%26target_url%3Dhttp%253A%252F%252Fmovi.es%252FVpHmc
                                                    [android] => nflx://www.netflix.com/Browse?q=action%3Dplay%26source%3Dmerchweb%26target_url%3Dhttp%3A%2F%2Fmovi.es%2FWUdaf
                                                )

                                            [references] => stdClass Object
                                                (
                                                    [web] => stdClass Object
                                                        (
                                                            [episode_id] => 70289506
                                                        )

                                                )

                                        )

                                )

                        )

                )

            [0e6f3962-2999-4a6c-a1c2-10967c103b04] => stdClass Object
                (
                    [season_id] => 8265d5f9-0054-40ed-8707-42410899f717
                    [title] => Episode 10
                    [overview] => 
                    [number] => 10
                    [sequence_number] => 2.001
                    [watched] => 
                    [has_screenshot] => 1
                    [aired_at] => 2014-11-26T19:00:00+00:00
                    [availability] => Array
                        (
                        )

                )

            [1f00bab3-d601-47a4-89ae-68a700894cc1] => stdClass Object
                (
                    [season_id] => 8265d5f9-0054-40ed-8707-42410899f717
                    [title] => Episode 9
                    [overview] => 
                    [number] => 9
                    [sequence_number] => 2.0009
                    [watched] => 
                    [has_screenshot] => 1
                    [aired_at] => 2014-11-19T19:00:00+00:00
                    [availability] => Array
                        (
                        )

                )

            [8d4717ba-f838-423e-82b6-b73a2aaab841] => stdClass Object
                (
                    [season_id] => 8265d5f9-0054-40ed-8707-42410899f717
                    [title] => Episode 8
                    [overview] => 
                    [number] => 8
                    [sequence_number] => 2.0008
                    [watched] => 
                    [has_screenshot] => 1
                    [aired_at] => 2014-11-12T19:00:00+00:00
                    [availability] => Array
                        (
                        )

                )

            [6ee89207-fe68-4b18-8f7e-0fba3c1bf149] => stdClass Object
                (
                    [season_id] => 8265d5f9-0054-40ed-8707-42410899f717
                    [title] => Episode 7
                    [overview] => 
                    [number] => 7
                    [sequence_number] => 2.0007
                    [watched] => 
                    [has_screenshot] => 1
                    [aired_at] => 2014-11-05T19:00:00+00:00
                    [availability] => Array
                        (
                        )

                )

            [caebce6f-fd7b-48af-99af-ccb0804b50f7] => stdClass Object
                (
                    [season_id] => 8265d5f9-0054-40ed-8707-42410899f717
                    [title] => Episode 6
                    [overview] => 
                    [number] => 6
                    [sequence_number] => 2.0006
                    [watched] => 
                    [has_screenshot] => 1
                    [aired_at] => 2014-10-29T19:00:00+00:00
                    [availability] => Array
                        (
                        )

                )

            [59fcdf4b-7d0d-41b6-9835-ad63d54cac7d] => stdClass Object
                (
                    [season_id] => 8265d5f9-0054-40ed-8707-42410899f717
                    [title] => Episode 5
                    [overview] => 
                    [number] => 5
                    [sequence_number] => 2.0005
                    [watched] => 
                    [has_screenshot] => 1
                    [aired_at] => 2014-10-22T18:00:00+00:00
                    [availability] => Array
                        (
                        )

                )

            [30881662-40e9-4329-8220-e4a6d3329490] => stdClass Object
                (
                    [season_id] => 8265d5f9-0054-40ed-8707-42410899f717
                    [title] => Episode 4
                    [overview] => 
                    [number] => 4
                    [sequence_number] => 2.0004
                    [watched] => 
                    [has_screenshot] => 1
                    [aired_at] => 2014-10-15T18:00:00+00:00
                    [availability] => Array
                        (
                        )

                )

            [f9599ffd-374d-449f-b72a-1d06359e88ea] => stdClass Object
                (
                    [season_id] => 8265d5f9-0054-40ed-8707-42410899f717
                    [title] => Episode 3
                    [overview] => 
                    [number] => 3
                    [sequence_number] => 2.0003
                    [watched] => 
                    [has_screenshot] => 1
                    [aired_at] => 2014-10-08T18:00:00+00:00
                    [availability] => Array
                        (
                        )

                )

            [352339ff-bc93-417d-a8da-37f6eae1fe91] => stdClass Object
                (
                    [season_id] => 8265d5f9-0054-40ed-8707-42410899f717
                    [title] => Episode 2
                    [overview] => 
                    [number] => 2
                    [sequence_number] => 2.0002
                    [watched] => 
                    [has_screenshot] => 1
                    [aired_at] => 2014-10-01T18:00:00+00:00
                    [availability] => Array
                        (
                        )

                )

            [a2953df2-e4e0-4b2a-b293-e45aa84cf5ac] => stdClass Object
                (
                    [season_id] => 8265d5f9-0054-40ed-8707-42410899f717
                    [title] => Episode 1
                    [overview] => 
                    [number] => 1
                    [sequence_number] => 2.0001
                    [watched] => 
                    [has_screenshot] => 1
                    [aired_at] => 2014-09-24T18:00:00+00:00
                    [availability] => Array
                        (
                        )

                )

            [60cd7540-0e9d-42a1-a4d1-1df20055eb79] => stdClass Object
                (
                    [season_id] => a1b4f284-bdf0-4fbd-835f-90a1a067c602
                    [title] => Episode 10
                    [overview] => Dicte is interviewing prominent politician Francesca Olsen when a bomb explodes nearby that kills a young woman named Miriam, but Dicte is convinced that Francesca was the real target
                    [number] => 10
                    [sequence_number] => 1.001
                    [watched] => 
                    [has_screenshot] => 1
                    [aired_at] => 2013-03-11T19:00:00+00:00
                    [availability] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [source_id] => netflix-netflix-subscription
                                    [source_name] => netflix
                                    [access_type] => 2
                                    [source_data] => stdClass Object
                                        (
                                            [links] => stdClass Object
                                                (
                                                    [web] => http://www.netflix.com/title/70289506
                                                    [ios] => nflx://www.netflix.com/Browse?q=action%3Dview_details%26target_url%3Dhttp%253A%252F%252Fmovi.es%252FVpHmc
                                                    [android] => nflx://www.netflix.com/Browse?q=action%3Dplay%26source%3Dmerchweb%26target_url%3Dhttp%3A%2F%2Fmovi.es%2FVpGhA
                                                )

                                            [references] => stdClass Object
                                                (
                                                    [web] => stdClass Object
                                                        (
                                                            [episode_id] => 70289506
                                                        )

                                                )

                                        )

                                )

                        )

                )

            [50f48799-7321-4e3a-a749-e4ef47db0fad] => stdClass Object
                (
                    [season_id] => a1b4f284-bdf0-4fbd-835f-90a1a067c602
                    [title] => Episode 9
                    [overview] => 
                    [number] => 9
                    [sequence_number] => 1.0009
                    [watched] => 
                    [has_screenshot] => 1
                    [aired_at] => 2013-03-04T19:00:00+00:00
                    [availability] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [source_id] => netflix-netflix-subscription
                                    [source_name] => netflix
                                    [access_type] => 2
                                    [source_data] => stdClass Object
                                        (
                                            [links] => stdClass Object
                                                (
                                                    [web] => http://www.netflix.com/title/70289506
                                                    [ios] => nflx://www.netflix.com/Browse?q=action%3Dview_details%26target_url%3Dhttp%253A%252F%252Fmovi.es%252FVpHmc
                                                    [android] => nflx://www.netflix.com/Browse?q=action%3Dplay%26source%3Dmerchweb%26target_url%3Dhttp%3A%2F%2Fmovi.es%2FVpGh9
                                                )

                                            [references] => stdClass Object
                                                (
                                                    [web] => stdClass Object
                                                        (
                                                            [episode_id] => 70289506
                                                        )

                                                )

                                        )

                                )

                        )

                )

            [02c00bef-8916-49e6-9199-e83cc1b51a7b] => stdClass Object
                (
                    [season_id] => a1b4f284-bdf0-4fbd-835f-90a1a067c602
                    [title] => Episode 8
                    [overview] => Dicte probes the murder of a man found naked with his eyes gouged out and is tipped off by Peter, a prison inmate, that it may be connected with illegal organ trafficking. Anne is overcome with guilt.
                    [number] => 8
                    [sequence_number] => 1.0008
                    [watched] => 
                    [has_screenshot] => 1
                    [aired_at] => 2013-02-25T19:00:00+00:00
                    [availability] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [source_id] => netflix-netflix-subscription
                                    [source_name] => netflix
                                    [access_type] => 2
                                    [source_data] => stdClass Object
                                        (
                                            [links] => stdClass Object
                                                (
                                                    [web] => http://www.netflix.com/title/70289506
                                                    [ios] => nflx://www.netflix.com/Browse?q=action%3Dview_details%26target_url%3Dhttp%253A%252F%252Fmovi.es%252FVpHmc
                                                    [android] => nflx://www.netflix.com/Browse?q=action%3Dplay%26source%3Dmerchweb%26target_url%3Dhttp%3A%2F%2Fmovi.es%2FVpGh8
                                                )

                                            [references] => stdClass Object
                                                (
                                                    [web] => stdClass Object
                                                        (
                                                            [episode_id] => 70289506
                                                        )

                                                )

                                        )

                                )

                        )

                )

            [23eca1a3-2962-4e28-9341-3bfb65647d27] => stdClass Object
                (
                    [season_id] => a1b4f284-bdf0-4fbd-835f-90a1a067c602
                    [title] => Life and Body (1)
                    [overview] => Part 1:
                    [number] => 7
                    [sequence_number] => 1.0007
                    [watched] => 
                    [has_screenshot] => 1
                    [aired_at] => 2013-02-18T19:00:00+00:00
                    [availability] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [source_id] => netflix-netflix-subscription
                                    [source_name] => netflix
                                    [access_type] => 2
                                    [source_data] => stdClass Object
                                        (
                                            [links] => stdClass Object
                                                (
                                                    [web] => http://www.netflix.com/title/70289506
                                                    [ios] => nflx://www.netflix.com/Browse?q=action%3Dview_details%26target_url%3Dhttp%253A%252F%252Fmovi.es%252FVpHmc
                                                    [android] => nflx://www.netflix.com/Browse?q=action%3Dplay%26source%3Dmerchweb%26target_url%3Dhttp%3A%2F%2Fmovi.es%2FVpGh7
                                                )

                                            [references] => stdClass Object
                                                (
                                                    [web] => stdClass Object
                                                        (
                                                            [episode_id] => 70289506
                                                        )

                                                )

                                        )

                                )

                        )

                )

            [4d40f035-70c7-4eb2-950a-fa6fc7df31f2] => stdClass Object
                (
                    [season_id] => a1b4f284-bdf0-4fbd-835f-90a1a067c602
                    [title] => Hidden Defects (2)
                    [overview] => Part 2: A bath tub with the corpse of a newborn floats in the harbor. Dicte goes with her gut but Wagner warns her not to jump to conclusions.
                    [number] => 6
                    [sequence_number] => 1.0006
                    [watched] => 
                    [has_screenshot] => 1
                    [aired_at] => 2013-02-11T19:00:00+00:00
                    [availability] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [source_id] => netflix-netflix-subscription
                                    [source_name] => netflix
                                    [access_type] => 2
                                    [source_data] => stdClass Object
                                        (
                                            [links] => stdClass Object
                                                (
                                                    [web] => http://www.netflix.com/title/70289506
                                                    [ios] => nflx://www.netflix.com/Browse?q=action%3Dview_details%26target_url%3Dhttp%253A%252F%252Fmovi.es%252FVpHmc
                                                    [android] => nflx://www.netflix.com/Browse?q=action%3Dplay%26source%3Dmerchweb%26target_url%3Dhttp%3A%2F%2Fmovi.es%2FVpGh6
                                                )

                                            [references] => stdClass Object
                                                (
                                                    [web] => stdClass Object
                                                        (
                                                            [episode_id] => 70289506
                                                        )

                                                )

                                        )

                                )

                        )

                )

            [c589b634-860c-446f-aa0b-4ee1c27d1004] => stdClass Object
                (
                    [season_id] => a1b4f284-bdf0-4fbd-835f-90a1a067c602
                    [title] => Hidden Defects (1)
                    [overview] => Part 1: A bath tub with the corpse of a newborn floats in the harbor. Dicte goes with her gut but Wagner warns her not to jump to conclusions.
                    [number] => 5
                    [sequence_number] => 1.0005
                    [watched] => 
                    [has_screenshot] => 1
                    [aired_at] => 2013-02-04T19:00:00+00:00
                    [availability] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [source_id] => netflix-netflix-subscription
                                    [source_name] => netflix
                                    [access_type] => 2
                                    [source_data] => stdClass Object
                                        (
                                            [links] => stdClass Object
                                                (
                                                    [web] => http://www.netflix.com/title/70289506
                                                    [ios] => nflx://www.netflix.com/Browse?q=action%3Dview_details%26target_url%3Dhttp%253A%252F%252Fmovi.es%252FVpHmc
                                                    [android] => nflx://www.netflix.com/Browse?q=action%3Dplay%26source%3Dmerchweb%26target_url%3Dhttp%3A%2F%2Fmovi.es%2FVpGh5
                                                )

                                            [references] => stdClass Object
                                                (
                                                    [web] => stdClass Object
                                                        (
                                                            [episode_id] => 70289506
                                                        )

                                                )

                                        )

                                )

                        )

                )

            [d5e332b6-fcab-4f09-a757-fcf575bc8e44] => stdClass Object
                (
                    [season_id] => a1b4f284-bdf0-4fbd-835f-90a1a067c602
                    [title] => Deductible (2)
                    [overview] => Part 2: One summer night, Dicte sees a burning cart in the driveway of her neighbors. Inside the house, Inger Gravgård seems to have committed suicide.
                    [number] => 4
                    [sequence_number] => 1.0004
                    [watched] => 
                    [has_screenshot] => 1
                    [aired_at] => 2013-01-28T19:00:00+00:00
                    [availability] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [source_id] => netflix-netflix-subscription
                                    [source_name] => netflix
                                    [access_type] => 2
                                    [source_data] => stdClass Object
                                        (
                                            [links] => stdClass Object
                                                (
                                                    [web] => http://www.netflix.com/title/70289506
                                                    [ios] => nflx://www.netflix.com/Browse?q=action%3Dview_details%26target_url%3Dhttp%253A%252F%252Fmovi.es%252FVpHmc
                                                    [android] => nflx://www.netflix.com/Browse?q=action%3Dplay%26source%3Dmerchweb%26target_url%3Dhttp%3A%2F%2Fmovi.es%2FVpGh4
                                                )

                                            [references] => stdClass Object
                                                (
                                                    [web] => stdClass Object
                                                        (
                                                            [episode_id] => 70289506
                                                        )

                                                )

                                        )

                                )

                        )

                )

            [87b86688-256b-4708-bfe2-2044b2c1f9a6] => stdClass Object
                (
                    [season_id] => a1b4f284-bdf0-4fbd-835f-90a1a067c602
                    [title] => Deductible (1)
                    [overview] => Part 1: One summer night, Dicte sees a burning cart in the driveway of her neighbors. Inside the house, Inger Gravgård seems to have committed suicide.
                    [number] => 3
                    [sequence_number] => 1.0003
                    [watched] => 
                    [has_screenshot] => 1
                    [aired_at] => 2013-01-21T19:00:00+00:00
                    [availability] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [source_id] => netflix-netflix-subscription
                                    [source_name] => netflix
                                    [access_type] => 2
                                    [source_data] => stdClass Object
                                        (
                                            [links] => stdClass Object
                                                (
                                                    [web] => http://www.netflix.com/title/70289506
                                                    [ios] => nflx://www.netflix.com/Browse?q=action%3Dview_details%26target_url%3Dhttp%253A%252F%252Fmovi.es%252FVpHmc
                                                    [android] => nflx://www.netflix.com/Browse?q=action%3Dplay%26source%3Dmerchweb%26target_url%3Dhttp%3A%2F%2Fmovi.es%2FVpGh3
                                                )

                                            [references] => stdClass Object
                                                (
                                                    [web] => stdClass Object
                                                        (
                                                            [episode_id] => 70289506
                                                        )

                                                )

                                        )

                                )

                        )

                )

            [ec07c876-f928-41a2-a4be-8e4c8d86d575] => stdClass Object
                (
                    [season_id] => a1b4f284-bdf0-4fbd-835f-90a1a067c602
                    [title] => Personal (2)
                    [overview] => Part 2: Dicte finds the body of a young woman who died of a C-section. Due to this macabre find, Dicte gets to know Inspector Wagner.
                    [number] => 2
                    [sequence_number] => 1.0002
                    [watched] => 
                    [has_screenshot] => 1
                    [aired_at] => 2013-01-14T19:00:00+00:00
                    [availability] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [source_id] => netflix-netflix-subscription
                                    [source_name] => netflix
                                    [access_type] => 2
                                    [source_data] => stdClass Object
                                        (
                                            [links] => stdClass Object
                                                (
                                                    [web] => http://www.netflix.com/title/70289506
                                                    [ios] => nflx://www.netflix.com/Browse?q=action%3Dview_details%26target_url%3Dhttp%253A%252F%252Fmovi.es%252FVpHmc
                                                    [android] => nflx://www.netflix.com/Browse?q=action%3Dplay%26source%3Dmerchweb%26target_url%3Dhttp%3A%2F%2Fmovi.es%2FVpGh2
                                                )

                                            [references] => stdClass Object
                                                (
                                                    [web] => stdClass Object
                                                        (
                                                            [episode_id] => 70289506
                                                        )

                                                )

                                        )

                                )

                        )

                )

            [b0b32b6a-34d4-44c7-9d1a-5db346f2a3c0] => stdClass Object
                (
                    [season_id] => a1b4f284-bdf0-4fbd-835f-90a1a067c602
                    [title] => Personal (1)
                    [overview] => Part 1: Dicte finds the body of a young woman who died of a C-section. Due to this macabre find, Dicte gets to know Inspector Wagner.
                    [number] => 1
                    [sequence_number] => 1.0001
                    [watched] => 
                    [has_screenshot] => 1
                    [aired_at] => 2013-01-07T19:00:00+00:00
                    [availability] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [source_id] => netflix-netflix-subscription
                                    [source_name] => netflix
                                    [access_type] => 2
                                    [source_data] => stdClass Object
                                        (
                                            [links] => stdClass Object
                                                (
                                                    [web] => http://www.netflix.com/title/70289506
                                                    [ios] => nflx://www.netflix.com/Browse?q=action%3Dview_details%26target_url%3Dhttp%253A%252F%252Fmovi.es%252FVpHmc
                                                    [android] => nflx://www.netflix.com/Browse?q=action%3Dplay%26source%3Dmerchweb%26target_url%3Dhttp%3A%2F%2Fmovi.es%2FVpGh1
                                                )

                                            [references] => stdClass Object
                                                (
                                                    [web] => stdClass Object
                                                        (
                                                            [episode_id] => 70289506
                                                        )

                                                )

                                        )

                                )

                        )

                )

        )

    [episode_availability] => stdClass Object
        (
            [free_on_sources] => Array
                (
                    [0] => b9c4c220-ee63-405c-aca5-bf1fba253b84
                    [1] => aedb8588-122f-4643-81ca-542944c0edb9
                    [2] => 97052385-9ac3-4b20-be5e-9f41c35f5aa2
                    [3] => 7e13ce1e-4c0d-4d4d-8daa-7d2d134fec3d
                    [4] => 2b284b61-4fab-4f43-8e95-36c1f4e4f234
                    [5] => f713f56b-3970-4416-87d3-1959f678f6de
                    [6] => ede4029c-9905-4bf9-84f1-8659672e3576
                    [7] => f8e46bb2-ff1b-4865-bdfe-bc4dcce5c288
                    [8] => 0769431e-1ddd-4f7a-bf33-2a122987e43e
                    [9] => a6144f3f-8022-4ece-a20f-2c0af96eec79
                    [10] => 60cd7540-0e9d-42a1-a4d1-1df20055eb79
                    [11] => 50f48799-7321-4e3a-a749-e4ef47db0fad
                    [12] => 02c00bef-8916-49e6-9199-e83cc1b51a7b
                    [13] => 23eca1a3-2962-4e28-9341-3bfb65647d27
                    [14] => 4d40f035-70c7-4eb2-950a-fa6fc7df31f2
                    [15] => c589b634-860c-446f-aa0b-4ee1c27d1004
                    [16] => d5e332b6-fcab-4f09-a757-fcf575bc8e44
                    [17] => 87b86688-256b-4708-bfe2-2044b2c1f9a6
                    [18] => ec07c876-f928-41a2-a4be-8e4c8d86d575
                    [19] => b0b32b6a-34d4-44c7-9d1a-5db346f2a3c0
                )

            [available_elsewhere] => Array
                (
                    [0] => b9c4c220-ee63-405c-aca5-bf1fba253b84
                    [1] => aedb8588-122f-4643-81ca-542944c0edb9
                    [2] => 97052385-9ac3-4b20-be5e-9f41c35f5aa2
                    [3] => 7e13ce1e-4c0d-4d4d-8daa-7d2d134fec3d
                    [4] => 2b284b61-4fab-4f43-8e95-36c1f4e4f234
                    [5] => f713f56b-3970-4416-87d3-1959f678f6de
                    [6] => ede4029c-9905-4bf9-84f1-8659672e3576
                    [7] => f8e46bb2-ff1b-4865-bdfe-bc4dcce5c288
                    [8] => 0769431e-1ddd-4f7a-bf33-2a122987e43e
                    [9] => a6144f3f-8022-4ece-a20f-2c0af96eec79
                    [10] => 60cd7540-0e9d-42a1-a4d1-1df20055eb79
                    [11] => 50f48799-7321-4e3a-a749-e4ef47db0fad
                    [12] => 02c00bef-8916-49e6-9199-e83cc1b51a7b
                    [13] => 23eca1a3-2962-4e28-9341-3bfb65647d27
                    [14] => 4d40f035-70c7-4eb2-950a-fa6fc7df31f2
                    [15] => c589b634-860c-446f-aa0b-4ee1c27d1004
                    [16] => d5e332b6-fcab-4f09-a757-fcf575bc8e44
                    [17] => 87b86688-256b-4708-bfe2-2044b2c1f9a6
                    [18] => ec07c876-f928-41a2-a4be-8e4c8d86d575
                    [19] => b0b32b6a-34d4-44c7-9d1a-5db346f2a3c0
                )

        )

    [people] => Array
        (
            [0] => stdClass Object
                (
                    [id] => 64362b61-2930-4656-984b-ef2987fa4476
                    [slug] => iben-hjejle-1971
                    [name] => Iben Hjejle
                    [birthdate] => 1971-03-22T00:00:00
                    [has_poster] => 1
                    [has_square] => 1
                    [role_type] => 1
                    [role] => Dicte Svendsen
                    [rank] => 0
                )

            [1] => stdClass Object
                (
                    [id] => d4c7e8ae-dcdb-4ad5-8583-de855ab8e34e
                    [slug] => lars-brygmann-1957
                    [name] => Lars Brygmann
                    [birthdate] => 1957-02-17T00:00:00
                    [has_poster] => 1
                    [has_square] => 1
                    [role_type] => 1
                    [role] => John Wagner
                    [rank] => 1
                )

            [2] => stdClass Object
                (
                    [id] => 60e43d6f-abf7-4a06-a2e8-e0ab1b11b476
                    [slug] => laerke-winther-andersen-1970
                    [name] => Lærke Winther Andersen
                    [birthdate] => 1970-01-01T00:00:00
                    [has_poster] => 1
                    [has_square] => 1
                    [role_type] => 1
                    [role] => Anne Skov Larsen
                    [rank] => 2
                )

            [3] => stdClass Object
                (
                    [id] => 1ef018c8-6b4c-4832-836a-8b01f5ffb7ef
                    [slug] => ditte-ylva-olsen
                    [name] => Ditte Ylva Olsen
                    [birthdate] => 
                    [has_poster] => 
                    [has_square] => 
                    [role_type] => 1
                    [role] => Linda Bendtsen
                    [rank] => 3
                )

            [4] => stdClass Object
                (
                    [id] => 3dec529a-6393-414e-b7d6-df5503b375c0
                    [slug] => emilie-kruse
                    [name] => Emilie Kruse
                    [birthdate] => 
                    [has_poster] => 
                    [has_square] => 
                    [role_type] => 1
                    [role] => Rose Svendsen
                    [rank] => 4
                )

        )

    [sources] => Array
        (
            [0] => netflix
        )

)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment