Fuck Off as a Service

Fuck Off as a Service

Social

Asks someone to fuck off. /awesome/:from -- Will return content of the form 'This is Fucking Awesome. - :from'. /bye/:from Will return content of the form 'Fuckity bye! - :from'. /gfy/:name/:from Will return content of the form 'Golf foxtrot yankee, :name. - :from'

Visit API

📚 Documentation & Examples

Everything you need to integrate with Fuck Off as a Service

🚀 Quick Start Examples

Fuck Off as a Service Javascript Examplejavascript
// Fuck Off as a Service API Example
const response = await fetch('https://www.foaas.com', {
    method: 'GET',
    headers: {
        'Content-Type': 'application/json'
    }
});

const data = await response.json();
console.log(data);

Introduction to FOAAS API

FOAAS (Fuck Off As A Service) is a funny web-based API that allows developers to generate creative insults and profanity-laced messages. The API has been designed to serve as a useful tool for programmers to spice up their applications with colorful language in a simple and rapid way.

Getting Started with FOAAS API

The FOAAS API is a RESTful web service that is accessible via HTTP. To use this API, you will need to access the FOAAS API URL and supply the required parameters. Here is an example code in JavaScript for the /version endpoint:

const baseURL = "https://foaas.com";
const endpoint = "/version";
const apiUrl = `${baseURL}${endpoint}`;

const fetchOptions = {
  method: "GET",
  headers: { Accept: "application/json" },
};

fetch(apiUrl, fetchOptions)
  .then((response) => response.json())
  .then((data) => console.log(data))
  .catch((error) => console.log(error));

This snippet of code sends an HTTP GET request to https://foaas.com/version. Then it uses fetch to get the response and returns it in JavaScript Object Notation (JSON) format.

Formatting Endpoints

The FOAAS API has an array of over 70 endpoints that can generate a wide range of responses. Each endpoint has a unique URL that takes one or more parameters in string format and returns a customized response. Here is an example code in JavaScript for the /donut/:name/:topping endpoint:

const baseURL = "https://foaas.com";
const endpoint = "/donut/:name/:topping";
const apiUrl = `${baseURL}${endpoint}`.replace(
  ":name",
  "Mike"
).replace(":topping", "sprinkles");

const fetchOptions = {
  method: "GET",
  headers: { Accept: "application/json" },
};

fetch(apiUrl, fetchOptions)
  .then((response) => response.json())
  .then((data) => console.log(data))
  .catch((error) => console.log(error));

This code sends an HTTP GET request to \donut\Mike\sprinkles. The URL parameters, such as :name and :topping are replaced with actual values using JavaScript's replace method.

Conclusion

FOAAS API is a funny and useful tool for programmers who want to add a bit of humor to their applications. It is easy to use and requires only a few lines of code. So, if you are feeling creative and want to generate a quick insult or profanity-laced message, look no further than FOAAS API.

📊 30-Day Uptime History

Daily uptime tracking showing online vs offline minutes

Jul 3Jul 5Jul 7Jul 9Jul 11Jul 13Jul 15Jul 17Jul 19Jul 21Jul 23Jul 25Jul 27Jul 29Aug 104008001440Minutes
Online
Offline

Related APIs in Social