v1/Status Checker
This endpoint allows you to check the status of a specific project by providing the project title.
Request samples
Python
Node.js
import requests
api_host = "https://api.seocontent.ai"
api_key = "your_api_key"
project_title = "api_lc01"
data = {
"project_title": project_title,
}
headers = {
"Content-Type": "application/json",
"x-api-key": api_key,
}
response = requests.post(
f"{api_host}/v1/status-checker/",
json=data,
headers=headers
)
print("Response:", response.text) # Log the response data
print(response.status_code)
const axios = require("axios");
const apiHost = "https://api.seocontent.ai";
const apiKey = "your_api_key";
const projectTitle = "api_mc1";
const data = {
project_title: projectTitle,
};
const headers = {
"Content-Type": "application/json",
"x-api-key": apiKey,
};
axios
.post(`${apiHost}/v1/status-checker/`, data, { headers })
.then((response) => {
console.log("Response:", response.data);
console.log("Status Code:", response.status);
})
.catch((error) => {
console.error("Error:", error);
});
AUTHORIZATIONS: SEOCONTENT_API_KEY
HEADER PARAMETERS:
- Content-Type: application/json
- x-api-key: Your API key
BODY PARAMETERS:
project_title
(string)- The title of the project for which you want to check the status, e.g.,
"api_lc01"
.
- The title of the project for which you want to check the status, e.g.,
Response
The response will contain information about the status of the specified project. You can log the response data using:’
- print(“Response:”, response.text)
- print(response.status_code)
The response text will provide details about the project’s status, and the status code will indicate the success or failure of the request.
Notes:
- Ensure that the
api_key
is correctly set. - The
project_title
must correspond to an existing project in the system.