The Alpha Coders API

Sign Up Now!

Our API Pricing starts at $100/month for 100,000 queries/month.

  • This is for BOTH desktop wallpapers (Wallpaper Abyss) AND phone wallpapers (Mobile Abyss)
  • Cheaper than rolling your own server - storing and delivering millions of images at scale
  • Simplify your workflow. You don't need to worry about server and database management
  • Instantly have all the content your users want
  • It's fast. We're experts at optimization

Sign Up on Patreon

OR
Before reaching out, please make sure that the available list of endpoints (they're all to the left of this) will work for your organization. If the available options will not meet your requirements, we can potentially add endpoints to fit your needs, just lets us know the specifics. The api subscription will require a manual key activation that will happen usually an hour or two after we confirm payment
The Alpha Coders API is an HTTP/JSON based API that allows you to build applications that interact with our selection of desktop and phone wallpapers

Basics

All calls must be made by using the link https://api.alphacoders.com/3.0, arguments have to be passed as GET params. The response contains a JSON object, which will always contain a top-level boolean property success, in case of failure the error property will contain a short error code.

    {
        "success": true,
        "result": "the info you want"
    }
    {
        "success": false,
        "error": "en error occurred"
    }
The selection of the method is done via the parameter called method and is required on all calls.

Existing arguments and errors are defined in the documentation for the relevant method.


Public Testing

You can test our API without a key! The five URLs below will work without a key:

  • https://api.alphacoders.com/3.0?type=desktop&method=highest_rated
  • https://api.alphacoders.com/3.0?type=phone&method=highest_rated
  • https://api.alphacoders.com/3.0?type=desktop&method=wallpaper_info&id=865098
  • https://api.alphacoders.com/3.0?type=phone&method=wallpaper_info&id=692593
  • https://api.alphacoders.com/3.0?method=sub_category_list&id=3&page=4

Only those five exact urls/set of parameters will work without the use of an API key. If you're wondering whether you can consume our api, the above five URLs are examples of the types of pages you'll be grabbing.


newest

This method returns wallpapers sorted by newest

Arguments

Parameter Required Value Description
auth yes string Your authentication key
method yes newest Name of method
type yes desktop | phone Type of wallpapers to grab
min_ratio no float (requires max_ratio) (phone wallpapers only)
max_ratio no float (requires min_ratio) (phone wallpapers only)
width no int (requires height) Get only wallpapers with a certain width
height no int (requires width) Get only wallpapers with a certain height
operator no max | equal | min The type of resolution filter, <= will be used with 'max', = with 'equal' and >= with 'min'.
page no int [1 .. 200] Page number

Response

{
    "success":true,
    "wallpapers":[{"id":int,"width":int,"height":int,...},{"id":int,"width":int,"height":int,...},...]
}
                        
Name Type Description
id int ID of the wallpaper.
width int Width of the wallpaper.
height int Height of the wallpaper.
file_type string Format of the wallpaper.
file_size int Size of the wallpaper in (octets).
url_image string URL to the wallpaper.
url_thumb string URL to the wallpaper's thumbnail.
url_page string URL to the wallpaper's page on Alpha Coders.
category string Name of the category.
category_id int ID of the category.
sub_category string Name of the sub-category.
sub_category_id int ID of ths sub-category.
user_name string Submitter of the wallpaper.
user_id int Submitter ID of the wallpaper.

Errors

{
    "success":false,
    "error":string
}
                        

Example - PHP


                        
$api_result = file_get_contents("https://api.alphacoders.com/3.0?auth=YOUR_KEY&type=phone&method=newest");

$results = json_decode($api_result);

foreach($results->wallpapers as $wallpaper) {
    echo "Have wallpaper id: " . $wallpaper->id;
}

                    
                        

highest_rated

This method returns wallpapers sorted by their rating

Arguments

Parameter Required Value Description
auth yes string Your authentication key
method yes highest_rated Name of method
type yes desktop | phone Type of wallpapers to grab
min_ratio no float (requires max_ratio) (phone wallpapers only)
max_ratio no float (requires min_ratio) (phone wallpapers only)
width no int (requires height) Get only wallpapers with a certain width
height no int (requires width) Get only wallpapers with a certain height
operator no max | equal | min The type of resolution filter, <= will be used with 'max', = with 'equal' and >= with 'min'.
page no int [1 .. 200] Page number

Response

{
    "success":true,
    "wallpapers":[{"id":int,"width":int,"height":int,...},{"id":int,"width":int,"height":int,...},...]
}
                        
Name Type Description
id int ID of the wallpaper.
width int Width of the wallpaper.
height int Height of the wallpaper.
file_type string Format of the wallpaper.
file_size int Size of the wallpaper in (octets).
url_image string URL to the wallpaper.
url_thumb string URL to the wallpaper's thumbnail.
url_page string URL to the wallpaper's page on Alpha Coders.
category string Name of the category.
category_id int ID of the category.
sub_category string Name of the sub-category.
sub_category_id int ID of ths sub-category.
user_name string Submitter of the wallpaper.
user_id int Submitter ID of the wallpaper.

Errors

{
    "success":false,
    "error":string
}
                        

Example - PHP


                        
$api_result = file_get_contents("https://api.alphacoders.com/3.0?auth=YOUR_KEY&type=desktop&method=highest_rated");

$results = json_decode($api_result);

foreach($results->wallpapers as $wallpaper) {
    echo "Have wallpaper id: " . $wallpaper->id;
}

                    
                        


category

This method returns wallpapers in a specific category

Arguments

Parameter Required Value Description
auth yes string Your authentication key
method yes category Name of method
type yes desktop | phone Type of wallpapers to grab
id yes int ID of the category
sort no newest | rating How the wallpapers are sorted
min_ratio no float (requires max_ratio) (phone wallpapers only)
max_ratio no float (requires min_ratio) (phone wallpapers only)
width no int (requires height) Get only wallpapers with a certain width
height no int (requires width) Get only wallpapers with a certain height
operator no max | equal | min The type of resolution filter, <= will be used with 'max', = with 'equal' and >= with 'min'.
page no int [1 .. 200] Page number

Response

{
    "success":true,
    "wallpapers":[{"id":int,"width":int,"height":int,...},{"id":int,"width":int,"height":int,...},...]
}
                        
Name Type Description
id int ID of the wallpaper.
width int Width of the wallpaper.
height int Height of the wallpaper.
file_type string Format of the wallpaper.
file_size int Size of the wallpaper in (octets).
url_image string URL to the wallpaper.
url_thumb string URL to the wallpaper's thumbnail.
url_page string URL to the wallpaper's page on Mobile Abyss.
category string Name of the category.
category_id int ID of the category.
sub_category string Name of the sub-category.
sub_category_id int ID of ths sub-category.
user_name string Submitter of the wallpaper.
user_id int Submitter ID of the wallpaper.

Errors

{
    "success":false,
    "error":string
}
                        

Example - PHP


                        
$api_result = file_get_contents("https://api.alphacoders.com/3.0?auth=YOUR_KEY&method=category&type=phone&id=3");

$results = json_decode($api_result);

foreach($results->wallpapers as $wallpaper) {
    echo "Have wallpaper id: " . $wallpaper->id;
}

                    
                        


category_list

This method returns a list of the categories on Alpha Coders

Arguments

Parameter Required Value Description
auth yes string Your authentication key
method yes category_list Name of method

Response

{
    "success":true,
    "categories":[{"id":int,"desktop_wallpaper_count":int,"phone_wallpaper_count":int,...},{"id":int,"desktop_wallpaper_count":int,"phone_wallpaper_count":int,...},...]
}
                        
Name Type Description
id int ID of the category.
name string name of the category
desktop_wallpaper_count int Count of desktop wallpapers in the category
phone_wallpaper_count int Count of phone wallpapers in the category

Errors

{
    "success":false,
    "error":string
}
                        

Example - PHP


                        
$api_result = file_get_contents("https://api.alphacoders.com/3.0?auth=YOUR_KEY&method=category_list");

$results = json_decode($api_result);

foreach($results->categories as $category) {
    echo "Have category id: " . $category->id;
}

                    
                        

sub_category

This method returns wallpapers in a specific sub category

Arguments

Parameter Required Value Description
auth yes string Your authentication key
method yes sub_category Name of method
type yes desktop | phone Type of wallpapers to grab
id yes int ID of the sub category
sort no newest | rating How the wallpapers are sorted
min_ratio no float (requires max_ratio) (phone wallpapers only)
max_ratio no float (requires min_ratio) (phone wallpapers only)
width no int (requires height) Get only wallpapers with a certain width
height no int (requires width) Get only wallpapers with a certain height
operator no max | equal | min The type of resolution filter, <= will be used with 'max', = with 'equal' and >= with 'min'.
page no int [1 .. 200] Page number

Response

{
    "success":true,
    "wallpapers":[{"id":int,"width":int,"height":int,...},{"id":int,"width":int,"height":int,...},...]
}
                        
Name Type Description
id int ID of the wallpaper.
width int Width of the wallpaper.
height int Height of the wallpaper.
file_type string Format of the wallpaper.
file_size int Size of the wallpaper in (octets).
url_image string URL to the wallpaper.
url_thumb string URL to the wallpaper's thumbnail.
url_page string URL to the wallpaper's page on Mobile Abyss.
category string Name of the category.
category_id int ID of the category.
sub_category string Name of the sub-category.
sub_category_id int ID of ths sub-category.
user_name string Submitter of the wallpaper.
user_id int Submitter ID of the wallpaper.

Errors

{
    "success":false,
    "error":string
}
                        

Example - PHP


                        
$api_result = file_get_contents("https://api.alphacoders.com/3.0?auth=YOUR_KEY&method=sub_category&type=desktop&id=173812");

$results = json_decode($api_result);

foreach($results->wallpapers as $wallpaper) {
    echo "Have wallpaper id: " . $wallpaper->id;
}

                    
                        


sub_category_list

This method returns a list of the sub categories in a given category on Alpha Coders

Arguments

Parameter Required Value Description
auth yes string Your authentication key
method yes sub_category_list Name of method
id yes int The category id
page no int Page Number. 30 subcategories/page.

Response

{
   "success":true,
   "sub_categories":[{"id":int,"name":string,"desktop_wallpaper_count":int,"phone_wallpaper_count":int,...},{"id":int,"name":string,"desktop_wallpaper_count":int,"phone_wallpaper_count":int,...},...]
}
                       
Name Type Description
id int ID of the category.
name string name of the category
desktop_wallpaper_count int Count of desktop wallpapers in the category
phone_wallpaper_count int Count of phone wallpapers in the category

Errors

{
   "success":false,
   "error":string
}
                       

Example - PHP


                       
$api_result = file_get_contents("https://api.alphacoders.com/3.0?auth=YOUR_KEY&method=category_list");

$results = json_decode($api_result);

foreach($results->categories as $category) {
   echo "Have category id: " . $category->id;
}

                   
                       

tag

This method returns wallpapers with a given tag

Arguments

Parameter Required Value Description
auth yes string Your authentication key
method yes tag Name of method
type yes desktop | phone Type of wallpapers to grab
id yes int ID of the tag
sort no newest | rating How the wallpapers are sorted
min_ratio no float (requires max_ratio) (phone wallpapers only)
max_ratio no float (requires min_ratio) (phone wallpapers only)
width no int (requires height) Get only wallpapers with a certain width
height no int (requires width) Get only wallpapers with a certain height
operator no max | equal | min The type of resolution filter, <= will be used with 'max', = with 'equal' and >= with 'min'.
page no int [1 .. 200] Page number

Response

{
    "success":true,
    "wallpapers":[{"id":int,"width":int,"height":int,...},{"id":int,"width":int,"height":int,...},...]
}
                        
Name Type Description
id int ID of the wallpaper.
width int Width of the wallpaper.
height int Height of the wallpaper.
file_type string Format of the wallpaper.
file_size int Size of the wallpaper in (octets).
url_image string URL to the wallpaper.
url_thumb string URL to the wallpaper's thumbnail.
url_page string URL to the wallpaper's page on Mobile Abyss.
category string Name of the category.
category_id int ID of the category.
sub_category string Name of the sub-category.
sub_category_id int ID of ths sub-category.
user_name string Submitter of the wallpaper.
user_id int Submitter ID of the wallpaper.

Errors

{
    "success":false,
    "error":string
}
                        

Example - PHP


                        
$api_result = file_get_contents("https://api.alphacoders.com/3.0?auth=YOUR_KEY&method=tag&type=phone&id=114");

$results = json_decode($api_result);

foreach($results->wallpapers as $wallpaper) {
    echo "Have wallpaper id: " . $wallpaper->id;
}

                    
                        

search

This method returns wallpapers matching a given search

Arguments

Parameter Required Value Description
auth yes string Your authentication key
method yes search Name of method
type yes desktop | phone Type of wallpapers to grab
term yes string The search term used for matching. Max 128 characters
min_ratio no float (requires max_ratio) (phone wallpapers only)
max_ratio no float (requires min_ratio) (phone wallpapers only)
width no int (requires height) Get only wallpapers with a certain width
height no int (requires width) Get only wallpapers with a certain height
operator no max | equal | min The type of resolution filter, <= will be used with 'max', = with 'equal' and >= with 'min'.
page no int [1 .. 200] Page number

Response

{
    "success":true,
    "wallpapers":[{"id":int,"width":int,"height":int,...},{"id":int,"width":int,"height":int,...},...]
}
                        
Name Type Description
id int ID of the wallpaper.
width int Width of the wallpaper.
height int Height of the wallpaper.
file_type string Format of the wallpaper.
file_size int Size of the wallpaper in (octets).
url_image string URL to the wallpaper.
url_thumb string URL to the wallpaper's thumbnail.
url_page string URL to the wallpaper's page on Mobile Abyss.
category string Name of the category.
category_id int ID of the category.
sub_category string Name of the sub-category.
sub_category_id int ID of ths sub-category.
user_name string Submitter of the wallpaper.
user_id int Submitter ID of the wallpaper.

Errors

{
    "success":false,
    "error":string
}
                        

Example - PHP


                        
$api_result = file_get_contents("https://api.alphacoders.com/3.0?auth=YOUR_KEY&method=search&term=star+wars&type=phone");

$results = json_decode($api_result);

foreach($results->wallpapers as $wallpaper) {
    echo "Have wallpaper id: " . $wallpaper->id;
}

                    
                        

random

This method returns random wallpapers

Arguments

Parameter Required Value Description
auth yes string Your authentication key
method yes random Name of method
type yes desktop | phone Type of wallpapers to grab

Response

{
    "success":true,
    "wallpapers":[{"id":int,"width":int,"height":int,...},{"id":int,"width":int,"height":int,...},...]
}
                        
Name Type Description
id int ID of the wallpaper.
width int Width of the wallpaper.
height int Height of the wallpaper.
file_type string Format of the wallpaper.
file_size int Size of the wallpaper in (octets).
url_image string URL to the wallpaper.
url_thumb string URL to the wallpaper's thumbnail.
url_page string URL to the wallpaper's page on Mobile Abyss.
category string Name of the category.
category_id int ID of the category.
sub_category string Name of the sub-category.
sub_category_id int ID of ths sub-category.
user_name string Submitter of the wallpaper.
user_id int Submitter ID of the wallpaper.

Errors

{
    "success":false,
    "error":string
}
                        

Example - PHP


                        
$api_result = file_get_contents("https://api.alphacoders.com/3.0?auth=YOUR_KEY&method=random&type=desktop");

$results = json_decode($api_result);

foreach($results->wallpapers as $wallpaper) {
    echo "Have wallpaper id: " . $wallpaper->id;
}

                    
                        


wallpaper_info

This method returns information about a Wallpaper

Arguments

Parameter Required Value Description
auth yes string Your authentication key
method yes tag Name of method
type yes desktop | phone Type of wallpaper to grab
id yes int ID of the phone wallpaper

Response

{
    "success":true,
    "wallpaper":{"id":int,"name":string,"featured":boolean,"width":int,"height":int,...},
    "tags":[{"id":int,"name":string},{"id":int,"name":string},...]
}
                        


query_count

This method returns your query count for the month

Arguments

Parameter Required Value Description
auth yes string Your authentication key
method yes random Name of method

Response

{
    "success":true,
    "count":10000
}
                        
Name Type Description
count int Your query count for the month

Errors

{
    "success":false,
    "error":string
}
                        

Example - PHP


                        
$api_result = file_get_contents("https://api.alphacoders.com/3.0?auth=YOUR_KEY&method=query_count");

$results = json_decode($api_result);

echo $results->count