This repository provides a quick-start guide and documentation for implementing the Google Images Search API via Cognify API. This API allows developers to programmatically fetch high-quality image results from Google's index. A high-performance Google Images API.
- API Documentation: Google Images API Docs
- More Info: Google Images API
- Official Website: CognifyAPI.com
- Provider Platform (studio.cognifyapi.com): Google Images Api
- Massive Database: Access Google's vast image repository.
- Advanced Metadata: Get image dimensions (width/height) and MIME types.
- Auto-Complete: Access Google search suggestions alongside image results.
- Scalable: Built on high-performance infrastructure for production apps.
https://api.cognifyapi.com
Parameters:
| Parameter | Required | Description |
|---|---|---|
query |
Yes | Search keyword (e.g., "SpaceX") |
count |
No | Number of results (Default: 100) |
imageInfo |
No | Set to true to return width, height, and mime type. |
Retrieve images based on a search keyword with all parameters included.
Example Request (Node.js/Axios):
const axios = require("axios");
async function searchImages() {
try {
const response = await axios.get(
"https://api.cognifyapi.com/google-images",
{
params: {
query: "electric cars",
count: 10,
imageInfo: true,
},
headers: {
"x-cognifyapi-key": "YOUR_COGNIFY_API_KEY",
},
}
);
console.log(response.data);
} catch (error) {
console.error(error);
}
}
searchImages();Example Response (Node.js/Axios):
{
"status": "success",
"query": "SpaceX",
"results": 2,
"images": [
{
"url": "https://example.com/image.jpg",
"width": 1920,
"height": 1080,
"type": "jpg",
"mime": "image/jpg"
},
{
"url": "https://example.com/image.jpg",
"width": 1920,
"height": 1080,
"type": "jpg",
"mime": "image/jpg"
}
]
}Retrieve images based on a search keyword.
Example Request (Node.js/Axios):
const axios = require("axios");
async function searchImages() {
try {
const response = await axios.get(
"https://api.cognifyapi.com/google-images",
{
params: {
query: "SpaceX",
count: 5,
},
headers: {
"x-cognifyapi-key": "YOUR_COGNIFY_API_KEY",
},
}
);
console.log(response.data);
} catch (error) {
console.error(error);
}
}
searchImages();Example Response (Node.js/Axios):
{
"status": "success",
"query": "SpaceX",
"results": 2,
"images": [
{
"url": "https://example.com/image.jpg",
},
{
"url": "https://example.com/image.jpg",
}
]
}