Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
APIって結局何?世界を広げよう - マサカリ解説シリーズ
Search
Yuichiro Smith
August 08, 2024
Programming
170
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
APIって結局何?世界を広げよう - マサカリ解説シリーズ
Yuichiro Smith
August 08, 2024
More Decks by Yuichiro Smith
See All by Yuichiro Smith
老人会? いえ、技術継承です @ builderscon 2024 LT
s3i7h
0
180
Other Decks in Programming
See All in Programming
Lambda durable functionsでHuman in the Loopを楽に…楽に……
har1101
1
180
自作Discord音声botをLambda MicroVMsに移行した話 / Migrating My Discord Voice Bot to Lambda MicroVMs
akihisaikeda
0
140
設計次第でAIコードの読む量は減らせる / designing-for-code-reading
minodriven
35
17k
Jetpack Compose Mechanisms
skydoves
3
860
AI-Powered Domain-Driven Design
ziobrando
0
240
作って学ぶSpring BootのAuto Configuration / JJUG Night Seminar 2026-10-19
rshindo
0
200
現場と育てるRailsモデリング 〜Spreadsheetから始めたモデル設計〜
siroemk
2
850
残高管理から台帳サービスへの進化
artoy
1
210
Railsのためのパスキー実践入門 〜マルチテナントSaaSでの意思決定〜
utakaha
3
1k
phperだってパンチカードでコーディングしたい
o0h
PRO
0
380
Domain-Driven Transformation
hschwentner
2
2.3k
HTML-in-Canvasで作る未来のWeb UI表現
clockmaker
5
5.2k
Featured
See All Featured
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
610
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
330
From π to Pie charts
rasagy
1
400
Imperfection Machines: The Place of Print at Facebook
scottboms
270
14k
Embracing the Ebb and Flow
colly
88
5.2k
AI: The stuff that nobody shows you
jnunemaker
PRO
10
1.2k
The agentic SEO stack - context over prompts
schlessera
0
970
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
330
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
890
Making the Leap to Tech Lead
cromwellryan
135
10k
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.5k
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
310
Transcript
APIって結局何?世界を広げよう マサカリ解説シリーズ(続け)
自己紹介 s3i7h / スミス Developer @ YUMEMI プロフィール:https://s3i7h.com
そのAPI定義はなんだ〜!╰((#°Д°))╮🪓 出典:https://x.com/csharpVtuber/status/1819693444098630077 APIってブラウザからHTTPサーバと通信して実現するもの以外もある ぞ!(意訳) (余談)Web APIって呼び方でいいんだっけ・・
じゃあ何がAPIなんだってばよ🤔
API
よく見かける(馴染みが深い)API
GitHub REST API https://docs.github.com/ja/rest • GitHubでやりたいこと大体できます • 無料 • 未認証でもある程度使えるよ
Google Cloud APIs https://cloud.google.com/apis?hl=ja • Google Cloudのあれこれをプログラム経由で操作で きる! • 従量課金(リソースに対しての課金が多い)
(余談) 某世界的ECサイトのクラウドはドキュメントが( ry
他の身近なAPI(馴染みはないかも?)
POSIX (IEEE 1003.1) https://standards.ieee.org/ieee/1003.1/7700/ • Linux, macOS で何気なく使ってるやつら • ファイル操作、プロセス管理、ネットワーク通信などをさ
せてくれる • open、read、write、fork、execなど
Web API https://developer.mozilla.org/ja/docs/Web/API • ブラウザから活用できるAPI全般 • 通知、位置情報、カメラ、クリップボード、ファイル、 WebRTC、Websocket、fetchなどなど
https://dev.mysql.com/doc/c-api/8.0/en/ • 何気なく使うDBとのやりとりもAPI経由 • C(から利用するための) API RDBMS
つまり
APIとは システムとシステムを繋ぐ架け橋 である
APIを利用しよう!
APIを作ろう!
作れるAPIの例
OpenAPI / GraphQL / gRPC • URL割愛 • い つ も の •
私たちがAPI作る、というときは大体こいつら • サーバーで定義した動作をさせたい • 認証認可しっかり • 型定義も共有できるといいね
exec • 実行可能ファイル • コマンドラインオプション • 標準入出力 • 立派なAPI
matter https://csa-iot.org/all-solutions/matter/ • IoT向けプロトコル • なんと!!各社が作るIoTデバイス同士を連携させる プロトコルがあるって〜!? • 準拠するしかないっしょ!(チラッチラッ •
(冗談です)
APIとは システムとシステムを繋ぐ架け橋 である
そして
APIは システムを使っていいよ というコミュニケーションでもある
大事な話
ルール
できる !== やっていい
⚠リバースエンジニアリング • アプリやその通信内容を解析して機能を切り出す
⚠スクレイピング・bot • あなたはbotではないですか?の確認のあれ • LibraHack事件
やる前に聞こう!!!
システムが やってほしくないことはやめよう
そのためのAPI
API ❤ドキュメント • APIという形をとることで自然に、こういう形で使ってね、 を伝えることができる • helpメッセージ、manページはAPIの定義そのもの • man 1
hoge, man 2 fuga を使いこなそう The sections of the manual are: 1. General Commands Manual 2. System Calls Manual 3. Library Functions Manual 4. Kernel Interfaces Manual 5. File Formats Manual 6. Games Manual 7. Miscellaneous Information Manual 8. System Manager's Manual 9. Kernel Developer's Manual
まとめ
APIとは システムとシステムを繋ぐ架け橋 である
APIとは システムとシステムの約束事 である
🫶 🌎
ご清聴ありがとうございました