0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

【TwitterAPI】はじめてのTwitterAPI(やさしめ解説)

0
Last updated at Posted at 2022-09-10

最新のTwitterAPI利用手順をまとめてみたよ

Twitter Developerサイトで手続き

サインアップ

Twitter Developerサイトでapiを何に使うのか?とかの質問に答えて「Let's do this」で進むよ
image.png

利用規約に同意

利用規約をしっかり読んだら☑を付けて「Submit」するよ
image.png

メール認証

こんな画面が出てくるよ
image.png

登録済のメールアドレスにこんなのが届くから「Confirm your email」するよ
image.png

アプリケーションの登録

「Confirm your email」するとこんな画面に飛ぶので好きなアプリケーション名をいれて「Get keys」するよ
image.png

キー情報が表示されるからメモっておいてね
image.png

メモったら「API playground」を押してみよう

さっそくTwitterAPIを使ってみよう!

ユーザー情報を取得するAPIを使ってみよう

とりあえず初期表示されるエンドポイントを「×」ボタンで消しておくよ
image.png

「username」って入れると「GET /2/users/by/username/:username」が出てくるから選択してね
image.png

ユーザー情報を検索しよう

「username」欄に好きなツイッターユーザーネームを入れて「Run」するよ
image.png

おめでとう!TwitterAPIが使えたね!
他にも便利なAPIがあるからドキュメントを読んでみてね

0
2
0

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
0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?