テキストコンテンツおよび画像キーワード抽出 API

APIエンドポイント仕様

  • エンドポイント パス: /api/1/keywordExtractor
  • データの種類: JSON と 10/分
  • 情報元: テキスト・画像素材
  • リクエスト制限: 500リクエスト/月
  • スクリプトと統合: cURL, JS, Python, Ruby, Php, Node.js, Java, .NET, Rust, Go, Typescript と統合するコード
テキストコンテンツおよび画像キーワード抽出 API エンドポイントの基本情報

APIエンドポイントパス

必須

キーワード抽出 API

api/1/keywordExtractor


Call Method

Required

POST

返されるデータの種類

JSON

抽出したキーワードの構造化JSONデータを出力する


利用可能な API 引数とパラメータ

token

必須

BUYFROMLO API トークンを購入します. 無料および有料のサブスクリプション API は両方とも利用可能です: /api/1/keywordExtractor からアクセスできます. - /app/1/keyword-extractor のサイト APP

mediaType

必須

キーワード抽出のタイプ. オプションは画像 API, テキスト コンテンツ API

originalContent

必須

コンテンツテキストまたは画像バイトコード文字列を入力してください



キーワード抽出 API

api/1/keywordExtractor


コードの統合と対応

Python コードサンプル


import requests

apiendpoint = "https://api.buyfromlo.com/api/1/keywordExtractor"

## Required Arguments & Parameters ##

token = "your buyfromlo token"
mediaType = "input the type of content, such as Image API or Text Content API"
originalContent = "Input the original content, such as image URL or content text"

headers={"Authorization": "Bearer " + token}

## Call the api ##
response = requests.post(apiendpoint, json={"mediaType": mediaType, "originalContent": originalContent}, headers=headers)
print(response.status_code)
print(response.json())
                        

JSON 応答サンプル


{
    "Weather data"
}