Find an API

Search public APIs with auth details & Postman guides

← All APIs

Advice Slip API

api.adviceslip.com · Developer Tools

Developer Tools No Auth Free & Open Fun Advice Developer Tools

Random pieces of life advice. Simple, fun API for beginner practice. No API key required.

Authentication

No authentication requiredFree to use with no key needed.

Sample Requests

GET Random advice

Get a random piece of advice.

https://api.adviceslip.com/advice

Hover any highlighted part to learn what it does

curl -X GET "https://api.adviceslip.com/advice"
import requests
response = requests.get(
    "https://api.adviceslip.com/advice",
)
print(response.json())
const url = 'https://api.adviceslip.com/advice';

const response = await fetch(url); 
const data = await response.json();
console.log(data);
package main

import (
	"fmt"
	"io"
	"net/http"
)

func main() {
	targetURL := "https://api.adviceslip.com/advice"
	req, _ := http.NewRequest("GET", targetURL, nil)

	client := &http.Client{}
	resp, _ := client.Do(req)
	defer resp.Body.Close()
	body, _ := io.ReadAll(resp.Body)
	fmt.Println(string(body))
}
require "net/http"
require "json"

uri = URI("https://api.adviceslip.com/advice")

http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"

req = Net::HTTP::Get.new(uri)

res = http.request(req)
puts JSON.parse(res.body)
<?php
$url = "https://api.adviceslip.com/advice";
$opts = ["http" => [
    "method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));
GET Search advice

Search for advice about happiness.

https://api.adviceslip.com/advice/search/happiness

Hover any highlighted part to learn what it does

curl -X GET "https://api.adviceslip.com/advice/search/happiness"
import requests
response = requests.get(
    "https://api.adviceslip.com/advice/search/happiness",
)
print(response.json())
const url = 'https://api.adviceslip.com/advice/search/happiness';

const response = await fetch(url); 
const data = await response.json();
console.log(data);
package main

import (
	"fmt"
	"io"
	"net/http"
)

func main() {
	targetURL := "https://api.adviceslip.com/advice/search/happiness"
	req, _ := http.NewRequest("GET", targetURL, nil)

	client := &http.Client{}
	resp, _ := client.Do(req)
	defer resp.Body.Close()
	body, _ := io.ReadAll(resp.Body)
	fmt.Println(string(body))
}
require "net/http"
require "json"

uri = URI("https://api.adviceslip.com/advice/search/happiness")

http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"

req = Net::HTTP::Get.new(uri)

res = http.request(req)
puts JSON.parse(res.body)
<?php
$url = "https://api.adviceslip.com/advice/search/happiness";
$opts = ["http" => [
    "method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));

Postman Setup Guide

Get Postman ↗
  1. No API key needed
  2. Random: GET https://api.adviceslip.com/advice
  3. By ID: GET https://api.adviceslip.com/advice/42
  4. Search: GET https://api.adviceslip.com/advice/search/{keyword}
  5. Note: Response caching is disabled — always get fresh advice

What can you build with Advice Slip API?

Advice Slip API is a Developer Tools API. Developers commonly use developer tools APIs for:

  • automating code review and quality checks
  • integrating CI/CD pipelines and build systems
  • managing feature flags and A/B tests
  • monitoring errors and application performance
  • generating and validating test data

No authentication required. This API is open — no signup or key needed. Ideal for quick prototypes and public-facing features. Advice Slip API is free to use, making it a low-risk choice to experiment with.

New to APIs? Read our beginner's guide

Open documentation ↗