Documentation Index
Fetch the complete documentation index at: https://docs.semust.com/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The Semust API uses custom header authentication. All requests must include two authentication headers with your API credentials.
| Header | Type | Description |
|---|
SEMUST-API-USER | string | Your API user username |
SEMUST-API-PASSWORD | string | Your API user password |
Both headers are required. Missing either header will result in a 401 error.
Creating API Users
To create API credentials:
Create API User
Click “Create API User” to generate new credentials.
Copy Credentials
Copy the username and password. Use them in the SEMUST-API-USER and SEMUST-API-PASSWORD headers in your requests.
You can create multiple API users per account for different applications or environments.
Security: Never expose your API credentials in client-side code or public repositories. Store them securely in environment variables.
Code Examples
curl -X POST https://data.semust.com/v1/serp \
-H "Content-Type: application/json" \
-H "SEMUST-API-USER: your_username" \
-H "SEMUST-API-PASSWORD: your_password" \
-d '{"keyword": "best seo tools"}'
Authentication Errors
If authentication fails, you will receive a 401 status code with the following error:
{
"error": "Authentication failed — invalid username or password",
"code": "INVALID_API_KEY"
}
| Status | Code | Description |
|---|
| 401 | INVALID_API_KEY | The provided credentials are invalid |
Double-check that both SEMUST-API-USER and SEMUST-API-PASSWORD headers are present and contain the correct values from your API Access page.