Einstein Vision and Einstein Language
salesforce · Company
Provided by [Salesforce](https://www.einstein-hub.com/) � Copyright 2000�2020 salesforce.com, inc. All rights reserved. Salesforce is a registered trademark of salesforce.com, inc., as are other names and marks. Other marks appearing herein may be trademarks of their respective owners. **Last updated:** Aug 17, 2020
Authentication
Sample Requests
Returns a list of datasets and their labels that were created by the current user. The response is sorted by dataset ID.
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/salesforce.local/einstein/2.0.1/v2/language/datasets?count=25&global=false&offset=0"
import requests
params = {
"count": "25",
"global": "false",
"offset": "0"
}
response = requests.get(
"https://api.apis.guru/v2/specs/salesforce.local/einstein/2.0.1/v2/language/datasets",
params=params,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/salesforce.local/einstein/2.0.1/v2/language/datasets');
url.searchParams.set('count', '25');
url.searchParams.set('global', 'false');
url.searchParams.set('offset', '0');
const response = await fetch(url);
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/salesforce.local/einstein/2.0.1/v2/language/datasets")
q := baseURL.Query()
q.Set("count", "25")
q.Set("global", "false")
q.Set("offset", "0")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/salesforce.local/einstein/2.0.1/v2/language/datasets")
uri.query = URI.encode_www_form({
"count" => "25",
"global" => "false",
"offset" => "0"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/salesforce.local/einstein/2.0.1/v2/language/datasets?" . http_build_query([
"count" => "25",
"global" => "false",
"offset" => "0"
]);
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Returns all the examples for the specified label. Returns both uploaded examples and feedback examples.
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/salesforce.local/einstein/2.0.1/v2/language/examples?count=100&offset=0&labelId=example"
import requests
params = {
"count": "100",
"offset": "0",
"labelId": "example"
}
response = requests.get(
"https://api.apis.guru/v2/specs/salesforce.local/einstein/2.0.1/v2/language/examples",
params=params,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/salesforce.local/einstein/2.0.1/v2/language/examples');
url.searchParams.set('count', '100');
url.searchParams.set('offset', '0');
url.searchParams.set('labelId', 'example');
const response = await fetch(url);
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/salesforce.local/einstein/2.0.1/v2/language/examples")
q := baseURL.Query()
q.Set("count", "100")
q.Set("offset", "0")
q.Set("labelId", "example")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/salesforce.local/einstein/2.0.1/v2/language/examples")
uri.query = URI.encode_www_form({
"count" => "100",
"offset" => "0",
"labelId" => "example"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/salesforce.local/einstein/2.0.1/v2/language/examples?" . http_build_query([
"count" => "100",
"offset" => "0",
"labelId" => "example"
]);
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Returns a list of datasets and their labels that were created by the current user. The response is sorted by dataset ID.
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/salesforce.local/einstein/2.0.1/v2/vision/datasets?count=25&global=false&offset=0"
import requests
params = {
"count": "25",
"global": "false",
"offset": "0"
}
response = requests.get(
"https://api.apis.guru/v2/specs/salesforce.local/einstein/2.0.1/v2/vision/datasets",
params=params,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/salesforce.local/einstein/2.0.1/v2/vision/datasets');
url.searchParams.set('count', '25');
url.searchParams.set('global', 'false');
url.searchParams.set('offset', '0');
const response = await fetch(url);
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/salesforce.local/einstein/2.0.1/v2/vision/datasets")
q := baseURL.Query()
q.Set("count", "25")
q.Set("global", "false")
q.Set("offset", "0")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/salesforce.local/einstein/2.0.1/v2/vision/datasets")
uri.query = URI.encode_www_form({
"count" => "25",
"global" => "false",
"offset" => "0"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/salesforce.local/einstein/2.0.1/v2/vision/datasets?" . http_build_query([
"count" => "25",
"global" => "false",
"offset" => "0"
]);
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Postman Setup Guide
- See official documentation for authentication and setup.
What can you build with Einstein Vision and Einstein Language?
Einstein Vision and Einstein Language is a Company API. Developers commonly use company APIs for:
- enriching CRM records with company firmographics
- building lead-generation and prospecting tools
- verifying business identity and registration details
- monitoring competitors and market intelligence
- powering B2B data enrichment pipelines
No authentication required. This API is open — no signup or key needed. Ideal for quick prototypes and public-facing features. Einstein Vision and Einstein Language is free to use, making it a low-risk choice to experiment with.
New to APIs? Read our beginner's guide · Learn about API keys · What is REST?