高品質の画像を含む記事を取得
プロユースに適した高解像度の画像を含む記事をフィルタリングする
入力パラメータ
| パラメータ | 説明 | タイプ | デフォルト | 必須 |
|---|---|---|---|---|
| has_hq_images | 高品質な画像を含む記事をフィルタリングする(幅 >= 1200px)。 | integer | はい | |
| api_key | あなたのAPIキー | string | はい | |
| per_page | 取得する記事の最大数 | integer | 20 | いいえ |
ワークフロー例
高品質な画像を含む記事のリクエスト:
curl -X GET "https://api.apitube.io/v1/news/everything?has_hq_images=1&api_key=YOUR_API_KEY"
Full HDの画像のリクエスト:
curl -X GET "https://api.apitube.io/v1/news/everything?has_fullhd_images=1&api_key=YOUR_API_KEY"
4Kの画像ギャラリーのリクエスト:
curl -X GET "https://api.apitube.io/v1/news/everything?has_4k_images=1&has_multiple_images=1&category.id=medtop:01000000&api_key=YOUR_API_KEY"
関連する例
のためのレシピ cURL
curl --location --globoff --request POST 'https://api.apitube.io/v1/news/everything?has_hq_images=1&api_key=YOUR_API_KEY&per_page=10' \
--header 'Content-Type: application/json'
のためのレシピ Python
import requests
url = "https://api.apitube.io/v1/news/everything"
querystring = {
"has_hq_images": 1,
"api_key": "YOUR_API_KEY",
"per_page": 10
}
response = requests.request("GET", url, params=querystring)
print(response.text)
のためのレシピ Javascript
import axios from "axios"
const options = {
method: 'GET',
url: 'https://api.apitube.io/v1/news/everything',
params: {
"has_hq_images": 1,
"api_key": "YOUR_API_KEY",
"per_page": 10
}};
axios.request(options).then(function (response) {
console.log(response.data);
}).catch(function (error) {
console.error(error);
});
のためのレシピ PHP
require 'vendor/autoload.php';
use GuzzleHttp\Client;
$client = new Client();
$response = $client->request('GET', 'https://api.apitube.io/v1/news/everything', [
'query' => [
'has_hq_images' => 1,
'api_key' => 'YOUR_API_KEY',
'per_page' => 10,
],
]);
echo $response->getBody();
のためのレシピ Java
OkHttpClient client = new OkHttpClient().newBuilder().build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "");
Request request = new Request.Builder()
.url("https://api.apitube.io/v1/news/everything?has_hq_images=1&api_key=YOUR_API_KEY&per_page=10")
.method("POST", body)
.addHeader("Content-Type", "application/json")
.build();
Response response = client.newCall(request).execute();