LoginSignup
392
330

【随時更新】一風変わったWeb APIをまとめてみた

Last updated at Posted at 2019-04-10

用途がイマイチよくわからない。
風変わりなWeb APIをまとめてみました。

※一部リンク切れやサ終で動かないものもありますがご了承ください。

ジョーク系

Official Joke API

ランダムなジョークを教えてくれるAPI。
フリ(setup)とオチ(punchline)にキーが分かれているところがニクい。

https://official-joke-api.appspot.com/jokes/random

icanhazdadjoke

「Dad Joke」(親父ギャグ)を教えてくれるAPI。
検索したり画像で取得したりもできます。

curl -H "Accept: application/json" https://icanhazdadjoke.com/
{"id":"W018xscFIe","joke":"Have you heard of the band 1023MB? They haven't got a gig yet.","status":200}

chucknorris.io

チャック・ノリスというアメリカの俳優を讃えるジョーク、
チャック・ノリス・ファクト(チャック・ノリスの真実)をランダムに教えてくれるAPI

https://api.chucknorris.io/jokes/random

yomomma-apiv2

Yo Mommaという番組のジョークをランダムに返すAPI

https://yomomma-api.herokuapp.com/jokes

Advice Slip JSON API

いい感じのアドバイスをくれるAPI

https://api.adviceslip.com/advice

Yes No

YesかNoで答えてくれるAPI
1万回に1回、maybeが返ることもあるらしい。

https://yesno.wtf/api

Corporate Bullshit/Buzzword Generator API

中身のないバズワード作ってくれるAPI

https://corporatebs-generator.sameerkumar.website/

Evil Insult Generator

ひどく侮辱する言葉を生成してくれるAPI

https://evilinsult.com/generate_insult.php?lang=en&type=json
https://evilinsult.com/generate_insult.php?lang=ja&type=text

エンタメ系

PokéAPI

ポケモンのデータを返してくれるAPI。

名前指定:https://pokeapi.co/api/v2/pokemon/pikachu/
図鑑№指定:https://pokeapi.co/api/v2/pokemon/151/

「とくせい」や「わざ」、イメージ画像も返してくれるのでゲームに使えそう。
※ただし英語です。

Harry Potter API

ハリー・ポッターの登場キャラや呪文の情報を返してくれるAPI

https://hp-api.onrender.com/api/characters
https://hp-api.onrender.com/api/spells

MCU-Countdown

次に公開されるMCU(マーベル・シネマティック・ユニバース)映画と公開までの日数を教えてくれるAPI

https://whenisthenextmcufilm.com/api

SWAPI The Star Wars API

スターウォーズの情報を返してくれるAPI

https://swapi.co/api/people/1/

Pixel Encounter

ランダムなピクセルでできたモンスターの画像を生成してくれるAPI

https://app.pixelencounter.com/api/basic/monsters/random

The Rick and Morty API

リック・アンド・モーティの情報を返してくれるAPI

https://rickandmortyapi.com/api/

The Bored API

退屈を紛らわす手段を提案してくれるAPI

https://www.boredapi.com/api/activity/

Trivia API

トリビアを教えてくれるAPI

https://opentdb.com/api.php?amount=10

NUMBERSAPI

数字に関する情報を教えてくれるAPI

http://numbersapi.com/random/trivia

お役立ち系

Free Dictionary API

単語の意味を辞書のように調べられるAPI

https://api.dictionaryapi.dev/api/v2/entries/en/dog

ジオコーディング系

International Space Station Current Location

ISS(国際宇宙ステーション)の現在位置を返してくれるAPI。

http://api.open-notify.org/iss-now.json

Hello, salut!

国コードやグローバルIPからその地域の挨拶を返してくれるAPI

https://fourtonfish.com/hellosalut/?lang=ja

ipapi

グローバルIPから位置情報を返してくれるAPI

https://ipapi.co/126.66.83.5/json/

IP Geolocation API

グローバルIPからロケーション情報を返してくれるAPI

https://api.ipgeolocationapi.com/geolocate

REST Countries

国の情報を返してくれるAPI

https://restcountries.eu/rest/v2/name/japan

日付系

Worldwide Public Holidays API

年と国コードで祝日リストを返してくれるAPI

https://date.nager.at/api/v2/PublicHolidays/2020/JP

egno/work-calendar

日付がロシアの休日かどうか返してくれるAPI

現在日付:https://datazen.katren.ru/calendar/day/
日付指定:https://datazen.katren.ru/calendar/day/2019-04-10/

気象・環境系

Carbon Intensity API

イギリスの二酸化炭素排出量を返してくれるAPI

https://api.carbonintensity.org.uk/intensity

通貨系

Foreign exchange rates API

為替レートを返してくれるAPI

https://api.exchangeratesapi.io/latest?base=JPY

バリデート系

PurgoMalum

不適切な言葉を「*」に置き換えて返してくれるAPI

https://www.purgomalum.com/service/xml?text=this%20is%20a%20pen
https://www.purgomalum.com/service/xml?text=fuck%20you

genderize.io

名前から性別を判定してくれるAPI

https://api.genderize.io/?name=jon
https://api.genderize.io/?name=kate

変換系

Hexabin

2、8、10、16進数を相互変換してくれるAPI

https://hexabin.herokuapp.com/api/binary/1010/convert/decimal
https://hexabin.herokuapp.com/api/hex/FFFF/convert/binary

人物系

Steven SeGALLERY

ランダムにスティーブン・セガールの画像を返してくれるAPI

https://www.stevensegallery.com/300/300

PlaceCage

ランダムにニコラス・ケイジの画像を返してくれるAPI

https://www.placecage.com/200/300

Fill Murray

ランダムにビル・マーレイの画像を返してくれるAPI

https://www.fillmurray.com/200/301

動物系

Dog API

ランダムに犬の画像を返してくれるAPI

https://dog.ceo/api/breeds/image/random

Dog-facts-API

ランダムに犬に関する情報をくれるAPI

https://dog-facts-api.herokuapp.com/api/v1/resources/dogs?number=1

RANDOMCAT

ランダムに猫の画像を返してくれるAPI

https://aws.random.cat/meow

RANDOMFOX

ランダムに狐の画像を返してくれるAPI

https://randomfox.ca/floof/

PlaceGOAT

ランダムにヤギの画像を返してくれるAPI

https://placegoat.com/400

shibe.online

ランダムに柴犬の画像を返してくれるAPI

http://shibe.online/api/shibes?count=5&urls=true&httpsUrls=true

HTTP Cats

HTTPステータスコードに対応した猫の画像を返してくれるAPI

https://http.cat/500

GitHubでソースも公開されている。
https://github.com/httpcats/http.cat

飲食系

Foodish

ランダムに料理の画像を返してくれるAPI

https://foodish-api.herokuapp.com/api
https://foodish-api.herokuapp.com/api/images/pizza

PUNK API

パンクIPAで有名なBrewDogのビールの情報を返してくれるAPI

https://api.punkapi.com/v2/beers

TacoFancy API

タコスのレシピを返してくれるAPI

http://taco-randomizer.herokuapp.com/random/

開発系

JSONPlaceholder

開発時に便利なスタブを提供してくれるAPI

https://jsonplaceholder.typicode.com/users
https://jsonplaceholder.typicode.com/users/2
https://jsonplaceholder.typicode.com/todos?userId=2

Online UUID Generator

UUIDを生成してくれるAPI

https://www.uuidtools.com/api/generate/v1
https://www.uuidtools.com/api/generate/v1/count/10

httpstat.us

任意のHTTPステータスコードを返してくれるスタブ

https://httpstat.us/200
https://httpstat.us/404?sleep=5000
https://httpstat.us/Random/200,500

QR code API

QRコードを作ってくれるAPI

https://api.qrserver.com/v1/create-qr-code/?size=300x300&data=https://qiita.com/danishi/items/42d8adf6291515e62284

ipify

自分のグローバルIPを返してくれるAPI

https://api.ipify.org/?format=json

uinames.com

適当な人名を生成してくれるAPI
国や性別を指定可能。

https://uinames.com/api/?gender=female
https://uinames.com/api/?region=japan

Client HTTP/2 Support API

HTTPクライアントがHTTP/2をサポートしているか調べるAPI

https://http2.pro/api/v1

Registered Domain Names Search

登録されているドメインか調べてくれるAPI

https://api.domainsdb.info/search?query=facebook&tld=com

DISIFY

メールアドレスやメールドメインの書式や到達性チェックを行ってくれるAPI

https://www.disify.com/api/email/hoge@example.com

CountAPI

指定した名前空間とキーで呼び出された回数のカウントを取ってくれるAPI

https://api.countapi.xyz/hit/hoge/fuga

Loripsum

lorem ipsum(ダミーテキスト)を生成してくれるAPI

https://loripsum.net/api

CleanURI

短縮URLを作成してくれるAPI

curl -XPOST -d "url=https://qiita.com/danishi/items/42d8adf6291515e62284" "https://cleanuri.com/api/v1/shorten"
{"result_url":"https:\/\/cleanuri.com\/8Y8XXQ"}

Changelog API

Github上のOSSリポジトリの変更ログを探索するAPI

https://changelogs.md/api/

cdnjs

CDNライブラリを検索してくれるAPI

https://api.cdnjs.com/libraries/jquery

Identicon Generator

Identiconを作ってくれるAPI

https://api.kwelo.com/v1/media/identicon/some.user@example.com

Public API for Public APIs

無料公開されているAPIリスト(public-apis/public-apis)の情報を返してくれるAPI

https://api.publicapis.org/entries
https://api.publicapis.org/random?auth=null


APIキーを取得したり、認証を通さなくても使えるものだけでまとめました。

他にもまだまだありそうなので、見つけ次第更新していきます。

392
330
2

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
392
330