Property | Description |
---|---|
location_data object | Contains location-specific data for the primary location associated with a site. |
additional_locations | Contains location-specific data for any secondary/child locations associated with a site. |
site_texts | Contains the standard and custom text strings. Each field has a max length of 4000 characters. There is a limit of 200 |
business_data | Contains the |
site_images | Images that can be set and used within the design of the website. If you have the data, you should populate the alt value. |
Location Specific Information
The following fields are related to a specific location in the content library.
location_data & additional_locations
Property | Description |
---|---|
phones object[] | Contains phone numbers for this location. The object allows for a friendly label name and the actual phone number. Note that there is no specific requirement for phone numbers, Duda will display this in the same format you submit it in. Max 80 characters each. |
emails | Contains all email addresses associated with this location. The object allows for a friendly label name and the actual email address. Max 80 characters each. |
label | A simple name for this location. This is displayed in the Duda Content Library UI related to this location. Max 80 characters. |
schema | Details of the location/organizational schema that's generated. Note: only available as a property for |
social_accounts | The profile name of this location's social networks. You must pass only the profile name/ID. Do not pass the full URL (e.g., https://wwwfacebook.com/duda). We support the following social networks: Facebook, Twitter, Yelp, Foursquare, Google Plus, Instagram, Youtube, Linkedin, Pinterest, Vimeo, RSS, Reddit, Trip Advisor & Snapchat. |
address | Contains all fields required to display an address: streetAddress, postalCode, region, city, country. |
address_geolocation | A geocode address string used to get LAT/LON from a geocoding map service. This is generated within the Duda Editor UI when searching for an address. Note: You can't update the geolocation string via the API (you can only read it). |
geo | An object containing the LAT and LON of the address. Duda will return this if we've identified an address in the editor for this location, but we will not automatically generate it. You can pass this if you know the exact LAT/LON. |
logo_url | A URL directly referencing the logo of this location. Must be a public URL and be served over HTTPS. |
business_hours | An array containing each day of the week and the hours that the location opens and closes. For each set of hours, you can pass an array of days: MON, TUE, WED, THU, FRI, SAT, SUN that applies to those hours. Open and close hours must be in 24HH:MM format. So, for example, 7:30 am would be: 07:30 and 5 pm would be 17:00. If the business is closed on a certain day, please omit it from the data set. If the business is open 24 hours a day, you should pass the hours as 00:00 to 24:00. |
phone
Property | Description |
---|---|
phoneNumber string | A specific phone number. |
label | A label to associate with the above phone number. |
email
Property | Description |
---|---|
emailAddress string | A specific email address. |
label | A label to associate with the above email address. |
schema
Property | |
---|---|
type string | The type of LocalBusinessSchema for this business. Full list of types can be found here. |
custom_fields | An array of objects with |
social_accounts
Property | Description |
---|---|
tripadvisor string | A TripAdvisor page ID. Max 200 characters. |
youtube | A YouTube page ID. Max 50 characters. |
facebook | A Facebook page ID. Max 200 characters |
yelp | A Yelp page ID. Max 300 characters |
pinterest | A Pinterest page ID. Max 200 characters. |
linkedin | A Linkedin page ID. Max 200 characters. |
instagram | An Instagram page ID. Max 60 characters. |
snapchat | A Snapchat page ID. Max 30 characters. |
twitter | A Twitter/X page ID. Max 300 characters. |
rss | A link to the site's RSS feed. Max 2048 characters. |
vimeo | A Vimeo page ID. Max 200 characters |
reddit | A Reddit page ID. Max 200 characters |
foursquare | A Foursquare page ID. Max 200 characters |
google_my_business | A Google Business ID. Max 200 characters |
whatsapp | A WhatsApp ID. Max 50 characters |
tiktok | A TikTok ID. Max 50 characters |
address
Property | Description |
---|---|
streetAddress string | The business's street address. |
postalCode | The business's postal code. |
region | The region where the business is located. |
city | The city where the business is located. |
country | The counter where the business is located. |
geo
Property | Description |
---|---|
longitude string | |
latitude |
business_hours
Property | Description |
---|---|
days string[] | [ "MON", "TUE", "WED", "THU", "FRI" ] |
open | The time the business opens. |
close | The time the business closes. |
Global Properties
Below is website content that does not relate to a specific location. This is global data stored across the website.
Property | Description |
---|---|
business_data object | Contains the |
site_texts | Containing overview, services, about_us and custom text strings. Each field has a max length of 4000 characters. There is a limit of 200 |
site_images | Images that can be set and used within the design of the website. If you have the data, you should populate the alt value. See the section below for details |
business_data
The business data object contains visible content for the site such as the name and logo of the business, and also contains data that is used by Duda's AI assistant to generate appropriate prompts
Property | Description |
---|---|
name string | The name of the business. This field is required if you are also providing the AI assistant fields listed below. |
logo_url | A URL to the overall business logo. |
description | The description of the business. This field is used solely by the Duda AI Assistant to generate relevant prompts for AI content. Max 1000 characters |
category | The category of the business. This field is used solely by the Duda AI Assistant to generate relevant prompts for AI content. Max 100 characters |
service_area | The service area of the business. This field is used solely by the Duda AI Assistant to generate relevant prompts for AI content. Any description of a service area is allowed, and is not limited to a specific address. Max 200 characters |
tone_of_voice | One of CONVERSATIONAL, HUMOROUS, ENTHUSIASTIC, INFORMATIVE, PROFESSIONAL, WITTY or AUTHORITATIVE. This field is used solely by the Duda AI Assistant to generate relevant prompts for AI content. Any other value outside of the enum will result in a parse error. |
site_texts
Property | Description |
---|---|
overview string | Overview of the business. Up to 4000 characters. |
services | List of services. Up to 4000 characters. |
about_us | About the business. Up to 4000 characters. |
custom | An array of key/value pairs of custom text to be used as site content. Each object in the array consists of a |
site_images
Property | Description |
---|---|
label string | Identifier for image in the content library. Used when connecting this image to widgets. Max 80 characters. |
url | A URL to the image. |
alt | A description of the image used by screen readers and other assistive technologies. Max 80 characters. |
Example Payload
{
"location_data":{
"phones":[
{
"phoneNumber":"123-123-1234",
"label":"Russ Phone"
},
{
"phoneNumber":"18001234567",
"label":"Duda Phone"
}
],
"emails":[
{
"emailAddress":"[email protected]",
"label":"API Email"
},
{
"emailAddress":"[email protected]",
"label":"Support Email"
}
],
"schema": {
"type": "Resort",
"custom_fields":[
{
"name":"acceptsReservations",
"value":true
},
{
"name":"priceRange",
"value":"$$$"
}
]
},
"label":"Duda HQ",
"social_accounts":{
"tripadvisor":"Restaurant_Review-g32849-d2394400-Reviews-Oren_s_Hummus_Shop-Palo_Alto_California.html",
"youtube":"UCPMwzOc1Su-s2z-J1xiU9ig",
"facebook":"duda",
"yelp":"orens-hummus-shop-palo-alto",
"pinterest":"michelleobama",
"google_plus":"+Dudamobile577",
"linkedin":"duda",
"instagram":"orenshummus",
"snapchat":"michelleobama",
"twitter":"dudamobile",
"rss":"https://www.duda.co/blog/feed/",
"vimeo":"dudamobile",
"reddit":"duda"
},
"address":{
"streetAddress":"577 College Ave",
"postalCode":"94306",
"region":"CA",
"city":"Palo Alto",
"country":"US"
},
"address_geolocation":"1833 Harvard St NW, Washington, DC 20009, USA",
"geo":{
"longitude":"-122.4757527166",
"latitude":"37.502439189002"
},
"logo_url":"https://du-cdn.multiscreensite.com/duda_website/img/home/agencies.svg",
"business_hours":[
{
"days":[
"MON",
"TUE",
"WED",
"THU",
"FRI"
],
"open":"09:00",
"close":"18:00"
}
]
},
"additional_locations":[
{
"uuid":"276169839",
"phones":[
{
"phoneNumber":"123-123-1234",
"label":""
}
],
"emails":[
],
"label":"Duda Tel Aviv",
"social_accounts":{
},
"address":{
},
"geo":{
"longitude":"34.78337",
"latitude":"32.07605"
},
"logo_url":null,
"business_hours":null
}
],
"site_texts":{
"overview":"Oh, Duda? Duda is a variation of \"Dude\", who just happens to be the main character in one of our favorite movies of all time: The Big Lebowski. You should watch it some time. Look out for that ferret!",
"services":"- Responsive Website Builder",
"custom":[
{
"label":"Example CTA 1",
"text":"THE WEB DESIGN PLATFORM FOR Scaling Your Agency"
},
{
"label":"Example CTA 2",
"text":"THE WEB DESIGN PLATFORM FOR\nBuilding Websites Faster"
}
],
"about_us":"Duda is a leading website builder for web professionals and agencies of all sizes. Our website builder enables you to build amazing, feature-rich websites that are perfectly suited to desktop, tablet and mobile. Our mobile builder enables you to build mobile-only sites from scratch, or based on an existing desktop site or Facebook business page. Duda allows professionals and agencies to build high-converting, personalized websites at scale. Duda optimizes each and every site for Google PageSpeed."
},
"business_data":{
"name":"Duda",
"logo_url":"https://www.duda.co/developers/REST-API-Reference/images/duda.svg",
"description": "A responsive website builder built for web professionals",
"category": "Software",
"service_area": "A 30 mile radius from Boulder, Colorado",
"tone_of_voice": "CONVERSATIONAL"
},
"site_images":[
{
"label":"Example Store Logo",
"url":"https://irt-cdn.multiscreensite.com/7536fe2010ed4f7ea68e21d0cb868e01/dms3rep/multi/ice_cream_logo_b_w-18-300x300.svg",
"alt":"Example Store Logo"
},
{
"label":"Example Store Banner",
"url":"https://irt-cdn.multiscreensite.com/7536fe2010ed4f7ea68e21d0cb868e01/dms3rep/multi/sign_icecream_shop-1000x1108.jpg",
"alt":"Example Store Banner"
}
]
}