Platformă de descoperire a joburilor — documentație API publică
Returns a single random job from the Solr job index. Useful for discovery widgets, "job of the day" features, or testing integrations.
curl -X GET "https://api.peviitor.ro/v1/random/" \ -H "Accept: application/json"
| Field | Type | Description |
|---|---|---|
| title | string | Exact job position title |
| company | string | Hiring company name (uppercase) |
| location | string[] | Array of cities or addresses |
| workmode | string | remote, on-site, or hybrid |
| url | string | Full URL to the job detail page (unique key) |
| salary | string | Salary interval with currency, e.g. 5000-8000 RON |
| tags | string[] | Skill tags (lowercase, max 20) |
| cif | string | CIF/CUI of the company |
| date | string | ISO8601 UTC timestamp of indexing |
| status | string | scraped, tested, published, or verified |
{
"title": "Inginer IT",
"company": "COMPANY SRL",
"location": ["Bucure\u0219ti", "Cluj-Napoca"],
"workmode": "remote",
"url": "https://example.com/job/123",
"salary": "5000-8000 RON",
"tags": ["python", "java"],
"cif": "12345678",
"date": "2026-06-15T10:00:00Z",
"status": "published"
}
{
"error": "No jobs found"
}
{
"error": "Job core unavailable",
"details": "PROD_SERVER not set"
}
| Item | Details |
|---|---|
| Method | GET only |
| Auth | None (public endpoint) |
| Params | None |
| Content-Type | application/json |
Permanently deletes every job document from the job Solr core.
In production, requires valid API credentials.
In production mode (NODE_ENV=production), you must provide
X-API-Key and X-Cleanup-Secret headers matching
api.env. In any other environment (test, dev,
staging, etc.), these headers are not checked and any value is
accepted.
| Header | Required | Description |
|---|---|---|
| X-API-Key | Production only | API key from CLEANUP_API_KEY in api.env |
| X-Cleanup-Secret | Production only | Secret from CLEANUP_SECRET in api.env |
| Content-Type | Yes | application/json |
{
"confirmation": "DELETE_ALL_DATA"
}
curl -X DELETE "https://api.peviitor.ro/v1/empty/" \
-H "X-API-Key: abc123xyz789" \
-H "X-Cleanup-Secret: secret456def012" \
-H "Content-Type: application/json" \
-d '{"confirmation": "DELETE_ALL_DATA"}'
curl -X DELETE "https://test.peviitor.ro/api/v1/empty/" \
-H "Content-Type: application/json" \
-d '{"confirmation": "DELETE_ALL_DATA"}'
{
"message": "Jobs deleted successfully",
"jobsDeleted": 42,
"companiesDeleted": 10
}
{
"error": "Unauthorized - invalid credentials"
}
{
"error": "Only DELETE method allowed"
}
{
"error": "Job core unavailable",
"details": "PROD_SERVER not set"
}
| Item | Details |
|---|---|
| Method | DELETE only |
| Auth | X-API-Key + X-Cleanup-Secret (production only) |
| Params | Body: {"confirmation": "DELETE_ALL_DATA"} |
| Content-Type | application/json |