Log In Sign Up

Developer quickstart

Introduction

This API reference describes the simple and lightweight GET APIs provided by the Search.com platform. These APIs allow developers to perform search queries and retrieve structured data in JSON format. The APIs are accessible over standard HTTPS, making them easy to use in any environment that supports HTTPS requests. No complex setup is required—just send a GET request and receive a JSON response.

Authentication

The Search.com API uses API keys for authentication. You can create and view your API keys in your account settings.

Please treat your API key as a secret—do not share it publicly or expose it in client-side code such as in browsers or mobile apps. For security, always load your API key from an environment variable or a secure key management system on the server side.

API keys must be included in requests header using X-API-KEY.

You can use the following cURL command to make a request to the Search.com API. This example sends a GET request with a prompt parameter and includes your API key for authentication. The response will be returned in JSON format.

CURL for JSON
                
                curl --location 'https://search.com/api/generate_content?prompt={PROMPT}' \
                --header 'X-API-KEY: {YOUR_API_KEY}'
                             
            
CURL for TEXT
                
                curl --location 'https://search.com/api/generate_content?prompt={PROMPT}&format=text' \
                --header 'X-API-KEY: {YOUR_API_KEY}'
               
            

Response

You can choose to receive responses in plain text for human readability (format={text}), or in JSON(default) format for easy integration with your applications—making it ideal for both frontend interfaces and backend automation.

Generate JSON from a model
                
                {
                    "response": "{RESPONSE}",
                    "status_code": 200,
                    "status": true
                }
               
            
Generate Text from a model
                                
                 

{Merchant_site}: Your Learning Partner

{Merchant_site} is an online education platform offering a wide range of courses and certifications designed to help individuals and professionals enhance their skills and advance their careers.