# Cloud Source Repositories API API

> Cloud Source Repositories API API on Apizie: 11 endpoints (Returns the Cloud Source Repositories configuration of the project., Updates the Cloud Source Repositories configuration of the project., Creates a repo in the given project with the given name. If the named repository already exists,…, Returns information about a repo., …) returned as clean JSON through one API key. Send your own provider key in the x-upstream-key header. Call it over REST at https://apizie.tech/v1/analytics:googleapis-sourcerepo/{endpoint} or from Claude, ChatGPT and Cursor through the Apizie MCP server. Free plan: 1,000 requests a month.

- Project key: `analytics:googleapis-sourcerepo`
- Category: Analytics
- Status: byok
- Source: https://cloud.google.com/source-repositories/docs
- Page: https://apizie.tech/api/analytics/googleapis-sourcerepo
- OpenAPI: https://apizie.tech/api/analytics/googleapis-sourcerepo/openapi.json

Accesses source code repositories hosted by Google. Important: Cloud Source Repositories is scheduled for end of sales starting June 17, 2024. Customers who have enabled the API prior to this date will not be affected…

## Endpoints

### Returns the Cloud Source Repositories configuration of the project.
`GET https://apizie.tech/v1/analytics:googleapis-sourcerepo/sourcerepo-projects-get-config` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| name | string | yes | The name of the requested project. Values are of the form `projects/`. |

### Updates the Cloud Source Repositories configuration of the project.
`POST https://apizie.tech/v1/analytics:googleapis-sourcerepo/sourcerepo-projects-update-config` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| name | string | yes | The name of the requested project. Values are of the form `projects/`. |
| body | object | yes | JSON request body |

### Creates a repo in the given project with the given name. If the named repository already exists,…
`POST https://apizie.tech/v1/analytics:googleapis-sourcerepo/sourcerepo-projects-repos-create` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| parent | string | yes | The project in which to create the repo. Values are of the form `projects/`. |
| body | object | yes | JSON request body |

### Returns information about a repo.
`GET https://apizie.tech/v1/analytics:googleapis-sourcerepo/sourcerepo-projects-repos-get` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| name | string | yes | The name of the requested repository. Values are of the form `projects//repos/`. |

### Updates information about a repo.
`POST https://apizie.tech/v1/analytics:googleapis-sourcerepo/sourcerepo-projects-repos-patch` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| name | string | yes | The name of the requested repository. Values are of the form `projects//repos/`. |
| body | object | yes | JSON request body |

### Deletes a repo.
`POST https://apizie.tech/v1/analytics:googleapis-sourcerepo/sourcerepo-projects-repos-delete` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| name | string | yes | The name of the repo to delete. Values are of the form `projects//repos/`. |

### Gets the IAM policy policy for a resource. Returns an empty policy if the resource exists and does not have…
`GET https://apizie.tech/v1/analytics:googleapis-sourcerepo/sourcerepo-projects-repos-get-iam-policy` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| options.requestedPolicyVersion | integer | no | Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid… |
| resource | string | yes | REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names)… |

### Returns all repos belonging to a project. The sizes of the repos are not set by ListRepos. To get the size…
`GET https://apizie.tech/v1/analytics:googleapis-sourcerepo/sourcerepo-projects-repos-list` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| name | string | yes | The project ID whose repos should be listed. Values are of the form `projects/`. |
| pageSize | integer | no | Maximum number of repositories to return; between 1 and 500. If not set or zero, defaults to 100 at the server. |
| pageToken | string | no | Resume listing repositories where a prior ListReposResponse left off. This is an opaque token that must be obtained from a recent, prior… |

### Sets the IAM policy on the specified resource. Replaces any existing policy.
`POST https://apizie.tech/v1/analytics:googleapis-sourcerepo/sourcerepo-projects-repos-set-iam-policy` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| resource | string | yes | REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names)… |
| body | object | yes | JSON request body |

### Synchronize a connected repo. The response contains SyncRepoMetadata in the metadata field.
`POST https://apizie.tech/v1/analytics:googleapis-sourcerepo/sourcerepo-projects-repos-sync` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| name | string | yes | The name of the repo to synchronize. Values are of the form `projects//repos/`. |
| body | object | yes | JSON request body |

### Returns permissions that a caller has on the specified resource. If the resource does not exist, this will…
`POST https://apizie.tech/v1/analytics:googleapis-sourcerepo/sourcerepo-projects-repos-test-iam-permissions` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| resource | string | yes | REQUIRED: The resource for which the policy detail is being requested. See [Resource… |
| body | object | yes | JSON request body |

## Example
```
curl "https://apizie.tech/v1/analytics:googleapis-sourcerepo/sourcerepo-projects-get-config" \
  -H "x-api-key: $APIZIE_KEY" \
  -H "x-upstream-key: $PROVIDER_KEY"
```

## FAQ

### How do I call the Cloud Source Repositories API API?
Create a free Apizie key, then send GET https://apizie.tech/v1/analytics:googleapis-sourcerepo/sourcerepo-projects-get-config with the header x-api-key. Every endpoint returns { project, data, timestamp }.

### Is the Cloud Source Repositories API API free on Apizie?
Yes. The Free plan includes 1,000 requests a month at 100 requests a minute, no credit card. Cloud Source Repositories API itself also needs your own key from googleapis.com.

### Can AI agents use the Cloud Source Repositories API API?
Yes. Add the Apizie MCP server (https://apizie.tech/mcp) to Claude, ChatGPT, Cursor or VS Code, then ask in plain language. The agent calls run_scraper with project key analytics:googleapis-sourcerepo.

### What is the status of the Cloud Source Repositories API API?
Needs your own provider key (bring your own key)
