Base URL
https://serptag.com/api
Before making your first request, create an API key from Settings → API Keys.
Create an API Key
If you haven’t already created an API key, follow the Create an API Key guide. Your API key will look similar to:- An Agency or Enterprise subscription (2,500+ keywords)
- An active SERPtag account
- A valid API key
Authentication Methods
The REST API supports two authentication methods.X-API-Key (Recommended)
The recommended authentication method is to send your API key using the X-API-Key request header.Bearer Token
You can also authenticate using the standard Authorization header.Making Your First Request
Once you’ve created your API key, you’re ready to make your first request.Using X-API-Key
Using a Bearer Token
Code Examples
Below are examples in some of the most common programming languages.JavaScript
Python
Authentication Requirements
Every request is validated before data is returned.Using the Same API Key with MCP
The same API key works across both SERPtag services.
You don’t need to create separate API keys for MCP and the REST API.
Security Best Practices
To keep your account secure, we recommend following these guidelines.✅ Do
- Store API keys in environment variables.
- Keep your API keys in a secure password manager.
- Rotate API keys if they have been exposed.
- Only share API keys with trusted team members.
❌ Don’t
- Commit API keys to Git repositories.
- Embed API keys in frontend applications.
- Share API keys publicly.
- Send API keys in screenshots or emails.
Common Authentication Errors
Rate Limits
Each API key includes generous usage limits.
The hourly limit is shared across both the SERPtag REST API and the SERPtag MCP Server.