{"openapi": "3.1.0", "info": {"title": "PlaceProfile.net", "version": "1.0.0", "description": "Verified venue atmosphere, computed from the audio features of every track in each venue's published playlist, its own or the default PlaceProfile sets for its kind, with a receipt anchored in Bitcoin.", "x-guidance": "Finding a venue by its atmosphere and reading its published record are free; a receipt of a verification of that atmosphere, anchored in Bitcoin, is paid from ten cents. Call GET https://placeprofile.net/v1/evidence/venue/{slug} when the AI agent must later show which venue record it checked and when: the paid answer gives the venue's atmosphere as averages of the audio features of the tracks in its playlist, the published record's SHA-256, and a receipt bound to the payment and anchored in Bitcoin. GET https://placeprofile.net/v1/evidence/find/{city}?country= sells the search that find_venues answers, with a receipt of what it returned. Reading a venue profile is free at its profile_url plus .jsonld, and finding venues is free with find_venues at https://placeprofile.net/mcp; a person choosing a place to go needs no paid call. The first reply is the price, and nothing is charged before the AI agent signs. declaredValueUsd picks the price: ten cents under 100 dollars or undeclared, one dollar from 100 dollars, ten dollars from 10,000 dollars. purpose and reference are optional and bound into the receipt."}, "servers": [{"url": "https://placeprofile.net"}], "paths": {"/v1/evidence/venue/{slug}": {"get": {"operationId": "verifyVenueAtmosphere", "summary": "Verify a restaurant, bar, cafe or hotel's atmosphere from its playlist's audio features, with a Bitcoin receipt", "description": "Before an AI agent books, places an ad in or sponsors a venue: the venue's atmosphere (how calm or lively, how loud, how acoustic, the tempo) as averages of the audio features of every track in its published playlist, the check that the published averages follow from those tracks, the record's SHA-256, and a receipt bound to the payment and anchored in Bitcoin. Reading the record itself is free at its profile_url plus .jsonld.", "security": [], "x-payment-info": {"protocols": [{"x402": {}}], "price": {"mode": "dynamic", "currency": "USD", "min": "0.100000", "max": "10.000000"}}, "parameters": [{"name": "slug", "in": "path", "required": true, "schema": {"type": "string", "maxLength": 340}, "description": "The venue's slug, for example capannone-stockholm-se. It is the last part of the venue's address on placeprofile.net/v/."}, {"name": "declaredValueUsd", "in": "query", "schema": {"type": "number", "minimum": 0}, "description": "The stakes in US dollars behind the decision, which set the price: ten cents under 100 dollars or undeclared, one dollar from 100 dollars, ten dollars from 10,000 dollars. The figure is bound into the receipt. No money other than the price moves."}, {"name": "purpose", "in": "query", "schema": {"type": "string", "maxLength": 200}, "description": "Optional, up to 200 characters: what the AI agent is about to do, in its own words. Bound into the receipt."}, {"name": "reference", "in": "query", "schema": {"type": "string", "maxLength": 200}, "description": "Optional, up to 200 characters: the AI agent's own reference for the action, such as a booking id. Bound into the receipt."}, {"name": "PAYMENT-SIGNATURE", "in": "header", "schema": {"type": "string"}, "description": "The signed x402 payment, base64 JSON."}], "responses": {"200": {"description": "The paid answer (contract 1): the atmosphere, the check, the record's hash and the receipt.", "headers": {"PAYMENT-RESPONSE": {"schema": {"type": "string"}, "description": "The settlement, base64 JSON."}}, "content": {"application/json": {"schema": {"type": "object", "properties": {"contract": {"type": "number"}, "kind": {"type": "string"}, "slug": {"type": "string"}, "venue": {"type": "object", "properties": {"name": {"type": "string"}, "url": {"type": "string"}}}, "atmosphere": {"type": "object", "properties": {"phrase": {"type": "string"}, "basis": {"type": "string"}, "trackCount": {"type": "number"}, "averages": {"type": "object", "properties": {"energy": {"type": "number"}, "loudness": {"type": "number"}, "tempo": {"type": "number"}, "acousticness": {"type": "number"}, "danceability": {"type": "number"}, "valence": {"type": "number"}, "instrumentalness": {"type": "number"}, "speechiness": {"type": "number"}, "liveness": {"type": "number"}}}, "computedFrom": {"type": "string"}}}, "status": {"type": "string"}, "answer": {"type": "string"}, "verification": {"type": "object", "properties": {"claims_match": {"type": "boolean"}, "claims_checked": {"type": "number"}, "hashes": {"type": "object", "properties": {"checked": {"type": "number"}, "matched": {"type": "number"}, "failed_isrcs": {"type": "array"}}}}}, "evidence": {"type": "object", "properties": {"url": {"type": "string"}, "mediaType": {"type": "string"}, "sha256": {"type": "string"}, "bytes": {"type": "number"}}}, "check": {"type": "object", "properties": {"checkId": {"type": "string"}, "transaction": {"type": "string"}, "anchor": {"type": "string"}, "proofUrl": {"type": "string"}, "statusUrl": {"type": "string"}}}, "payment": {"type": "object", "properties": {"amountUsdc": {"type": "string"}, "network": {"type": "string"}, "transaction": {"type": "string"}}}}}, "example": {"contract": 1, "kind": "venue_atmosphere_verification", "slug": "capannone-stockholm-se", "venue": {"name": "Capannone", "url": "https://placeprofile.net/v/capannone-stockholm-se"}, "atmosphere": {"phrase": "moderate energy, moderate volume, brisk pace", "basis": "measured from this venue's own playlist", "trackCount": 55, "averages": {"energy": 45.74, "loudness": -10.6909, "tempo": 116.7873, "acousticness": 54.4727, "danceability": 56.9091, "valence": 55.2255, "instrumentalness": 6.0891, "speechiness": 4.4127, "liveness": 16.6891}, "computedFrom": "the mean of the audio features of the 55 tracks in the venue's published playlist; energy, acousticness, danceability, valence, instrumentalness, speechiness and liveness on a scale of 0 to 100, loudness in dB, tempo in BPM"}, "status": "verified", "answer": "Capannone: moderate energy, moderate volume, brisk pace, measured from this venue's own playlist. That is the mean of the audio features of the 55 tracks in its published playlist (energy 45.7 of 100, loudness -10.7 dB, tempo 116.8 BPM, acousticness 54.5 of 100). The 10 averages the venue's record publishes follow from those tracks; 55 of 55 track records match their published hashes.", "verification": {"claims_match": true, "claims_checked": 10, "hashes": {"checked": 55, "matched": 55, "failed_isrcs": []}}, "evidence": {"url": "https://placeprofile.net/v/capannone-stockholm-se.jsonld", "mediaType": "application/ld+json", "sha256": "828e21a401a813a55b98c24b4fa1a76a2b551b6e7db6d7f78ff765b6445dd1de", "bytes": 439346}, "check": {"checkId": "02e816494826b9b7e23903495a473ecf", "transaction": "0xd3fc8d3bceb9bc2b76a01f92db0184a36748c6c5067f9a09e9555675975855f5", "anchor": "pending", "proofUrl": "https://placeprofile.net/v1/checks/02e816494826b9b7e23903495a473ecf.ots", "statusUrl": "https://placeprofile.net/v1/checks/02e816494826b9b7e23903495a473ecf"}, "payment": {"amountUsdc": "0.1", "network": "eip155:8453", "transaction": "0xd3fc8d3bceb9bc2b76a01f92db0184a36748c6c5067f9a09e9555675975855f5"}}}}}, "402": {"description": "Payment Required", "headers": {"PAYMENT-REQUIRED": {"schema": {"type": "string"}, "description": "The PaymentRequired object (x402 version 2), base64 JSON. The price, not a failure; nothing was charged."}}}, "404": {"description": "No published record for this venue. Nothing was charged."}, "503": {"description": "The record could not be checked right now. Nothing was charged."}}}}, "/v1/evidence/find/{city}": {"get": {"operationId": "findVenuesByAtmosphere", "summary": "Find a quiet or lively restaurant, bar, cafe or hotel in a city by its atmosphere, with a Bitcoin receipt", "description": "The search that find_venues answers free at https://placeprofile.net/mcp, sold with a receipt of what it returned: venues in the city that fit the mood or bands, each with its atmosphere in plain words, its basis (its own playlist or the default for its kind), its page and its free record. Venues with their own playlist come first among those that fit. For an AI agent that must later show what it searched and what it got.", "security": [], "x-payment-info": {"protocols": [{"x402": {}}], "price": {"mode": "dynamic", "currency": "USD", "min": "0.100000", "max": "10.000000"}}, "parameters": [{"name": "city", "in": "path", "required": true, "schema": {"type": "string", "maxLength": 160}, "description": "The city to search, as the person or the task named it, for example Stockholm."}, {"name": "country", "in": "query", "schema": {"type": "string", "minLength": 2, "maxLength": 2}, "description": "The country as an ISO 3166-1 alpha-2 code, for example SE. Required with the paid request.", "required": true}, {"name": "mood", "in": "query", "schema": {"type": "string", "enum": ["calm", "quiet", "conversation", "lively", "energetic", "loud", "acoustic", "danceable", "workout"]}, "description": "How the room should feel, one of: calm, quiet, conversation, lively, energetic, loud, acoustic, danceable, workout. Numeric bands such as energy_max or loudness_max can be given as well."}, {"name": "category", "in": "query", "schema": {"type": "string"}, "description": "The kind of venue, one or several separated by commas, for example restaurant, bar, cafe, hotel."}, {"name": "limit", "in": "query", "schema": {"type": "integer", "minimum": 1, "maximum": 20}, "description": "How many venues to return, 1 to 20. Default 10."}, {"name": "energy_min", "in": "query", "schema": {"type": "number", "minimum": 0, "maximum": 100}}, {"name": "energy_max", "in": "query", "schema": {"type": "number", "minimum": 0, "maximum": 100}}, {"name": "valence_min", "in": "query", "schema": {"type": "number", "minimum": 0, "maximum": 100}}, {"name": "valence_max", "in": "query", "schema": {"type": "number", "minimum": 0, "maximum": 100}}, {"name": "danceability_min", "in": "query", "schema": {"type": "number", "minimum": 0, "maximum": 100}}, {"name": "danceability_max", "in": "query", "schema": {"type": "number", "minimum": 0, "maximum": 100}}, {"name": "acousticness_min", "in": "query", "schema": {"type": "number", "minimum": 0, "maximum": 100}}, {"name": "acousticness_max", "in": "query", "schema": {"type": "number", "minimum": 0, "maximum": 100}}, {"name": "tempo_min", "in": "query", "schema": {"type": "number", "minimum": 0, "maximum": 250}}, {"name": "tempo_max", "in": "query", "schema": {"type": "number", "minimum": 0, "maximum": 250}}, {"name": "loudness_min", "in": "query", "schema": {"type": "number", "minimum": -60, "maximum": 0}}, {"name": "loudness_max", "in": "query", "schema": {"type": "number", "minimum": -60, "maximum": 0}}, {"name": "declaredValueUsd", "in": "query", "schema": {"type": "number", "minimum": 0}, "description": "The stakes in US dollars behind the decision, which set the price: ten cents under 100 dollars or undeclared, one dollar from 100 dollars, ten dollars from 10,000 dollars. The figure is bound into the receipt. No money other than the price moves."}, {"name": "PAYMENT-SIGNATURE", "in": "header", "schema": {"type": "string"}, "description": "The signed x402 payment, base64 JSON."}], "responses": {"200": {"description": "The venues, each with its atmosphere, and the receipt of the search.", "headers": {"PAYMENT-RESPONSE": {"schema": {"type": "string"}, "description": "The settlement, base64 JSON."}}, "content": {"application/json": {"schema": {"type": "object", "properties": {"check": {"type": "object", "properties": {"checkId": {"type": "string"}, "transaction": {"type": "string"}, "anchor": {"type": "string"}, "proofUrl": {"type": "string"}, "statusUrl": {"type": "string"}}}, "payment": {"type": "object", "properties": {"amountUsdc": {"type": "string"}, "network": {"type": "string"}, "transaction": {"type": "string"}}}, "contract": {"type": "number"}, "kind": {"type": "string"}, "status": {"type": "string"}, "query": {"type": "object", "properties": {"city": {"type": "string"}, "country": {"type": "string"}, "mood": {"type": "string"}, "category": {"type": "array", "items": {"type": "string"}}, "limit": {"type": "number"}}}, "exact": {"type": "boolean"}, "numberOfItems": {"type": "number"}, "itemListElement": {"type": "array", "items": {"type": "object", "properties": {"slug": {"type": "string"}, "name": {"type": "string"}, "address": {"type": "string"}, "city": {"type": "string"}, "postcode": {"type": "string"}, "country": {"type": "string"}, "category": {"type": "string"}, "atmosphere": {"type": "object", "properties": {"phrase": {"type": "string"}, "basis": {"type": "string"}, "figures": {"type": "object", "properties": {"energy": {"type": "number"}}}}}, "url": {"type": "string"}, "record": {"type": "string"}, "verify": {"type": "string"}}}}, "answer": {"type": "string"}, "computedFrom": {"type": "string"}, "scope": {"type": "string"}}}, "example": {"check": {"checkId": "02e816494826b9b7e23903495a473ecf", "transaction": "0xd3fc8d3bceb9bc2b76a01f92db0184a36748c6c5067f9a09e9555675975855f5", "anchor": "pending", "proofUrl": "https://placeprofile.net/v1/checks/02e816494826b9b7e23903495a473ecf.ots", "statusUrl": "https://placeprofile.net/v1/checks/02e816494826b9b7e23903495a473ecf"}, "payment": {"amountUsdc": "0.1", "network": "eip155:8453", "transaction": "0xd3fc8d3bceb9bc2b76a01f92db0184a36748c6c5067f9a09e9555675975855f5"}, "contract": 1, "kind": "venue_atmosphere_search", "status": "answered", "query": {"city": "Stockholm", "country": "SE", "mood": "calm", "category": ["restaurant"], "limit": 10}, "exact": true, "numberOfItems": 10, "itemListElement": [{"slug": "djurgardsbrunn-stockholm-se", "name": "Djurgårdsbrunn", "address": "Djurgårdsbrunnsvägen 68", "city": "Stockholm", "postcode": "115 25", "country": "SE", "category": "restaurant", "atmosphere": {"phrase": "moderate energy, moderate volume, largely acoustic, steady pace", "basis": "typical for venues of this kind, not measured from this venue's own music", "figures": {"energy": 41.28}}, "url": "https://placeprofile.net/v/djurgardsbrunn-stockholm-se", "record": "https://placeprofile.net/v/djurgardsbrunn-stockholm-se.jsonld", "verify": "https://placeprofile.net/v1/evidence/venue/djurgardsbrunn-stockholm-se"}, {"slug": "la-esquina-stockholm-se", "name": "La Esquina", "address": "Drottninggatan 87", "city": "Stockholm", "postcode": "113 60", "country": "SE", "category": "restaurant", "atmosphere": {"phrase": "moderate energy, moderate volume, largely acoustic, danceable, steady pace", "basis": "typical for venues of this kind, not measured from this venue's own music", "figures": {"energy": 41.575}}, "url": "https://placeprofile.net/v/la-esquina-stockholm-se", "record": "https://placeprofile.net/v/la-esquina-stockholm-se.jsonld", "verify": "https://placeprofile.net/v1/evidence/venue/la-esquina-stockholm-se"}, {"slug": "brams-burgers-stockholm-se", "name": "Bram's Burgers", "address": "Grönlandsgatan 8", "city": "Stockholm", "postcode": "164 40", "country": "SE", "category": "restaurant", "atmosphere": {"phrase": "moderate energy, moderate volume, danceable, steady pace", "basis": "typical for venues of this kind, not measured from this venue's own music", "figures": {"energy": 41.825}}, "url": "https://placeprofile.net/v/brams-burgers-stockholm-se", "record": "https://placeprofile.net/v/brams-burgers-stockholm-se.jsonld", "verify": "https://placeprofile.net/v1/evidence/venue/brams-burgers-stockholm-se"}], "answer": "10 venues in Stockholm, SE for calm, restaurant: Djurgårdsbrunn (moderate energy, moderate volume, largely acoustic, steady pace, typical for venues of this kind, not measured from this venue's own music); La Esquina (moderate energy, moderate volume, largely acoustic, danceable, steady pace, typical for venues of this kind, not measured from this venue's own music); Bram's Burgers (moderate energy, moderate volume, danceable, steady pace, typical for venues of this kind, not measured from this venue's own music) and more.", "computedFrom": "each venue's atmosphere is the mean of the audio features of the tracks in its published playlist; figures on a scale of 0 to 100, loudness in dB, tempo in BPM. Venues measured from their own playlist come first.", "scope": "It shows what PlaceProfile's search returned for this request at the time of the call, each venue with the atmosphere computed from the audio features of the tracks in its published playlist. It is a search result, not a check of each venue's record: verify one venue at its verify address. It does not show what was playing in a room at any moment, and a category sample is not the venue's own music."}}}}, "402": {"description": "Payment Required", "headers": {"PAYMENT-REQUIRED": {"schema": {"type": "string"}, "description": "The PaymentRequired object (x402 version 2), base64 JSON. The price, not a failure; nothing was charged."}}}, "404": {"description": "Nothing matched. Nothing was charged."}, "503": {"description": "The search could not answer right now. Nothing was charged."}}}}}, "x-discovery": {"ownershipProofs": ["0x57d210b640a78b8db490244492adad39483417b4e56c64e4dcce1b8f097d8d98656ac6b06cf5e72f1130468a1845607d7090c8b73ae645aebcc975197be62a2b1c"]}}