{"name":"MyAPIs","description":"認証不要・CORS全開放で使える無料のテスト用REST API。都道府県・元号・四字熟語などの日本語データをJSONで返し、画像・音声・SSE・各種HTTPステータスまで試せるAPI Zooも公開しています。","documentation":"/openapi.json","links":{"reference":"/","apiList":"/docs","openapi":"/openapi.json","asyncapi":"/asyncapi.json","llms":"/llms.txt","sitemap":"/sitemap.xml"},"conventions":{"list":"一覧は { count, total, limit, offset, data } で返る","single":"1件はオブジェクトをそのまま返す","error":"エラーは { error: { code, message, hint } }","commonQuery":{"fields":"?fields=a,b で欲しいフィールドだけに絞る","pretty":"?pretty=1 で整形して返す","limit":"?limit= と ?offset= でページング（limit の上限は 1000）","sort":"?sort=<field>&order=asc|desc で並び替え","seed":"/random は ?seed= を付けると結果が決定的になる"}},"count":13,"apis":[{"slug":"prefectures","title":"都道府県","description":"日本の47都道府県。人口は令和2年（2020年）国勢調査、面積は国土地理院の全国都道府県市区町村別面積調（km²）。","url":"/prefectures","documentation":"/docs/prefectures","count":47,"idField":"code","idAliases":["name","romaji","isoCode"],"searchFields":["name","kana","romaji","capital","capitalRomaji","region"],"fields":["code","name","kana","romaji","capital","capitalRomaji","region","area","population","isoCode"],"storage":"static","sample":{"code":"01","name":"北海道","kana":"ほっかいどう","romaji":"Hokkaido","capital":"札幌市","capitalRomaji":"Sapporo","region":"北海道","area":83424,"population":5224614,"isoCode":"JP-01"},"endpoints":[{"path":"/prefectures","description":"このAPIのメタ情報"},{"path":"/prefectures/all","description":"全件取得","query":["limit","offset","sort","order","fields","pretty"]},{"path":"/prefectures/random","description":"ランダムに1件（?count=n で複数、?seed= で再現可能）","query":["count","seed","fields","pretty"]},{"path":"/prefectures/search","description":"部分一致検索（対象: name, kana, romaji, capital, capitalRomaji, region）","query":["q","limit","offset","sort","order","fields","pretty"]},{"path":"/prefectures/fields","description":"フィールド名の一覧"},{"path":"/prefectures/getCode","description":"そのフィールドの全件分の値（?id= を付けると1件分）","query":["id","unique","pretty"]},{"path":"/prefectures/:code","description":"ID 指定で1件"},{"path":"/prefectures/:code/:field","description":"1件の特定フィールドだけ"}],"examples":["/prefectures/13","/prefectures/東京都","/prefectures/Tokyo","/prefectures/random","/prefectures/all?sort=population&order=desc&limit=5","/prefectures/getCapital","/prefectures/search?q=九州"]},{"slug":"eras","title":"元号","description":"大化（645年）から令和までの全元号。南北朝時代は court に「南朝」「北朝」を入れている（両朝で用いられた建武は南朝側の1件のみ収録）。改元年は前後の元号で重複する。継続中の元号は endYear と years が null で ongoing が true。","url":"/eras","documentation":"/docs/eras","count":248,"idField":"name","idAliases":["kana","romaji"],"searchFields":["name","kana","romaji","period","court"],"fields":["name","kana","romaji","startYear","endYear","period","court","ongoing","years"],"storage":"static","sample":{"name":"大化","kana":"たいか","romaji":"Taika","startYear":645,"endYear":650,"period":"飛鳥","court":null,"ongoing":false,"years":5},"endpoints":[{"path":"/eras","description":"このAPIのメタ情報"},{"path":"/eras/all","description":"全件取得","query":["limit","offset","sort","order","fields","pretty"]},{"path":"/eras/random","description":"ランダムに1件（?count=n で複数、?seed= で再現可能）","query":["count","seed","fields","pretty"]},{"path":"/eras/search","description":"部分一致検索（対象: name, kana, romaji, period, court）","query":["q","limit","offset","sort","order","fields","pretty"]},{"path":"/eras/fields","description":"フィールド名の一覧"},{"path":"/eras/getName","description":"そのフィールドの全件分の値（?id= を付けると1件分）","query":["id","unique","pretty"]},{"path":"/eras/year/:year","description":"西暦からその年の元号を引く（改元年は複数返る）"},{"path":"/eras/:name","description":"ID 指定で1件"},{"path":"/eras/:name/:field","description":"1件の特定フィールドだけ"}],"examples":["/eras/令和","/eras/Genroku","/eras/year/1600","/eras/random","/eras/search?q=%E6%B1%9F%E6%88%B8","/eras/all?fields=name,startYear&limit=10"]},{"slug":"sekki","title":"二十四節気","description":"立春から大寒までの二十四節気。日付は太陽黄経で決まるため年によって1日前後する（approxDate は目安）。","url":"/sekki","documentation":"/docs/sekki","count":24,"idField":"name","idAliases":["order","kana","romaji"],"searchFields":["name","kana","romaji","season","meaning"],"fields":["order","name","kana","romaji","season","approxDate","meaning"],"storage":"static","sample":{"order":1,"name":"立春","kana":"りっしゅん","romaji":"Risshun","season":"春","approxDate":"2月4日頃","meaning":"暦の上で春が始まる日。1年の起点とされ、八十八夜や二百十日はここから数える。"},"endpoints":[{"path":"/sekki","description":"このAPIのメタ情報"},{"path":"/sekki/all","description":"全件取得","query":["limit","offset","sort","order","fields","pretty"]},{"path":"/sekki/random","description":"ランダムに1件（?count=n で複数、?seed= で再現可能）","query":["count","seed","fields","pretty"]},{"path":"/sekki/search","description":"部分一致検索（対象: name, kana, romaji, season, meaning）","query":["q","limit","offset","sort","order","fields","pretty"]},{"path":"/sekki/fields","description":"フィールド名の一覧"},{"path":"/sekki/getOrder","description":"そのフィールドの全件分の値（?id= を付けると1件分）","query":["id","unique","pretty"]},{"path":"/sekki/:name","description":"ID 指定で1件"},{"path":"/sekki/:name/:field","description":"1件の特定フィールドだけ"}],"examples":["/sekki/立春","/sekki/10","/sekki/random","/sekki/all?fields=name,approxDate","/sekki/search?q=%E5%A4%8F"]},{"slug":"eto","title":"十二支","description":"十二支と、それぞれが表す動物・方角・時刻。yearMod12 は「西暦をこの数で割った余りがその年の干支」を表す（例: 2020 % 12 = 4 で子年）。","url":"/eto","documentation":"/docs/eto","count":12,"idField":"name","idAliases":["order","kana","romaji","english","animal"],"searchFields":["name","kana","romaji","english","animal","animalKana"],"fields":["order","name","kana","animal","animalKana","romaji","english","direction","hour","yearMod12","recentYear"],"storage":"static","sample":{"order":1,"name":"子","kana":"ね","animal":"鼠","animalKana":"ねずみ","romaji":"Ne","english":"Rat","direction":"北","hour":"23時〜1時","yearMod12":4,"recentYear":2020},"endpoints":[{"path":"/eto","description":"このAPIのメタ情報"},{"path":"/eto/all","description":"全件取得","query":["limit","offset","sort","order","fields","pretty"]},{"path":"/eto/random","description":"ランダムに1件（?count=n で複数、?seed= で再現可能）","query":["count","seed","fields","pretty"]},{"path":"/eto/search","description":"部分一致検索（対象: name, kana, romaji, english, animal, animalKana）","query":["q","limit","offset","sort","order","fields","pretty"]},{"path":"/eto/fields","description":"フィールド名の一覧"},{"path":"/eto/getOrder","description":"そのフィールドの全件分の値（?id= を付けると1件分）","query":["id","unique","pretty"]},{"path":"/eto/:name","description":"ID 指定で1件"},{"path":"/eto/:name/:field","description":"1件の特定フィールドだけ"}],"examples":["/eto/午","/eto/7","/eto/Horse","/eto/random","/eto/getAnimal"]},{"slug":"horoscope","title":"12星座","description":"西洋占星術の12星座。期間・四大元素（火地風水）・三区分・支配星つき。","url":"/horoscope","documentation":"/docs/horoscope","count":12,"idField":"name","idAliases":["order","kana","latin","english"],"searchFields":["name","kana","latin","english","element","ruler"],"fields":["order","name","kana","latin","english","symbol","from","to","element","quality","ruler"],"storage":"static","sample":{"order":1,"name":"牡羊座","kana":"おひつじざ","latin":"Aries","english":"Ram","symbol":"♈","from":"3月21日","to":"4月19日","element":"火","quality":"活動宮","ruler":"火星"},"endpoints":[{"path":"/horoscope","description":"このAPIのメタ情報"},{"path":"/horoscope/all","description":"全件取得","query":["limit","offset","sort","order","fields","pretty"]},{"path":"/horoscope/random","description":"ランダムに1件（?count=n で複数、?seed= で再現可能）","query":["count","seed","fields","pretty"]},{"path":"/horoscope/search","description":"部分一致検索（対象: name, kana, latin, english, element, ruler）","query":["q","limit","offset","sort","order","fields","pretty"]},{"path":"/horoscope/fields","description":"フィールド名の一覧"},{"path":"/horoscope/getOrder","description":"そのフィールドの全件分の値（?id= を付けると1件分）","query":["id","unique","pretty"]},{"path":"/horoscope/:name","description":"ID 指定で1件"},{"path":"/horoscope/:name/:field","description":"1件の特定フィールドだけ"}],"examples":["/horoscope/獅子座","/horoscope/Leo","/horoscope/5","/horoscope/random","/horoscope/search?q=%E7%81%AB","/horoscope/getLatin"]},{"slug":"birthstones","title":"誕生石","description":"月ごとの誕生石。全国宝石卸商協同組合が2021年に改訂した日本の誕生石リストに基づく。","url":"/birthstones","documentation":"/docs/birthstones","count":12,"idField":"month","idAliases":[],"searchFields":["stones","stonesEn","meaning"],"fields":["month","stones","stonesEn","meaning"],"storage":"static","sample":{"month":1,"stones":["ガーネット"],"stonesEn":["Garnet"],"meaning":"真実・友愛・忠実"},"endpoints":[{"path":"/birthstones","description":"このAPIのメタ情報"},{"path":"/birthstones/all","description":"全件取得","query":["limit","offset","sort","order","fields","pretty"]},{"path":"/birthstones/random","description":"ランダムに1件（?count=n で複数、?seed= で再現可能）","query":["count","seed","fields","pretty"]},{"path":"/birthstones/search","description":"部分一致検索（対象: stones, stonesEn, meaning）","query":["q","limit","offset","sort","order","fields","pretty"]},{"path":"/birthstones/fields","description":"フィールド名の一覧"},{"path":"/birthstones/getMonth","description":"そのフィールドの全件分の値（?id= を付けると1件分）","query":["id","unique","pretty"]},{"path":"/birthstones/:month","description":"ID 指定で1件"},{"path":"/birthstones/:month/:field","description":"1件の特定フィールドだけ"}],"examples":["/birthstones/4","/birthstones/random","/birthstones/all","/birthstones/getStones"]},{"slug":"yojijukugo","title":"四字熟語","description":"漢字四文字の熟語。出典が漢籍にあるものは source に典拠を記している。二字・五字の故事成語は /kotowaza にある。","url":"/yojijukugo","documentation":"/docs/yojijukugo","count":48,"idField":"word","idAliases":["kana"],"searchFields":["word","kana","meaning","source"],"fields":["word","kana","meaning","source"],"storage":"static","sample":{"word":"一意専心","kana":"いちいせんしん","meaning":"他に心を移さず、ひとつのことに集中すること。","source":"管子 内業"},"endpoints":[{"path":"/yojijukugo","description":"このAPIのメタ情報"},{"path":"/yojijukugo/all","description":"全件取得","query":["limit","offset","sort","order","fields","pretty"]},{"path":"/yojijukugo/random","description":"ランダムに1件（?count=n で複数、?seed= で再現可能）","query":["count","seed","fields","pretty"]},{"path":"/yojijukugo/search","description":"部分一致検索（対象: word, kana, meaning, source）","query":["q","limit","offset","sort","order","fields","pretty"]},{"path":"/yojijukugo/fields","description":"フィールド名の一覧"},{"path":"/yojijukugo/getWord","description":"そのフィールドの全件分の値（?id= を付けると1件分）","query":["id","unique","pretty"]},{"path":"/yojijukugo/:word","description":"ID 指定で1件"},{"path":"/yojijukugo/:word/:field","description":"1件の特定フィールドだけ"}],"examples":["/yojijukugo/一期一会","/yojijukugo/random","/yojijukugo/search?q=%E8%AB%96%E8%AA%9E","/yojijukugo/all?fields=word,kana","/yojijukugo/getWord"]},{"slug":"kotowaza","title":"ことわざ・故事成語","description":"日本のことわざと、漢籍などに由来する故事成語。type でどちらかを区別できる。四字熟語は /yojijukugo にある。","url":"/kotowaza","documentation":"/docs/kotowaza","count":54,"idField":"text","idAliases":["kana"],"searchFields":["text","kana","meaning","type","source"],"fields":["text","kana","meaning","type","source"],"storage":"static","sample":{"text":"圧巻","kana":"あっかん","meaning":"全体の中で最も優れた部分。科挙で最優秀の答案を一番上に載せた故事から。","type":"故事成語","source":"科挙の故事"},"endpoints":[{"path":"/kotowaza","description":"このAPIのメタ情報"},{"path":"/kotowaza/all","description":"全件取得","query":["limit","offset","sort","order","fields","pretty"]},{"path":"/kotowaza/random","description":"ランダムに1件（?count=n で複数、?seed= で再現可能）","query":["count","seed","fields","pretty"]},{"path":"/kotowaza/search","description":"部分一致検索（対象: text, kana, meaning, type, source）","query":["q","limit","offset","sort","order","fields","pretty"]},{"path":"/kotowaza/fields","description":"フィールド名の一覧"},{"path":"/kotowaza/getText","description":"そのフィールドの全件分の値（?id= を付けると1件分）","query":["id","unique","pretty"]},{"path":"/kotowaza/:text","description":"ID 指定で1件"},{"path":"/kotowaza/:text/:field","description":"1件の特定フィールドだけ"}],"examples":["/kotowaza/急がば回れ","/kotowaza/random","/kotowaza/search?q=%E6%95%85%E4%BA%8B%E6%88%90%E8%AA%9E","/kotowaza/all?fields=text,meaning","/kotowaza/getType?unique=1"]},{"slug":"quotes","title":"名言","description":"古今東西の名言。出典が明確でないものは source に「帰属には諸説あり」と記している。D1 に格納。","url":"/quotes","documentation":"/docs/quotes","count":60,"idField":"id","idAliases":[],"searchFields":["text","author","authorKana","category","source"],"fields":["id","text","author","authorKana","lang","category","source"],"storage":"d1","sample":{"id":1,"text":"為せば成る 為さねば成らぬ 何事も 成らぬは人の 為さぬなりけり","author":"上杉鷹山","authorKana":"うえすぎようざん","lang":"ja","category":"行動","source":"上杉鷹山の歌として伝わる"},"endpoints":[{"path":"/quotes","description":"このAPIのメタ情報"},{"path":"/quotes/all","description":"全件取得","query":["limit","offset","sort","order","fields","pretty"]},{"path":"/quotes/random","description":"ランダムに1件（?count=n で複数、?seed= で再現可能）","query":["count","seed","fields","pretty"]},{"path":"/quotes/search","description":"部分一致検索（対象: text, author, authorKana, category, source）","query":["q","limit","offset","sort","order","fields","pretty"]},{"path":"/quotes/fields","description":"フィールド名の一覧"},{"path":"/quotes/getId","description":"そのフィールドの全件分の値（?id= を付けると1件分）","query":["id","unique","pretty"]},{"path":"/quotes/:id","description":"ID 指定で1件"},{"path":"/quotes/:id/:field","description":"1件の特定フィールドだけ"}],"examples":["/quotes/1","/quotes/random","/quotes/all?limit=5","/quotes/search?q=Dijkstra","/quotes/getAuthor?unique=1"]},{"slug":"shogi-pieces","title":"将棋の駒","description":"将棋の駒8種と成駒6種。id は USI 表記（成駒は先頭に +）、count は片方の陣営の初期枚数。","url":"/shogi-pieces","documentation":"/docs/shogi-pieces","count":14,"idField":"id","idAliases":["name","kana","romaji","abbr","english"],"searchFields":["name","kana","romaji","english","moves","note"],"fields":["id","name","kana","romaji","abbr","english","count","isPromoted","promotesTo","moves","note"],"storage":"static","sample":{"id":"K","name":"玉将","kana":"ぎょくしょう","romaji":"Gyokusho","abbr":"玉","english":"King","count":1,"isPromoted":false,"promotesTo":null,"moves":"縦横斜めの隣接する8マスに1マス動ける。取られると負け。","note":"上位者が王将（おうしょう）、下位者が玉将を使う慣習がある。"},"endpoints":[{"path":"/shogi-pieces","description":"このAPIのメタ情報"},{"path":"/shogi-pieces/all","description":"全件取得","query":["limit","offset","sort","order","fields","pretty"]},{"path":"/shogi-pieces/random","description":"ランダムに1件（?count=n で複数、?seed= で再現可能）","query":["count","seed","fields","pretty"]},{"path":"/shogi-pieces/search","description":"部分一致検索（対象: name, kana, romaji, english, moves, note）","query":["q","limit","offset","sort","order","fields","pretty"]},{"path":"/shogi-pieces/fields","description":"フィールド名の一覧"},{"path":"/shogi-pieces/getId","description":"そのフィールドの全件分の値（?id= を付けると1件分）","query":["id","unique","pretty"]},{"path":"/shogi-pieces/:id","description":"ID 指定で1件"},{"path":"/shogi-pieces/:id/:field","description":"1件の特定フィールドだけ"}],"examples":["/shogi-pieces/R","/shogi-pieces/飛車","/shogi-pieces/%2BP","/shogi-pieces/random","/shogi-pieces/all?fields=name,moves","/shogi-pieces/search?q=%E9%87%91%E5%B0%86"]},{"slug":"http-status","title":"HTTP ステータスコード","description":"IANA に登録されている HTTP ステータスコード 62 種。日本語の説明つき。","url":"/http-status","documentation":"/docs/http-status","count":62,"idField":"code","idAliases":["name"],"searchFields":["name","ja","category","description"],"fields":["code","name","ja","category","spec","description"],"storage":"static","sample":{"code":100,"name":"Continue","ja":"継続","category":"情報","spec":"RFC 9110","description":"リクエストの前半を受理したので、クライアントは残りを送ってよい。"},"endpoints":[{"path":"/http-status","description":"このAPIのメタ情報"},{"path":"/http-status/all","description":"全件取得","query":["limit","offset","sort","order","fields","pretty"]},{"path":"/http-status/random","description":"ランダムに1件（?count=n で複数、?seed= で再現可能）","query":["count","seed","fields","pretty"]},{"path":"/http-status/search","description":"部分一致検索（対象: name, ja, category, description）","query":["q","limit","offset","sort","order","fields","pretty"]},{"path":"/http-status/fields","description":"フィールド名の一覧"},{"path":"/http-status/getCode","description":"そのフィールドの全件分の値（?id= を付けると1件分）","query":["id","unique","pretty"]},{"path":"/http-status/:code","description":"ID 指定で1件"},{"path":"/http-status/:code/:field","description":"1件の特定フィールドだけ"}],"examples":["/http-status/404","/http-status/418","/http-status/random","/http-status/search?q=%E3%82%AD%E3%83%A3%E3%83%83%E3%82%B7%E3%83%A5","/http-status/all?fields=code,name"]},{"slug":"colors","title":"CSS 名前付き色","description":"CSS Color Module Level 4 で定義された名前付き色 148 種。hex から rgb / hsl / 相対輝度を計算して返す。","url":"/colors","documentation":"/docs/colors","count":148,"idField":"name","idAliases":["hex"],"searchFields":["name","hex","group"],"fields":["name","hex","group","rgb","r","g","b","hsl","h","s","l","luminance","isDark"],"storage":"static","sample":{"name":"aliceblue","hex":"#F0F8FF","group":"blue","rgb":"rgb(240, 248, 255)","r":240,"g":248,"b":255,"hsl":"hsl(208, 100%, 97%)","h":208,"s":100,"l":97,"luminance":0.929,"isDark":false},"endpoints":[{"path":"/colors","description":"このAPIのメタ情報"},{"path":"/colors/all","description":"全件取得","query":["limit","offset","sort","order","fields","pretty"]},{"path":"/colors/random","description":"ランダムに1件（?count=n で複数、?seed= で再現可能）","query":["count","seed","fields","pretty"]},{"path":"/colors/search","description":"部分一致検索（対象: name, hex, group）","query":["q","limit","offset","sort","order","fields","pretty"]},{"path":"/colors/fields","description":"フィールド名の一覧"},{"path":"/colors/getName","description":"そのフィールドの全件分の値（?id= を付けると1件分）","query":["id","unique","pretty"]},{"path":"/colors/:name","description":"ID 指定で1件"},{"path":"/colors/:name/:field","description":"1件の特定フィールドだけ"}],"examples":["/colors/tomato","/colors/%23FF6347","/colors/random","/colors/search?q=blue","/colors/all?fields=name,hex&limit=10","/colors/getHex"]},{"slug":"yotsuyafood","title":"四谷のランチ","description":"四谷（コモレ四谷の周辺）で行けるお店とおすすめの一品。price は税込のだいたいの支払い額（円）で、?sort=price で安い順に並べられる。","url":"/yotsuyafood","documentation":"/docs/yotsuyafood","count":19,"idField":"name","idAliases":[],"searchFields":["name","genre","recommend","comment"],"fields":["name","genre","recommend","price","comment"],"storage":"static","sample":{"name":"小諸そば","genre":"そば","recommend":"2枚もり","price":500,"comment":"とにかく安い！早い！立ち食いそばで店内が狭いから大人数では難しいかもしれない！"},"endpoints":[{"path":"/yotsuyafood","description":"このAPIのメタ情報"},{"path":"/yotsuyafood/all","description":"全件取得","query":["limit","offset","sort","order","fields","pretty"]},{"path":"/yotsuyafood/random","description":"ランダムに1件（?count=n で複数、?seed= で再現可能）","query":["count","seed","fields","pretty"]},{"path":"/yotsuyafood/search","description":"部分一致検索（対象: name, genre, recommend, comment）","query":["q","limit","offset","sort","order","fields","pretty"]},{"path":"/yotsuyafood/fields","description":"フィールド名の一覧"},{"path":"/yotsuyafood/getName","description":"そのフィールドの全件分の値（?id= を付けると1件分）","query":["id","unique","pretty"]},{"path":"/yotsuyafood/:name","description":"ID 指定で1件"},{"path":"/yotsuyafood/:name/:field","description":"1件の特定フィールドだけ"}],"examples":["/yotsuyafood/random","/yotsuyafood/search?q=%E3%81%9D%E3%81%B0","/yotsuyafood/all?sort=price&fields=name,genre,price","/yotsuyafood/getGenre?unique=1"]}],"tools":{"url":"/tools","count":5,"data":[{"slug":"dice","title":"サイコロ","url":"/tools/dice/random"},{"slug":"uuid","title":"UUID","url":"/tools/uuid/random"},{"slug":"password","title":"パスワード","url":"/tools/password/random"},{"slug":"lorem","title":"ダミーテキスト","url":"/tools/lorem/random"},{"slug":"latency","title":"遅延","url":"/tools/latency/random"}]},"lab":{"url":"/lab","catalog":"/lab/catalog","documentation":"/lab/docs","count":94,"description":"画像・音声・文書・特殊Content-Type・HTTP挙動を確認できるAPI Zoo。"}}