SDKs
While Serply doesn't currently provide official SDK packages, we offer comprehensive code examples and integration guides for popular programming languages to help you get started quickly.
Example Code Repository
Check out our Serply examples code repository for example code for calling the API with various languages including cURL, JavaScript, Python, C#, and Java.
Using the REST API
The Serply API is a RESTful API that can be called from any programming language that supports HTTP requests. All API requests should be made to:
https://api.serply.io
JavaScript/Node.js
const response = await fetch('https://api.serply.io/v1/search/q=google+search+api', {
headers: {
'X-Api-Key': 'YOUR_API_KEY'
}
});
const data = await response.json();
console.log(data);
Python
import requests
response = requests.get(
'https://api.serply.io/v1/search',
params={'q': 'google search api'},
headers={'X-Api-Key': 'YOUR_API_KEY'}
)
data = response.json()
print(data)
cURL
curl --header 'X-Api-Key: YOUR_API_KEY' \
'https://api.serply.io/v1/search?q=google+search+api'
Building Your Own SDK
If you'd like to create a wrapper library for your preferred language, you can use our OpenAPI specification to generate client libraries. The API follows standard REST conventions and returns JSON responses.
API Reference
For complete API documentation, see the API Reference section which includes detailed information about all available endpoints, request parameters, and response formats.