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
Transcript
37 slides
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とは システムとシステムの約束事 である
🫶 🌎
ご清聴ありがとうございました
More Decks by Yuichiro Smith
See All by Yuichiro Smith
老人会? いえ、技術継承です @ builderscon 2024 LT
s3i7h
0
190
Other Decks in Programming
See All in Programming
SODA - FACT BOOK(EN)
sodainc
1
300
疎結合とは何か?ソフトウェア設計における結合バランスについて考える #phpcon_niigata
kajitack
2
440
SODA - FACT BOOK(JP)
sodainc
1
40k
はじめてのPLATEAU
nokonoko1203
1
680
[DroidKnights 2026] Workflow AX 적용기 — 자동 정책 정리부터 E2E까지
dayeon
0
130
Compiling Your Language to WasmGC & Friends
tanishiking
0
770
느린 네트워크와 저사양 디바이스 사용자를 위한 웹뷰 로딩 시간 개선기
kmkim
1
270
Kotlin JVM用に作られたライブラリのKMPを前提とした再設計
jsoizo
0
240
Proxmox x Talos Linux x Terraform で実現するなんかいい感じの Kubernetes クラスタ / A Sleek Kubernetes Cluster Powered by Proxmox, Talos Linux, and Terraform
nnaka2992
0
320
Agentic AI with the Power of Jakarta EE
ivargrimstad
0
230
vue-tsc x TypeScript7
koukimiura
0
110
Beyond Chatbots: Agentic UI with Open Standards @W-JAX 2026, München
manfredsteyer
PRO
0
130
Featured
See All Featured
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8.4k
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
12k
The SEO Collaboration Effect
kristinabergwall1
1
630
Learning to Love Humans: Emotional Interface Design
aarron
275
41k
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
6
1.3k
Speed Design
sergeychernyshev
33
2.3k
Code Review Best Practice
trishagee
74
20k
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
1
620
Navigating Team Friction
lara
192
16k
Marketing Yourself as an Engineer | Alaka | Gurzu
gurzu
0
400
A Tale of Four Properties
chriscoyier
163
24k