G2 Vendor API
API health
- 24h health
- Normal
- Healthy / normal
- Available
- Limited
- Mostly down
Last 24 hours
Last 30 days
Look up a G2 vendor page by url for founding year, headquarters, ownership, revenue band, employee count, phone and the products it lists. Revenue and headcount are as published on G2, not audited figures.
Send POST https://api.everyinfra.com/api/v1/social with platform set to g2 and action set to vendor. Price $1.39 per 1,000 requests ($0.001389 per call). Failed calls and empty results are not charged. Synchronous. For slow jobs add "mode": "async" to the body, take the job_id and poll.
AI prompt
#Please help me write a data collection script with the EveryInfra G2 Vendor endpoint (g2/vendor).
How the endpoint works:
- Request: POST https://api.everyinfra.com/api/v1/social with the header Authorization: Bearer <API key>. Read the key from the EVERYINFRA_API_KEY environment variable and never hard-code it.
- In the request body, set platform to g2 and action to vendor, and put the parameters inside params.
- Required parameters:
- url: Specifies the target G2 resource URL or bare slug. For profile, reviews, and alternatives, pass a /products/<slug> URL or product slug; for vendor, pass a /sellers/<slug> URL or seller slug.
- Optional parameters:
- slug: Specifies the path slug for the target resource: product actions accept the slug following /products/, while vendor accepts the vendor slug following /sellers/. Do not mix slugs across object types.
- vendor: Specifies either the seller path slug from /sellers/ or a direct vendor page URL. It does not perform a free-text company name search, and vendor action calls must still include the required url parameter.
- vendor_url: Provides the /sellers/<slug> vendor landing page URL as a compatibility input for vendor targeting. It does not replace the required url parameter on the vendor action.
- Returns one object. Main fields: slug, name, url, description, founded, hq_location, product_count, total_reviews, products, ownership, total_revenue, employees; 13 fields in total, full list at https://api.everyinfra.com/api/v1/social/catalog?platform=g2.
- Example request body:
{
"platform": "g2",
"action": "vendor",
"params": {
"url": "https://www.g2.com/sellers/slack"
}
}
- Price: $1.39 per 1,000 requests; failed and empty results are not charged.
- For dozens or hundreds of targets, add "mode": "async" to the body: you get a job_id at once and poll GET https://api.everyinfra.com/api/v1/jobs/{job_id} for the result.
- On 422, fix the request using the suggested parameter names and allowed values in the error; on 429 or 503, wait for Retry-After and try again.
Before writing code, ask me which targets I need, how many, which fields, and what output format I want; then confirm the plan and the rough cost with me.Request parameters
#| Name | In | Type | Required | Default | Description |
|---|---|---|---|---|---|
Authorization | header | string | Yes | - | Bearer followed by your API key. Create it in the console; never put it in a URL or a code repository. |
platform | body | string | Yes | g2 | Platform identifier, fixed value. |
action | body | string | Yes | vendor | Capability identifier, fixed value. |
url | body.params | string | Yes | - | Specifies the target G2 resource URL or bare slug. For profile, reviews, and alternatives, pass a /products/<slug> URL or product slug; for vendor, pass a /sellers/<slug> URL or seller slug. For compare, passing a full /compare/ URL overrides auto-generated paths, though the required slugs parameter must still be supplied. |
slug | body.params | string | No | - | Specifies the path slug for the target resource: product actions accept the slug following /products/, while vendor accepts the vendor slug following /sellers/. Do not mix slugs across object types. Providing a slug does not waive the required url or category parameters for the given action. |
vendor | body.params | string | No | - | Specifies either the seller path slug from /sellers/ or a direct vendor page URL. It does not perform a free-text company name search, and vendor action calls must still include the required url parameter. |
vendor_url | body.params | string | No | - | Provides the /sellers/<slug> vendor landing page URL as a compatibility input for vendor targeting. It does not replace the required url parameter on the vendor action. |
Code samples
#curl -X POST 'https://api.everyinfra.com/api/v1/social' \
-H "Authorization: Bearer $EVERYINFRA_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"platform": "g2",
"action": "vendor",
"params": {
"url": "https://www.g2.com/sellers/slack"
}
}'OpenAPI definition (JSON)Samples read the key from the EVERYINFRA_API_KEY environment variable; copied code never contains your key.
Response example
#{ "id": "req_…", "platform": "g2", "action": "vendor", "results": { "slug": "slack", "name": "Followbot", "url": "https://www.g2.com/sellers/slack", "description": "Followbot has been rated 0.0 stars by 0 verified reviews on G2. Explore all Followbot solutions based on real user feedback.", "hq_location": "N/A", "product_count": 1, "total_reviews": 0, "products": [ { "slug": "followbot", "name": "FollowBot", "url": "https://www.g2.com/products/followbot/reviews", "rating": 0, "review_count": 0 } ], "platform": "g2" }, "billing": { "charged": …, "charged_usd": …, "balance_after_usd": …, … }, "quota": { … }}
Response fields
#Business data is in results. The table lists the fields a record can contain; values the platform does not show are never made up.
| Field | Meaning |
|---|---|
slug | Keeps the platform's own meaning |
name | Name of the object itself, for account, product and business capabilities. |
url | Link to the record on the platform. |
description | Summary or description, usually shorter than text. |
founded | Keeps the platform's own meaning |
hq_location | Keeps the platform's own meaning |
product_count | Keeps the platform's own meaning |
total_reviews | Keeps the platform's own meaning |
products | Keeps the platform's own meaning |
platform | Source platform identifier, the same as platform in the request (for example xiaohongshu, tiktok). |
ownership | Keeps the platform's own meaning |
total_revenue | Keeps the platform's own meaning |
employees | Keeps the platform's own meaning |
phone | Contact phone number, passed through without format normalization. |
Errors and billing
#- 401
- Missing or invalid key.
- 402
- Insufficient balance. Top up first.
- 422
- Invalid parameter name or value. Fix it using the suggestions in the error. No charge.
- 429
- Per-minute request limit reached. Wait for Retry-After, then try again.
- 503
- Could not complete. The held charge is returned to your balance. If the outcome is unknown, verify it before you retry.
- 200 empty
- No data. No charge.