GET /v1/search/languages

SERP languages API: language codes for the Google and Bing search APIs

Call it with no parameters and get every language the search endpoints accept, as { language_code, language_name }. A language_code outside this list is a 400 and is never sent to the engine.

Price
Free
Batch
No
Failed calls
Not charged

Example request

curl
curl 'https://api.virev.ai/v1/search/languages' \
  -H "Authorization: Bearer $VIREV_API_KEY"
python
import os
import requests

response = requests.request(
    "GET",
    "https://api.virev.ai/v1/search/languages",
    headers={"Authorization": f"Bearer {os.environ['VIREV_API_KEY']}"},
    timeout=60,
)
response.raise_for_status()
print(response.json())

Example response

The example response of the API reference.

json
{
  "data": [
    {
      "language_code": "en",
      "language_name": "English"
    },
    {
      "language_code": "ko",
      "language_name": "Korean"
    },
    {
      "language_code": "ja",
      "language_name": "Japanese"
    }
  ],
  "meta": {
    "cost": "$0.00",
    "balance": "$24.85",
    "request_id": "req_1f7b34c8e05a496d92c6b18df403a75e"
  }
}

How it works

Every language /v1/search/* can search, as { language_code, language_name }. Free and unbilled. A code outside this list is rejected rather than forwarded to the engine, so a caller never receives results for a market nobody serves.

Errors

StatusWhen
400The request parameters are invalid.
401Missing, malformed, or revoked API key.
402Balance is too low for this request.
429Over the per-minute limit. The limit belongs to your organization and all its API keys share it: 100 requests per minute unless an increase was granted. Wait for the Retry-After seconds, then retry. On a live read, code rate_limited means the platform itself rate-limited this read; retry after the Retry-After seconds. You are not charged.
502The upstream fetch failed. You are not charged.
503Billing could not be confirmed, so no upstream data was returned.
504The upstream request timed out. You are not charged.