LoginSignup
172

More than 3 years have passed since last update.

無料で使える (癒やされたいだけの) 公開APIリスト: ねこ、いぬ、キツネ、柴犬、ジブリ

Last updated at Posted at 2021-03-20

無料で使える公開 API のリスト:48 カテゴリ という過去Qiita記事で非常に便利そうなAPI集が紹介されていた。

が、その中にただただ癒やされたいためだけに触りたいカテゴリが存在したのでそのメモ。

癒やされたいためだけのAPI抜粋

ねこ

Cat Facts

  • Cat Facts
    • ねこネタを返してくれる
    • 実行例: https://cat-fact.herokuapp.com/facts
"text":"Domestic cats spend about 70 percent of the day sleeping and 15 percent of the day grooming."
"text":"Cats make about 100 different sounds. Dogs make only about 10."

Cats

  • Cats
    • Tumblrからのねこデータ
    • 実行例: https://api.thecatapi.com/v1/images/search
[{"breeds":[],"id":"c5b","url":"https://cdn2.thecatapi.com/images/c5b.jpg","width":627,"height":650}]

RandomCat

  • RandomCat
    • ねこをランダムで表示してくれる
    • 実行例: https://aws.random.cat/meow
{"file":"https:\/\/purr.objects-us-east-1.dream.io\/i\/1222.jpg"}

HTTPCat

  • HTTPCat
    • HTTP Status とねこ
    • 実行例: https://http.cat/[ステータスコード]
    • やっぱり https://http.cat/404 がかわいい

いぬ

Dogs

  • Dogs
    • Stanford Dogs Datasetからのいぬデータ
    • 実行例: https://dog.ceo/api/breeds/image/random
{
    "message": "https://images.dog.ceo/breeds/terrier-fox/n02095314_1820.jpg",
    "status": "success"
}

See the Pen Dog Api Sample by YAMADA Nobuko (@e99h2121) on CodePen.

<!DOCTYPE html>
<html>
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" ></script>
<script>
        function getDog(){
            $.getJSON("https://dog.ceo/api/breeds/image/random", function( data ) {
                $(".json pre").html(JSON.stringify(data, null, 4));
                $(".image-content").html("<img src='" + data.message + "'>");
            });
        }
        $(document).ready(function() {
            getDog();
        });
</script>
</head>
<body>
  <h4>Image</h4>
  <button type=“button” onclick="getDog()">いぬ取得</button>
  <div class="image-content">
</div>
</body>
</html>

RandomDogs

  • RandomDog
    • いぬをランダムで表示してくれる
    • 実行例: https://random.dog/woof.json
{"fileSizeBytes":1597870,"url":"https://random.dog/ca765459-c054-4d0f-9ecd-c4ea059c3fc6.JPG"}

キツネ

RandomFox

  • RandomFox
    • キツネをランダムで表示してくれる
    • 実行例: https://randomfox.ca/floof/
{"image":"https:\/\/randomfox.ca\/images\/23.jpg","link":"https:\/\/randomfox.ca\/?i=23"}

柴犬

  • Shibe.Online
    • 柴犬をランダムで表示してくれる
    • 実行例: http://shibe.online/api/shibes?count=1&urls=true&httpsUrls=true
["https://cdn.shibe.online/shibes/9afff646be431f037509233e42f6b27a6fc74a99.jpg"]

ジブリ

{
    "id": "2baf70d1-42bb-4437-b551-e5fed5a87abe",
    "title": "Castle in the Sky",
    "original_title": "天空の城ラピュタ",
    "original_title_romanised": "Tenkū no shiro Rapyuta",
    "description": "The orphan Sheeta inherited a mysterious crystal that links her to the mythical sky-kingdom of Laputa. With the help of resourceful Pazu and a rollicking band of sky pirates, she makes her way to the ruins of the once-great civilization. Sheeta and Pazu must outwit the evil Muska, who plans to use Laputa's science to make himself ruler of the world.",
    "director": "Hayao Miyazaki",
    "producer": "Isao Takahata",
    "release_date": "1986",
    "running_time": "124",
    "rt_score": "95",
    "people": [
      "https://ghibliapi.herokuapp.com/people/"
    ],
    "species": [
      "https://ghibliapi.herokuapp.com/species/af3910a6-429f-4c74-9ad5-dfe1c4aa04f2"
    ],
    "locations": [
      "https://ghibliapi.herokuapp.com/locations/"
    ],
    "vehicles": [
      "https://ghibliapi.herokuapp.com/vehicles/"
    ],
    "url": "https://ghibliapi.herokuapp.com/films/2baf70d1-42bb-4437-b551-e5fed5a87abe"
  },

以上メモ。
もしなにがしか参考になればさいわいです。

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
172