curl --request POST \
--url https://api.social-api.ai/v1/platforms/google/accounts/{id}/media \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"category": "INTERIOR",
"description": "Main dining room",
"media": [
{
"source": "550e8400-e29b-41d4-a716-446655440000",
"source_type": "media_id",
"type": "image"
}
]
}
'import requests
url = "https://api.social-api.ai/v1/platforms/google/accounts/{id}/media"
payload = {
"category": "INTERIOR",
"description": "Main dining room",
"media": [
{
"source": "550e8400-e29b-41d4-a716-446655440000",
"source_type": "media_id",
"type": "image"
}
]
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
category: 'INTERIOR',
description: 'Main dining room',
media: [
{
source: '550e8400-e29b-41d4-a716-446655440000',
source_type: 'media_id',
type: 'image'
}
]
})
};
fetch('https://api.social-api.ai/v1/platforms/google/accounts/{id}/media', 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.social-api.ai/v1/platforms/google/accounts/{id}/media",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'category' => 'INTERIOR',
'description' => 'Main dining room',
'media' => [
[
'source' => '550e8400-e29b-41d4-a716-446655440000',
'source_type' => 'media_id',
'type' => 'image'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.social-api.ai/v1/platforms/google/accounts/{id}/media"
payload := strings.NewReader("{\n \"category\": \"INTERIOR\",\n \"description\": \"Main dining room\",\n \"media\": [\n {\n \"source\": \"550e8400-e29b-41d4-a716-446655440000\",\n \"source_type\": \"media_id\",\n \"type\": \"image\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.social-api.ai/v1/platforms/google/accounts/{id}/media")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"category\": \"INTERIOR\",\n \"description\": \"Main dining room\",\n \"media\": [\n {\n \"source\": \"550e8400-e29b-41d4-a716-446655440000\",\n \"source_type\": \"media_id\",\n \"type\": \"image\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.social-api.ai/v1/platforms/google/accounts/{id}/media")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"category\": \"INTERIOR\",\n \"description\": \"Main dining room\",\n \"media\": [\n {\n \"source\": \"550e8400-e29b-41d4-a716-446655440000\",\n \"source_type\": \"media_id\",\n \"type\": \"image\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"attribution": {
"profile_name": "Jane S.",
"profile_photo_url": "<string>",
"profile_url": "<string>",
"takedown_url": "<string>"
},
"category": "INTERIOR",
"created_at": "2026-03-01T12:00:00Z",
"description": "Main dining room",
"height_pixels": 1200,
"id": "accounts/123/locations/456/media/789",
"media": {
"type": "image",
"url": "https://lh3.googleusercontent.com/p/abc"
},
"thumbnail_url": "<string>",
"width_pixels": 1600
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}Add media to a Google Business Profile location
Attaches one photo or video to a location’s public profile under the given category. media takes exactly one item in the same form the publishing endpoints accept: a stored media library id (source_type media_id), a public URL (url), or a reference to bytes you uploaded to Google yourself (platform_attachment_id). SocialAPI resolves a library id and hands Google a URL to fetch, and derives the photo or video format from the stored file, so you never set Google’s own upload fields. Google limits a location to 10 edits per minute, and that limit cannot be raised.
curl --request POST \
--url https://api.social-api.ai/v1/platforms/google/accounts/{id}/media \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"category": "INTERIOR",
"description": "Main dining room",
"media": [
{
"source": "550e8400-e29b-41d4-a716-446655440000",
"source_type": "media_id",
"type": "image"
}
]
}
'import requests
url = "https://api.social-api.ai/v1/platforms/google/accounts/{id}/media"
payload = {
"category": "INTERIOR",
"description": "Main dining room",
"media": [
{
"source": "550e8400-e29b-41d4-a716-446655440000",
"source_type": "media_id",
"type": "image"
}
]
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
category: 'INTERIOR',
description: 'Main dining room',
media: [
{
source: '550e8400-e29b-41d4-a716-446655440000',
source_type: 'media_id',
type: 'image'
}
]
})
};
fetch('https://api.social-api.ai/v1/platforms/google/accounts/{id}/media', 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.social-api.ai/v1/platforms/google/accounts/{id}/media",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'category' => 'INTERIOR',
'description' => 'Main dining room',
'media' => [
[
'source' => '550e8400-e29b-41d4-a716-446655440000',
'source_type' => 'media_id',
'type' => 'image'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.social-api.ai/v1/platforms/google/accounts/{id}/media"
payload := strings.NewReader("{\n \"category\": \"INTERIOR\",\n \"description\": \"Main dining room\",\n \"media\": [\n {\n \"source\": \"550e8400-e29b-41d4-a716-446655440000\",\n \"source_type\": \"media_id\",\n \"type\": \"image\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.social-api.ai/v1/platforms/google/accounts/{id}/media")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"category\": \"INTERIOR\",\n \"description\": \"Main dining room\",\n \"media\": [\n {\n \"source\": \"550e8400-e29b-41d4-a716-446655440000\",\n \"source_type\": \"media_id\",\n \"type\": \"image\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.social-api.ai/v1/platforms/google/accounts/{id}/media")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"category\": \"INTERIOR\",\n \"description\": \"Main dining room\",\n \"media\": [\n {\n \"source\": \"550e8400-e29b-41d4-a716-446655440000\",\n \"source_type\": \"media_id\",\n \"type\": \"image\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"attribution": {
"profile_name": "Jane S.",
"profile_photo_url": "<string>",
"profile_url": "<string>",
"takedown_url": "<string>"
},
"category": "INTERIOR",
"created_at": "2026-03-01T12:00:00Z",
"description": "Main dining room",
"height_pixels": 1200,
"id": "accounts/123/locations/456/media/789",
"media": {
"type": "image",
"url": "https://lh3.googleusercontent.com/p/abc"
},
"thumbnail_url": "<string>",
"width_pixels": 1600
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}Authorizations
Prefix your API key with "Bearer ". Example: Authorization: Bearer sapi_key_...
Path Parameters
Connected account ID
Body
Media item and category
Response
Created
Show child attributes
Show child attributes
"INTERIOR"
"2026-03-01T12:00:00Z"
"Main dining room"
1200
"accounts/123/locations/456/media/789"
Show child attributes
Show child attributes
1600