Stack Overflow & GitHub Developer Ecosystem
POST /api/v1/stackoverflow/developer-ecosystem
Scrape developer ecosystem data combining GitHub repository metrics and Stack Overflow technical Q&A with accepted answers and code blocks.
Overview
Scrape developer ecosystem data combining GitHub repository metrics and Stack Overflow technical Q&A with accepted answers and code blocks.
POST /api/v1/stackoverflow/developer-ecosystem
Method: POST Path: /api/v1/stackoverflow/developer-ecosystem Category: Apps & Software
Request Parameters
Endpoint Parameters
| Name | Type | Requirement | Description |
|---|---|---|---|
| geolocation | string | Optional | Optional two-letter country code to fetch the page from, e.g. US, GB |
| so_url | string | Optional | Optional Stack Overflow question URL |
| target | string | Required | GitHub repository (e.g. huggingface/transformers) or Stack Overflow question URL |
Request Example
Stack Overflow & GitHub Developer Ecosystem Request Examples
curl -X POST "https://api.dataguru.cc/api/v1/stackoverflow/developer-ecosystem" \ -H "Authorization: Api-Key YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"geolocation": "US", "so_url": "example", "target": "example"}'
Response Example
200 OK
Typical 200 OK JSON response structure with envelope metadata.
{ "developer_ecosystem": { "repository_name": "string", "owner": "string", "repository_url": "https://example.com/...", "owner_avatar_url": "https://example.com/...", "description": "string", "website": "string", "topics": [ "string" ], "primary_programming_language": "string", "language_composition_percentages": {}, "star_count": 0, "fork_count": 0, "watcher_count": 0, "open_issue_count": 0, "open_pull_requests_count": 0, "commit_history_summary": "string", "default_branch": "string", "created_date": "2026-01-01T12:00:00Z", "releases": [ "string" ], "license_type": "string", "is_fork": false, "is_archived": false, "stack_overflow": { "question_id": "1234567890", "question_url": "https://example.com/...", "question_title": "string", "question_tags": [ "string" ], "question_score": 0, "view_count": "string", "asked_by": { "name": "string", "profile_url": "https://example.com/...", "reputation": "string" }, "asked_date": "2026-01-01T12:00:00Z", "last_activity_date": "2026-01-01T12:00:00Z", "question_body": "string", "accepted_answer": false, "code_blocks": [ "string" ], "date": "2026-01-01T12:00:00Z", "answers_count": 0, "answers": [ { "answer_id": "1234567890", "score": 0, "is_accepted": false, "author": {}, "date": "2026-01-01T12:00:00Z", "body": "string", "code_blocks": [ "string" ] } ], "related_questions": [ { "title": "string", "url": "https://example.com/...", "votes": 0 } ] }, "community_discussions": [ { "title": "string", "url": "https://example.com/...", "votes": 0, "answers_count": 0, "tags": [ "string" ] } ] }, "_metadata": { "request_id": "3f6c1a2e-8b4d-4c1e-9a7f-2d5e6b7c8d9e", "execution_time_ms": 842, "endpoint": "Stack Overflow & GitHub Developer Ecosystem", "mode": "live", "format": "json", "timestamp": "2026-01-01T12:00:00+00:00" } }
Response Schema
Fields returned in a successful response. Nested fields use dot notation and `[]` marks items of a list. Fields that are not required can be missing or `null` when the source does not provide them. Every response also includes a `_metadata` block.
Response Fields
| Field | Type | Required | Description |
|---|---|---|---|
| developer_ecosystem | object | Yes | |
| developer_ecosystem.repository_name | string | Yes | |
| developer_ecosystem.owner | string | Yes | |
| developer_ecosystem.repository_url | string | No | |
| developer_ecosystem.owner_avatar_url | string | No | |
| developer_ecosystem.description | string | Yes | |
| developer_ecosystem.website | string | No | |
| developer_ecosystem.topics | array<string> | No | |
| developer_ecosystem.primary_programming_language | string | Yes | |
| developer_ecosystem.language_composition_percentages | object | Yes | |
| developer_ecosystem.star_count | integer | Yes | |
| developer_ecosystem.fork_count | integer | Yes | |
| developer_ecosystem.watcher_count | integer | Yes | |
| developer_ecosystem.open_issue_count | integer | Yes | |
| developer_ecosystem.open_pull_requests_count | integer | No | |
| developer_ecosystem.commit_history_summary | string | Yes | |
| developer_ecosystem.default_branch | string | No | |
| developer_ecosystem.created_date | string | No | |
| developer_ecosystem.releases | array<string> | Yes | |
| developer_ecosystem.license_type | string | Yes | |
| developer_ecosystem.is_fork | boolean | No | |
| developer_ecosystem.is_archived | boolean | No | |
| developer_ecosystem.stack_overflow | object | Yes | |
| developer_ecosystem.stack_overflow.question_id | string | No | |
| developer_ecosystem.stack_overflow.question_url | string | No | |
| developer_ecosystem.stack_overflow.question_title | string | Yes | |
| developer_ecosystem.stack_overflow.question_tags | array<string> | Yes | |
| developer_ecosystem.stack_overflow.question_score | integer | No | |
| developer_ecosystem.stack_overflow.view_count | string | No | |
| developer_ecosystem.stack_overflow.asked_by | object | No | |
| developer_ecosystem.stack_overflow.asked_by.name | string | No | |
| developer_ecosystem.stack_overflow.asked_by.profile_url | string | No | |
| developer_ecosystem.stack_overflow.asked_by.reputation | string | No | |
| developer_ecosystem.stack_overflow.asked_date | string | No | |
| developer_ecosystem.stack_overflow.last_activity_date | string | No | |
| developer_ecosystem.stack_overflow.question_body | string | No | |
| developer_ecosystem.stack_overflow.accepted_answer | boolean | Yes | |
| developer_ecosystem.stack_overflow.code_blocks | array<string> | Yes | |
| developer_ecosystem.stack_overflow.date | string | No | |
| developer_ecosystem.stack_overflow.answers_count | integer | No | |
| developer_ecosystem.stack_overflow.answers | array<object> | No | |
| developer_ecosystem.stack_overflow.answers[].answer_id | string | No | |
| developer_ecosystem.stack_overflow.answers[].score | integer | No | |
| developer_ecosystem.stack_overflow.answers[].is_accepted | boolean | No | |
| developer_ecosystem.stack_overflow.answers[].author | object | No | |
| developer_ecosystem.stack_overflow.answers[].date | string | No | |
| developer_ecosystem.stack_overflow.answers[].body | string | No | |
| developer_ecosystem.stack_overflow.answers[].code_blocks | array<string> | No | |
| developer_ecosystem.stack_overflow.related_questions | array<object> | No | |
| developer_ecosystem.stack_overflow.related_questions[].title | string | No | |
| developer_ecosystem.stack_overflow.related_questions[].url | string | No | |
| developer_ecosystem.stack_overflow.related_questions[].votes | integer | No | |
| developer_ecosystem.community_discussions | array<object> | No | |
| developer_ecosystem.community_discussions[].title | string | No | |
| developer_ecosystem.community_discussions[].url | string | No | |
| developer_ecosystem.community_discussions[].votes | integer | No | |
| developer_ecosystem.community_discussions[].answers_count | integer | No | |
| developer_ecosystem.community_discussions[].tags | array<string> | No |
Asynchronous Requests
Long-running requests can be processed in the background. Add `?async=true` (or the `Prefer: respond-async` header) to receive a `job_id` immediately, then poll the job until its status is `COMPLETED`.
Async Workflow
curl -X POST "https://api.dataguru.cc/api/v1/stackoverflow/developer-ecosystem?async=true" \ -H "Authorization: Api-Key YOUR_API_KEY" # 202 Accepted { "success": true, "status": "SUBMITTED", "job_id": "0ca215ce-244f-4b28-b481-dc1b551983c8", "status_url": "/api/v1/jobs/0ca215ce-244f-4b28-b481-dc1b551983c8/" }
Batch Processing
To run many requests at half price, upload them as a CSV file: one row per request, with the parameter names above as the header row. Rows run in the background within 24 hours (up to 7 days for large files) and each successful row costs 50% of the price below. Poll /api/v1/batches/{batch_id}/ for progress and download results.json when it has finished. See the Batch Processing guide for details.
Batch Workflow
target,geolocation,so_url example,US,example
Pricing & Rate Limits
Endpoint Pricing
$0.0055 / per successful request (USD)
Consumed per successful call: 1 request unit(s), 1 credit(s).
Endpoint Rate Limits
Common Errors
Common HTTP Errors
| Status | Code | Description |
|---|---|---|
| 400 | VALIDATION_ERROR | A required parameter is missing or malformed. |
| 400 | INVALID_PARAMETER | The input was rejected by the source, e.g. a URL that is not a product page. Not billed. |
| 401 | UNAUTHORIZED | Missing or invalid API key. |
| 402 | INSUFFICIENT_BALANCE | Your balance cannot cover this request. |
| 403 | ENDPOINT_DISABLED | This endpoint is currently unavailable. |
| 404 | RESOURCE_NOT_FOUND | The item (product, profile, page) does not exist on the source or has no results. Not billed. |
| 405 | METHOD_NOT_ALLOWED | The endpoint was called with the wrong HTTP method. |
| 429 | RATE_LIMIT_EXCEEDED | Too many requests. See the Retry-After header. |
| 502 | PROVIDER_ERROR | The upstream data source failed. Retry with exponential backoff. |