Git Provider Webhook Payload Normalizer to One Event Schema
Pricing
from $5.00 / 1,000 actor starts
Git Provider Webhook Payload Normalizer to One Event Schema
Convert GitHub, GitLab, and Bitbucket webhook payloads into one stable event schema.
Git Provider Webhook Payload Normalizer to One Event Schema
Pricing
from $5.00 / 1,000 actor starts
Convert GitHub, GitLab, and Bitbucket webhook payloads into one stable event schema.
You can access the Git Provider Webhook Payload Normalizer to One Event Schema programmatically from your own applications by using the Apify API. You can also choose the language preference from below. To use the Apify API, you’ll need an Apify account and your API token, found in API & Integrations in Apify Console.
1from apify_client import ApifyClient2
3# Initialize the ApifyClient with your Apify API token4# Replace '<YOUR_API_TOKEN>' with your token.5client = ApifyClient("<YOUR_API_TOKEN>")6
7# Prepare the Actor input8run_input = { "payloads": [9 {10 "headers": { "X-GitHub-Event": "push" },11 "body": {12 "ref": "refs/heads/main",13 "repository": {14 "id": 1,15 "name": "demo",16 "full_name": "octo/demo",17 "html_url": "https://github.com/octo/demo",18 },19 "sender": {20 "id": 7,21 "login": "octo",22 },23 "commits": [{24 "id": "abc123",25 "message": "Fix bug",26 "url": "https://github.com/octo/demo/commit/abc123",27 "timestamp": "2026-01-01T00:00:00Z",28 }],29 "head_commit": {30 "id": "abc123",31 "timestamp": "2026-01-01T00:00:00Z",32 },33 },34 },35 {36 "headers": { "X-Gitlab-Event": "Merge Request Hook" },37 "body": {38 "user": {39 "id": 5,40 "username": "glu",41 },42 "project": {43 "id": 2,44 "name": "demo",45 "path_with_namespace": "glu/demo",46 "web_url": "https://gitlab.com/glu/demo",47 },48 "object_attributes": {49 "id": 50,50 "iid": 4,51 "title": "Add feature",52 "url": "https://gitlab.com/glu/demo/-/merge_requests/4",53 "state": "opened",54 "action": "open",55 "updated_at": "2026-01-04 00:00:00 UTC",56 },57 },58 },59 {60 "headers": { "X-Event-Key": "pullrequest:fulfilled" },61 "body": {62 "actor": {63 "uuid": "{u-1}",64 "nickname": "bbu",65 },66 "repository": {67 "uuid": "{r-1}",68 "name": "demo",69 "full_name": "bbu/demo",70 "links": { "html": { "href": "https://bitbucket.org/bbu/demo" } },71 },72 "pullrequest": {73 "id": 8,74 "title": "Merge it",75 "state": "MERGED",76 "updated_on": "2026-01-06T00:00:00+00:00",77 "links": { "html": { "href": "https://bitbucket.org/bbu/demo/pull-requests/8" } },78 },79 },80 },81 ] }82
83# Run the Actor and wait for it to finish84run = client.actor("kingii98/git-provider-webhook-payload-normalizer-to-one-event-schema").call(run_input=run_input)85
86# Fetch and print Actor results from the run's dataset (if there are any)87print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")88for item in client.dataset(run.default_dataset_id).iterate_items():89 print(item)90
91# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-startThe Apify API client for Python is the official library that allows you to use Git Provider Webhook Payload Normalizer to One Event Schema API in Python, providing convenience functions and automatic retries on errors.
Install the apify-client
$pip install apify-clientOther API clients include: