API Documentation

Register an API Account

To create an API account hit the /api/register endpoint.

Mandatory ParametersDescription
nameYour full name
emailYour email address
passwordYour password
password_confirmationYour password again

Request example

curl -X POST http://www.leakedearly.com/api/register \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 -d '{"name": "John Doe", "email": "[email protected]", "password": "yourpassword123", "password_confirmation": "yourpassword123"}'

Response example

{
  "data": {
    "api_token":"0syHnl0Y9jOIfszq11EC2CBQwCfObmvscrZYo5o2ilZPnohvndH797nDNyAT",
    "created_at": "2017-06-20 21:17:15",
    "email": "[email protected]",
    "id": 51,
    "name": "John Doe",
    "updated_at": "2017-06-20 21:17:15"
  }
}

Now that you have your api_token you can move forward.

Browse Tracks

To browse tracks hit the /api/tracks endpoint.

Mandatory HeadersValue
AuthenticationBearer {api_token}

Optional ParametersDescription
pageDefault: 1
genreDefault: none, can be supplied genre slug or id

Request example

curl -X GET http://www.leakedearly.com/api/tracks \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 -H "Authentication: Bearer 0syHnl0Y9jOIfszq11EC2CBQwCfObmvscrZYo5o2ilZPnohvndH797nDNyAT" \
 -d '{"page": 1, "genre": 1}'

Response example

{
    "current_page": 1,
    "data": [
        {
            "id": 8383,
            "slug": "kodak-black-dream-doll",
            "name": "Dream Doll",
            "artist": "Kodak Black",
            "download": "http://suprafiles.org/y5casie0d16k",
            "preview": "http://dopefile.pk/mp3embed-owtuv46awhxs.mp3",
            "created_at": "2017-08-01 13:06:02",
            "genre_data": {
                "id": 1,
                "name": "Rap",
                "slug": "rap"
            },
            "post_url": "http://www.leakedearly.com/tracks/kodak-black-dream-doll",
            "image_url": "http://www.leakedearly.com/tracks/image/kodak-black-dream-doll.jpg",
            "api_url": "http://www.leakedearly.com/api/track/8383"
        },
        ...
    ],
    "from": 1,
    "last_page": 330,
    "next_page_url": "http://www.leakedearly.com/api/tracks?page=2",
    "path": "http://www.leakedearly.com/api/tracks",
    "per_page": "25",
    "prev_page_url": null,
    "to": 25,
    "total": 8234
}

View Individual Track

To view an individual track hit the /api/track/{id} endpoint. {id} being the track ID.

Request example

curl -X GET http://www.leakedearly.com/api/track/1987 \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 -H "Authentication: Bearer 0syHnl0Y9jOIfszq11EC2CBQwCfObmvscrZYo5o2ilZPnohvndH797nDNyAT"

Response example

{
    "data": {
        "id": 8383,
        "slug": "kodak-black-dream-doll",
        "name": "Dream Doll",
        "artist": "Kodak Black",
        "download": "http://suprafiles.org/y5casie0d16k",
        "preview": "http://dopefile.pk/mp3embed-owtuv46awhxs.mp3",
        "created_at": "2017-08-01 13:06:02",
        "genre_data": {
            "id": 1,
            "name": "Rap",
            "slug": "rap"
        },
        "post_url": "http://www.leakedearly.com/tracks/kodak-black-dream-doll",
        "image_url": "http://www.leakedearly.com/tracks/image/kodak-black-dream-doll.jpg",
        "api_url": "http://www.leakedearly.com/api/track/8383"
    }
}

Browse Albums

To browse albums hit the /api/albums endpoint.

Mandatory HeadersValue
AuthenticationBearer {api_token}

Optional ParametersDescription
pageDefault: 1
genreDefault: none, can be supplied genre slug or id

Request example

curl -X GET http://www.leakedearly.com/api/albums \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 -H "Authentication: Bearer 0syHnl0Y9jOIfszq11EC2CBQwCfObmvscrZYo5o2ilZPnohvndH797nDNyAT" \
 -d '{"page": 1, "genre": 1}'

Response example

{
    "current_page": 1,
    "data": [
        {
            "id": 1097,
            "slug": "abk-killa-features",
            "name": "Killa Features",
            "artist": "ABK",
            "download": "http://suprafiles.org/owv1kuguaqn9",
            "created_at": "2017-08-01 18:35:04",
            "genre_data": {
                "id": 1,
                "name": "Rap",
                "slug": "rap"
            },
            "post_url": "http://www.leakedearly.com/albums/abk-killa-features",
            "image_url": "http://www.leakedearly.com/albums/image/abk-killa-features.jpg",
            "api_url": "http://www.leakedearly.com/api/album/1097",
            "track_list": [
                {
                    "name": "The Feature",
                    "url": "http://dopefile.pk/o37orjbwo5vn"
                },
                {
                    "name": "My Own Thoughts (Ft. Flagrant)",
                    "url": "http://dopefile.pk/jtbggk639jj2"
                },
                {
                    "name": "Hala Lu Ya (Ft. Class)",
                    "url": "http://dopefile.pk/znxiz3qgdrxr"
                },
                {
                    "name": "She's So Crazy (Ft. Freddy Grimes)",
                    "url": "http://dopefile.pk/wb7g8l90jxdo"
                },
                {
                    "name": "Devil In The Sky (Ft. Mad V & Razakel)",
                    "url": "http://dopefile.pk/mkfcx9bxj1y3"
                },
                {
                    "name": "Shitty Promo (Ft. Ed Smash)",
                    "url": "http://dopefile.pk/ykrby51b5j4z"
                },
                {
                    "name": "We Don't Stop (Ft. Skitzo)",
                    "url": "http://dopefile.pk/6p30ibnj83hf"
                },
                {
                    "name": "The Lonely Road (Ft. Powerdise)",
                    "url": "http://dopefile.pk/se1ap9mma7qo"
                }
            ]
        },
        ...
    ],
    "from": 1,
    "last_page": 40,
    "next_page_url": "http://www.leakedearly.com/api/albums?page=2",
    "path": "http://www.leakedearly.com/api/albums",
    "per_page": "25",
    "prev_page_url": null,
    "to": 25,
    "total": 987
}

View Individual Album

To view an individual album hit the /api/album/{id} endpoint. {id} being the album ID.

Request example

curl -X GET http://www.leakedearly.com/api/album/1987 \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 -H "Authentication: Bearer 0syHnl0Y9jOIfszq11EC2CBQwCfObmvscrZYo5o2ilZPnohvndH797nDNyAT"

Response example

{
    "data": {
        "id": 1097,
        "slug": "abk-killa-features",
        "name": "Killa Features",
        "artist": "ABK",
        "download": "http://suprafiles.org/owv1kuguaqn9",
        "created_at": "2017-08-01 18:35:04",
        "genre_data": {
            "id": 1,
            "name": "Rap",
            "slug": "rap"
        },
        "post_url": "http://www.leakedearly.com/albums/abk-killa-features",
        "image_url": "http://www.leakedearly.com/albums/image/abk-killa-features.jpg",
        "api_url": "http://www.leakedearly.com/api/album/1097",
        "track_list": [
            {
                "name": "The Feature",
                "url": "http://dopefile.pk/o37orjbwo5vn"
            },
            {
                "name": "My Own Thoughts (Ft. Flagrant)",
                "url": "http://dopefile.pk/jtbggk639jj2"
            },
            {
                "name": "Hala Lu Ya (Ft. Class)",
                "url": "http://dopefile.pk/znxiz3qgdrxr"
            },
            {
                "name": "She's So Crazy (Ft. Freddy Grimes)",
                "url": "http://dopefile.pk/wb7g8l90jxdo"
            },
            {
                "name": "Devil In The Sky (Ft. Mad V & Razakel)",
                "url": "http://dopefile.pk/mkfcx9bxj1y3"
            },
            {
                "name": "Shitty Promo (Ft. Ed Smash)",
                "url": "http://dopefile.pk/ykrby51b5j4z"
            },
            {
                "name": "We Don't Stop (Ft. Skitzo)",
                "url": "http://dopefile.pk/6p30ibnj83hf"
            },
            {
                "name": "The Lonely Road (Ft. Powerdise)",
                "url": "http://dopefile.pk/se1ap9mma7qo"
            }
        ]
    }
}

Browse Mixtapes

To browse mixtapes hit the /api/mixtapes endpoint.

Mandatory HeadersValue
AuthenticationBearer {api_token}

Optional ParametersDescription
pageDefault: 1
genreDefault: none, can be supplied genre slug or id

Request example

curl -X GET http://www.leakedearly.com/api/mixtapes \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 -H "Authentication: Bearer 0syHnl0Y9jOIfszq11EC2CBQwCfObmvscrZYo5o2ilZPnohvndH797nDNyAT" \
 -d '{"page": 1, "genre": 1}'

View Individual Mixtape

To view an individual mixtape hit the /api/mixtape/{id} endpoint. {id} being the mixtape ID.

Request example

curl -X GET http://www.leakedearly.com/api/mixtape/1987 \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 -H "Authentication: Bearer 0syHnl0Y9jOIfszq11EC2CBQwCfObmvscrZYo5o2ilZPnohvndH797nDNyAT"

Browse Videos

To browse videos hit the /api/videos endpoint.

Mandatory HeadersValue
AuthenticationBearer {api_token}

Optional ParametersDescription
pageDefault: 1
genreDefault: none, can be supplied genre slug or id

Request example

curl -X GET http://www.leakedearly.com/api/videos \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 -H "Authentication: Bearer 0syHnl0Y9jOIfszq11EC2CBQwCfObmvscrZYo5o2ilZPnohvndH797nDNyAT" \
 -d '{"page": 1, "genre": 1}'

View Individual Videos

To view an individual video hit the /api/video/{id} endpoint. {id} being the video ID.

Request example

curl -X GET http://www.leakedearly.com/api/video/1987 \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 -H "Authentication: Bearer 0syHnl0Y9jOIfszq11EC2CBQwCfObmvscrZYo5o2ilZPnohvndH797nDNyAT"