Home Artists Music Store About API Support Policies
Log In Create ID
HomeStatusManage

Welcome to the API Documentation

Introduction

Welcome to the API documentation for the Funtime3Freddy3 Records API. This documentation provides detailed information and examples on how to integrate with our API and leverage its features in your applications.

Getting Started

To get started with the Funtime3Freddy3 Records API, you will need an API token. You can obtain an API token by signing up for an account on our website. Once you have your API token, you can start making requests to our API endpoints.

Authentication

The Funtime3Fredddy3 Records API uses API tokens for authentication. You should include your API token in the headers of all your API requests for authentication. See the Authentication section for more details and examples.

API Types

The API provides the following types of objects:

Response Format

All responses from the API are returned in JSON format. See the Response Format section for more information on the structure of the API responses.

Examples of interacting with the API

In all these examples, you have to replace 'your_token_here' with your created token and 'your_type_here' with the type of the objects you want to receive.

1.Web

1.1.PHP:

Put the php beginning and ending
$token = 'your_token_here'; $type = 'your_type_here'; // for API V1 $id = 'your_id_here'; $apiV1 = "https://api.f3f3records.com/v1?token={$token}&type={$type}&id={$id}"; // for API V2 $keyword = 'your_keyword_here'; $apiV2 = "https://api.f3f3records.com/v2?token={$token}&type={$type}&id={$id}"; $options = [ 'http' => [ 'header' => "Authorization: Bearer {$token}\r\n" ] ]; $context = stream_context_create($options); $response = file_get_contents($apiV1, false, $context); if ($response === false) { echo "Error fetching data"; } else { $data = json_decode($response); $artistName = $data[0]->name; echo $artistName; }

1.2.Javascript:

        const token = "your_token_here";
        const type = "your_type_here";
        //for API V1
        const id = "your_id_here";
        const APIV1 = `https://api.f3f3records.com/v1?token=${token}&type=${type}&id=${id}`;
        //for API V2
        const keyword = "your_keyword_here"
        const APIV2 = `https://api.f3f3records.com/v2?token=${token}&type=${type}&id=${id}`;
        
        fetch(apiUrl, {
            headers: {
                Authorization: `Bearer ${token}`
            }
        })
        .then(response => response.json())
        .then(data => {
            const artistName = data[0].name;
            console.log(artistName);
        })
        .catch(error => {
            console.error(error);
        });

1.3.Python:

        import requests
        token = "your_token_here"
        type = "your_type_here"
        # for API V1
        id = "your_id_here"
        APIV1 = f"https://api.f3f3records.com/v1?token={token}&type={type}&id={id}"
        # for API V2
        keyword = "your_keyword_here"
        APIV2 = f"https://api.f3f3records.com/v2?token={token}&type={type}&id={id}"

        headers = {
        "Authorization": f"Bearer {token}"
        }
        response = requests.get(APIV1, headers=headers)
        data = response.json()
        artistName = data[0]['name']
        print(artistName)

1.4.Ruby:

        require 'net/http'
        require 'json'
        token = "your_token_here"
        type = "your_type_here"
        # for API V1
        id = "your_id_here"
        api_v1 = "https://api.f3f3records.com/v1?token=#{token}&type=#{type}&id=#{id}"
        # for API V2
        keyword = "your_keyword_here"
        api_v2 = "https://api.f3f3records.com/v2?token=#{token}&type=#{type}&id=#{id}"

        uri = URI(api_v1)
        http = Net::HTTP.new(uri.host, uri.port)
        http.use_ssl = true
        request = Net::HTTP::Get.new(uri)
        request['Authorization'] = "Bearer #{token}"
        response = http.request(request)
        data = JSON.parse(response.body)
        artist_name = data[0]['name']
        puts artist_name

2.Apps

2.1.Kotlin:

        import java.net.HttpURLConnection
        import java.net.URL
        import com.google.gson.Gson
        data class Artist(val name: String)
        fun main() {
            val token = "your_token_here"
            val type = "your_type_here"
            // for API V1
            val id = "your_id_here"
            val apiV1 = "https://api.f3f3records.com/v1?token=$token&type=$type&id=$id"
            // for API V2
            val keyword = "your_keyword_here"
            val apiV2 = "https://api.f3f3records.com/v2?token=$token&type=$type&id=$id"

        val url = URL(apiV1)
        val connection = url.openConnection() as HttpURLConnection
        connection.requestMethod = "GET"
        connection.setRequestProperty("Authorization", "Bearer $token")
        val responseCode = connection.responseCode
        if (responseCode == HttpURLConnection.HTTP_OK) {
            val response = connection.inputStream.bufferedReader().use { it.readText() }
            val gson = Gson()
            val artist = gson.fromJson(response, Array::class.java)[0]
            val artistName = artist.name
            println(artistName)
        } else {
            println("Error: $responseCode")
        }
        connection.disconnect()
    }

2.2.Swift:

        import Foundation
        struct Artist: Codable {
            let name: String
        }
        func fetchData() {
            let token = "your_token_here"
            let type = "your_type_here"
            // for API V1
            let id = "your_id_here"
            let apiV1 = "https://api.f3f3records.com/v1?token=\(token)&type=\(type)&id=\(id)"
            // for API V2
            let keyword = "your_keyword_here"
            let apiV2 = "https://api.f3f3records.com/v2?token=\(token)&type=\(type)&id=\(id)"

        guard let url = URL(string: apiV1) else {
                print("Invalid URL")
                return
        }
        var request = URLRequest(url: url)
        request.httpMethod = "GET"
        request.setValue("Bearer \(token)", forHTTPHeaderField: "Authorization")
        let task = URLSession.shared.dataTask(with: request) { (data, response, error) in
            if let error = error {
                print("Error: \(error.localizedDescription)")
                return
            }
            guard let data = data else {
                print("No data received")
                return
            }
            do {
                let artist = try JSONDecoder().decode([Artist].self, from: data)
                let artistName = artist[0].name
                print(artistName)
                } catch {
                print("Error decoding data: \(error.localizedDescription)")
                }
            }
        task.resume()
        }
        fetchData()