Your backendFixed Endpoint→GlasserHTTP API→ProviderData
Call an Endpoint
Example: take an Instagram username from your app and retrieve its latest public posts.1
Connect your backend
Base URL:
Header:
Your user’s account: select that user’s Key for each request.Store Keys on your backend. Check the connection with a free GET /v1/balance request.
https://api.glasser.aiHeader:
Authorization: Bearer <your Key>Your product’s account: use your Workspace’s Key.Your user’s account: select that user’s Key for each request.Store Keys on your backend. Check the connection with a free GET /v1/balance request.
2
Inspect the Endpoint once during setup
Send JSON to POST /v1/endpoints/inspect:Get: input schema and current Price. This Endpoint requires
username,
an array containing one username. Inspection is free.3
Call it from your product
Send JSON to POST /v1/runs. Use the same
Authorization header, Replace
Content-Type: application/json, and a unique
Idempotency-Key header for this intended execution.mkbhd with your user’s input.Get: a Run with id, status, and charge_usd. When ready, output
contains up to 10 public posts with captions, like counts, and comment counts.For QUEUED or RUNNING, read that Run until
it reaches a terminal state. Runs use the connected Workspace’s balance.Retries and response handling
Retries and response handling
- Set
endpoint_versionfrom Inspect, or omit it to use the default version. A version does not lock the Price; new Runs use the Price at admission. - Retry the same request with the same
Idempotency-Keyand input. Keep reading an unfinished Run instead of creating another one. - Check both
statusandprovider_response.http_statusbefore usingoutput. ACOMPLETEDRun can still contain a Provider error. - Keep the Run ID and
charge_usdwith your product’s request record. A failed Run can still have a charge under the Endpoint’s Price. - Keep each user’s Key separate. Select it from their authenticated connection, not from the request’s input fields.
Browse Provider APIs
Choose an Endpoint in Data Sources, then Inspect it for its schema. You can reuse it without searching before every Run. To list Providers and Endpoints in code, use GET /public/catalog. No Key is required, and the request is free:providers: Provider names, descriptions, and Endpoint counts.entries: Endpoint identifiers, descriptions, categories, and display prices. Matchproviderto find a Provider’s Endpoints.- One response: the full public list, with no pagination.
Optional: Solutions
The GTM Solution offers six fixed capabilities through HTTP. Glasser handles Endpoint selection, input mapping, and fallback for supported failures.- Web research — web search, news, and page content.
- Company intelligence — company details by domain.
- People search — people and business contact information.
- SEO research — keywords, rankings, and backlinks.
- Social research — social profiles, posts, and search.
- Market data — property data and stock quotes.
/v1/solutions/gtm/. Use the same Key and
an Idempotency-Key header; the response is a Run. See
Solutions overview for an example and the
Provider selection rules.