Imports
Base URL: https://app.neuroflash.com/api/audience-service
Auto-generate target audience profiles from text descriptions, URLs, documents, or brand voices.
Import a target audience from URLs
POST
/v1/workspaces/{workspaceId}/target-audiences-url-importsParses content from URLs and returns a prepared create command for a target audience
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
workspaceId | string | Yes | Workspace ID |
Request Body
FieldTypeRequiredDescription
audienceModelIdstringYesurlsarray<string>YesA list of stringsResponse
FieldTypeDescription
countrystringgenderDistributionobject
femalenumbermalenumbernonBinarynumberpreferNotToSaynumberinterestsarray<string>A list of strings stored in the database as JSONmaxAgeintegerminAgeintegerWe store age range as separate min/max fields in the databasenamestringnativeLanguagestringneedsarray<string>A list of strings stored in the database as JSONpainPointsarray<string>A list of strings stored in the database as JSONresidencestringsharedbooleanExample
tip
Pass 1–10 URLs per request. The service fetches and analyses all pages, then synthesises a single audience profile. Use your brand's homepage or a specific product page for best results.
- cURL
- Python
- Node.js
- Go
curl -X POST "https://app.neuroflash.com/api/audience-service/v1/workspaces/{workspace_id}/target-audiences-url-imports" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"audienceModelId": "538b1efc6f88ad88feebf7acd8c618facb54fe82",
"urls": ["https://your-brand.com"]
}'
import requests
response = requests.post(
f"https://app.neuroflash.com/api/audience-service/v1/workspaces/{workspace_id}/target-audiences-url-imports",
headers={"Authorization": f"Bearer {token}", "Content-Type": "application/json"},
json={
"audienceModelId": "538b1efc6f88ad88feebf7acd8c618facb54fe82",
"urls": ["https://your-brand.com"]
},
).json()
const response = await fetch(
`https://app.neuroflash.com/api/audience-service/v1/workspaces/${workspaceId}/target-audiences-url-imports`,
{
method: "POST",
headers: {
Authorization: `Bearer ${token}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"audienceModelId": "538b1efc6f88ad88feebf7acd8c618facb54fe82",
"urls": ["https://your-brand.com"]
}),
}
).then((r) => r.json());
body, _ := json.Marshal(map[string]any{
"audienceModelId": "538b1efc6f88ad88feebf7acd8c618facb54fe82",
"urls": []any{"https://your-brand.com"},
})
req, _ := http.NewRequest("POST", "https://app.neuroflash.com/api/audience-service/v1/workspaces/"+workspaceID+"/target-audiences-url-imports", bytes.NewReader(body))
req.Header.Set("Authorization", "Bearer "+token)
req.Header.Set("Content-Type", "application/json")
resp, _ := http.DefaultClient.Do(req)
defer resp.Body.Close()
Response:
{
"country": "US",
"genderDistribution": {
"female": 0.5,
"male": 0.5,
"nonBinary": 0.5,
"preferNotToSay": 0.5
},
"interests": [
"string"
],
"maxAge": 65,
"minAge": 18,
"name": "Young urban professionals",
"nativeLanguage": "de",
"needs": [
"string"
],
"painPoints": [
"string"
],
"residence": "Berlin",
"shared": true
}