Skip to main content
GET
/
projects
List projects
curl --request GET \
  --url https://api.beyondwords.io/v1/projects \
  --header 'X-Api-Key: <api-key>'
import requests

url = "https://api.beyondwords.io/v1/projects"

headers = {"X-Api-Key": "<api-key>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};

fetch('https://api.beyondwords.io/v1/projects', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.beyondwords.io/v1/projects",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Api-Key: <api-key>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://api.beyondwords.io/v1/projects"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("X-Api-Key", "<api-key>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://api.beyondwords.io/v1/projects")
.header("X-Api-Key", "<api-key>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.beyondwords.io/v1/projects")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["X-Api-Key"] = '<api-key>'

response = http.request(request)
puts response.read_body
[
  {
    "id": 1,
    "name": "My project",
    "language": "en_US",
    "auto_publish_enabled": true,
    "avatar_url": "https://example.com/avatar.jpg",
    "environment": "production",
    "created": "2022-01-02 23:59:59 UTC",
    "updated": "2022-03-04 00:00:00 UTC"
  },
  {
    "id": 2,
    "name": "My second project",
    "language": "en_GB",
    "auto_publish_enabled": true,
    "avatar_url": "https://example.com/avatar.jpg",
    "environment": "production",
    "created": "2022-01-02 23:59:59 UTC",
    "updated": "2022-03-04 00:00:00 UTC"
  }
]
{
"code": 401,
"message": "Unauthorized"
}

Authorizations

X-Api-Key
string
header
required

Query Parameters

pagination[limit]
integer

'limit' sets the number of results to return in each page.

pagination[offset]
integer

'offset' sets the first position to return from the results of the query. The default is 0, which starts the page at the first result.

order[by]
enum<string>

This is used to order projects by type or key or value

Available options:
name,
created
order[dir]
enum<string>

This is used to order analytics in the ascending or descending order

Available options:
asc,
desc
filter[environment]
enum<string>

filter by environment

Available options:
production,
staging
filter[name]
string

filter by name

filter[language.code]
string

filter by language code

Response

OK

id
integer

Unique identifier for the object

name
string

The project name

language
string

The default language of the project (ISO 639-1 code with optional region, e.g., en_GB)

Pattern: ^[a-z]{2}(_[A-Z]{2})?$
language_data
object

Additional language metadata for the project

environment
enum<string> | null
Available options:
production,
staging
logo_color
string | null
content_total_count
integer
content_updated
string<date-time> | null
title
object
summary
object | null
body
object
background_track
object | null
auto_publish_enabled
boolean

When true, automatically distribute content once generated (default is true)

auto_video_publish_enabled
boolean

When true, automatically distribute video content once generated (default is true)

time_zone
string

The project time zone (IANA time zone name)

avatar_url
string<uri> | null

The project's avatar URL

Maximum string length: 2048
pause_after_title_segments_seconds
number
Required range: 0 <= x <= 3
pause_after_segments_seconds
number
Required range: 0 <= x <= 3
created
string<date-time>

Time at which the object was created (ISO 8601)

updated
string<date-time>

Time at which the object was updated (ISO 8601)